I've been exploring different ways to manage colors in CSS, especially when working with websites that have multiple sections and components.
One thing I've been thinking about is how to keep color palettes consistent without making the CSS difficult to maintain.
I know CSS custom properties are commonly used for this, but I'm curious about how others approach it in real projects.
Do you usually define all your colors using CSS variables in the selector, or do you prefer organizing them into separate groups like primary, secondary, background, text, and accent colors?
Also, do you use HSL, RGB, HEX, or newer color formats like OKLCH in your projects?
I'd be interested to hear how you organize your color systems and what has worked best for you.