2 ms·
If you like Pollen, you will like the idea of Fluid Responsive Typography and modular spacing. Check out https://utopia.fyi https://utopia.fyi If pollen spells
by Brajeshwar 2y ago
If you like Pollen, you will like the idea of Fluid Responsive Typography and modular spacing. Check out https://utopia.fyi https://utopia.fyi
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/ 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.