-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Colors changes #580
base: master
Are you sure you want to change the base?
Colors changes #580
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<x-rapidez::button.base {{ $attributes->class('bg-primary text-primary-text') }}> | ||
<x-rapidez::button.base {{ $attributes->class('bg-primary text-white') }}> | ||
{{ $slot }} | ||
</x-rapidez::button.base> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,21 +17,19 @@ module.exports = { | |
theme: { | ||
extend: { | ||
colors: { | ||
primary: { | ||
DEFAULT: 'rgb(var(--primary) / <alpha-value>)', // Theme color | ||
text: 'rgb(var(--primary-text) / <alpha-value>)', // Text color that goes onto primary color | ||
}, | ||
secondary: { | ||
DEFAULT: 'rgb(var(--secondary) / <alpha-value>)', // Conversion color | ||
text: 'rgb(var(--secondary-text) / <alpha-value>)', // Text color that goes onto secondary color | ||
}, | ||
primary: 'rgb(var(--primary) / <alpha-value>)', // Theme color | ||
secondary: 'rgb(var(--secondary) / <alpha-value>)', // Conversion color | ||
neutral: 'rgb(var(--neutral) / <alpha-value>)', // Default text color | ||
inactive: 'rgb(var(--inactive) / <alpha-value>)', // Inactive text color | ||
highlight: 'rgb(var(--highlight) / <alpha-value>)', // Background highlight color | ||
border: 'rgb(var(--border) / <alpha-value>)', // Border color | ||
enhanced: 'rgb(var(--enhanced) / <alpha-value>)', // Enhanced color | ||
disabled: 'rgb(var(--disabled) / <alpha-value>)', // Disabled color | ||
inactive: { | ||
DEFAULT: 'rgb(var(--inactive) / <alpha-value>)', // Inactive text color | ||
100: 'rgb(var(--inactive-100) / <alpha-value>)', // Background color | ||
110: 'rgb(var(--inactive-110) / <alpha-value>)', // Border color | ||
}, | ||
Comment on lines
+25
to
+29
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Inactive implies it's used for inactive states but it's used for backgrounds, borders, etc There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's because the inactive color is always some sort of gray, the color we use for backgrounds and borders is also always some sort of gray. Thats why we call them this way |
||
}, | ||
borderColor: { | ||
DEFAULT: 'rgb(var(--border) / <alpha-value>)', // Border color default so it gets used when only using border | ||
DEFAULT: 'rgb(var(--inactive-110) / <alpha-value>)', // Border color default so it gets used when only using border | ||
}, | ||
}, | ||
container: { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So when the primary color is a light color; the text is unreadable and you've to override this template?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, buttons are always custom in projects. there's not much to override either since its only classes you would add to a base.blade.php or index.blade.php