Open Props – Supercharged CSS Variables
open-props.style
open-props.style
(Yes I know you could make UI components that use Tailwind classes, but if you have a diverse stack or legacy code, it's not easy to bolt in the TW build system or assume one technology like React, etc)
I’ve used Pollen as an alternative to the bulk of Tailwind and have been very happy with it.
If pollen spells out each and every variable, the idea behind utopia will set you with something that you can use a few and it works across various screen sizes.
For colors, start looking at CSS's support OKLCH. It is a tad new but the support is pretty rock solid now. https://oklch.com/
Here is what I think. You can have color variables like `--grey-500` which has the value `light-dark(oklch(mid-value), oklch(another-value))`. Now, you just play with a common color token and your light-dark theme should be taken care of. The tint and shade can be either automated or manually tweak by tinkering with the OKLCH either high/low.
Finally with @container, one might not need to define media-queries at all or at just specific high-level wrappers/containers.