Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #78 and replaces #114.
Instead of allowing a whole bunch of confusing and overlapping theming options, I've opted to follow what Caleb Porzio has done in FluxUI and implement "accent colors".
Out of the box, it means that Cachet is less customizable in a big way. However, we can later extend customizability by implementing #122 and structuring the views in a way where they're easier to replace via Laravel's own publishing system.
Okay, let's get into how it works. Essentially, Cachet now generates new CSS variables for accents:
These colors are used throughout the UI to "accent" elements such as buttons (
accent
) and links within content (accent-content
).Cachet is also utilizing Filament's own
Color
andFilamentColor
classes to access the default Tailwind color palette. We also register Cachet's default color so that it's an option too. This means we don't need to touch our own CSS to generate them in a usable CSS variable format.I've adjusted parts of the UI (mainly in dark mode) to change the color of panel backgrounds to automatically take on the background hue ✨