You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CSS Custom Properties allow you to easily define values in a variable. Currently it seems that theme stylesheets just hardcode in the colors to given elements, which probably won't scale well if you plan to add new features to the site that need theming.
I agree that using CSS custom properties are great for sites with multiple themes (I've used it myself in my portfolio page), though some themes may do more than just fill in the elements with colors, like aurora.css, which uses keyframe animations to move the background gradient.
While I'm sure there is a solution that can handle things like this I'm not sure what it would look like.
Also, IIRC @briano1905 isn't very keen on adding new features to the site, but that may have changed.
Theme's don't have to only be variable changes, they're still just stylesheets. Using variables will just make modifying things like colors or radii easier and less boilerplate-y.
CSS Custom Properties allow you to easily define values in a variable. Currently it seems that theme stylesheets just hardcode in the colors to given elements, which probably won't scale well if you plan to add new features to the site that need theming.
Custom properties are supported on all major browsers.
The text was updated successfully, but these errors were encountered: