Skip to content

Commit

Permalink
Changed color primary button to text-primary-text
Browse files Browse the repository at this point in the history
  • Loading branch information
Roene-JustBetter committed Oct 1, 2024
1 parent 6733751 commit b31dfd5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,17 @@ composer require rapidez/blade-components
And make sure these colors are present in your Tailwind config:
```js
colors: {
primary: '#2FBC85',
neutral: '#334155',
inactive: '#64748B',
border: '#E7EBEF',
disabled: '#EBE8DE',
enhanced: '#36B422'
colors: {
primary: {
DEFAULT: '#2FBC85',
text: '#FFFFFF',
},
neutral: '#334155',
inactive: '#64748B',
border: '#E7EBEF',
disabled: '#EBE8DE',
enhanced: '#36B422'
}
}
```

Expand Down
5 changes: 4 additions & 1 deletion resources/views/components-preview.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
theme: {
extend: {
colors: {
primary: '#2FBC85',
primary: {
DEFAULT: '#2FBC85',
text: '#FFFFFF',
},
neutral: '#334155',
inactive: '#64748B',
border: '#E7EBEF',
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/button/primary.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
<x-rapidez::button.primary>Something</x-rapidez::button.primary>
```
--}}
<x-rapidez::button {{ $attributes->twMerge('bg-primary text-white border-b border-black/15') }}>
<x-rapidez::button {{ $attributes->twMerge('bg-primary text-primary-text border-b border-black/15') }}>
{{ $slot }}
</x-rapidez::button>
2 changes: 1 addition & 1 deletion resources/views/components/button/slider.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
<x-rapidez::button.slider>Icon</x-rapidez::button.slider>
```
--}}
<x-rapidez::button {{ $attributes->twMerge('inline-flex bg-white p-0 rounded-full size-14 items-center justify-center shadow bg-white text-neutral border') }}>
<x-rapidez::button {{ $attributes->twMerge('inline-flex bg-white p-0 rounded-full size-14 items-center justify-center shadow text-neutral border') }}>
{{ $slot }}
</x-rapidez::button>

0 comments on commit b31dfd5

Please sign in to comment.