-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Admin] Use generic color class names for Tailwind theme colors #5848
Comments
@solidusio/core-team I would like to here your thoughts on this. Is theme-ability a feature we want to keep or do we just want Solidus to always look as is? I am open to change this, but think we should at least talk about it publicly and tell the community what we are up to with the new admin. |
@rainerdema @elia, do you remember why we used this approach? Did we ever think about prioritizing theming before? |
@kennyadsl @tvdeyen yes, we just stuck with the TailswindCSS recommendation, additionally it was no time to devise a theming system, which is essentially another API to design, maintain, and migrate. Sounds like we might have a really good reason to steer in that direction now, as the documentation says:
That said nailing the right level of abstraction with those colors is really hard, I tried it many times, and it will make interpreting tailwind classes harder ( So I propose to limit the customization to something like the accent color, and go vanilla with the general design, I might be wrong, but that covers the need to match the style of a client in most cases. @tvdeyen would that cover your use-case? How deep you think the customization would need to be? |
I agree. Limiting it to things like brand-color and maybe some state colors (danger/error, info, success/notice, warning/alert) should be enough to satisfy customization needs of stores.
Yes, that will cover it and I think the customization level should be as shallow as possible. Just cover the basic needs. One idea would be to read a |
Desired Behavior
I would like to be able to theme the Solidus admin as I am currently able now with the legacy backend. There we have bootstrap variables that can be changed to new color values. The use of generic variables (
primary
,secondary
,danger
,brand
, etc.) makes it very easy to change the look of Solidus admin. Also light and darkmode are easier to maintain that way.Current Behavior
We currently have color based class names all over the new admin. This makes it very hard to change the look of the new admin. Also it makes it much harder for us to change the theme in the future and make adjustments to the light and dark modes.
Additional notes
Solidus is a framework that allows clients to adopt the admin to their needs. This includes theming. IMO this is one of reasons for the success of Solidus in the community. We should not remove this feature that many stores rely on.
In the tailwind docs are ways described to make this more maintainable for us. https://tailwindcss.com/docs/customizing-colors#naming-your-colors
I think we should move to a more framework-alike approach with the new admin.
The text was updated successfully, but these errors were encountered: