r/css • • 16h ago

AI Assisted Eight visual themes on the same markup, done entirely with CSS variables

0 Upvotes

I've been building VinUI, an open-source component library. The main idea is that switching the whole look of a site should only mean swapping CSS variables.

It has eight styles: Precision, Tactile, Clay, Tonal, Editorial, Terminal, Paper and Bento. Every component keeps the same HTML and class names across all of them. Each style is just a set of custom properties, and accent colour, radius, font and density are variables on top. So one button can go from flat and minimal to soft clay-like depth to a monospace terminal look without changing a single tag.

Other CSS details:

  • Ships its own small CSS files, so it can sit alongside Tailwind or your own styles
  • Charts are plain SVG
  • Each component checked against WCAG 2.2 AA contrast in all eight styles, in light and dark

Repo: https://github.com/devvinish/vin-ui
Docs and live style switcher: https://vinish.dev/ui


r/css • • 1h ago

Question IHTMl en Reddit!!!

Thumbnail reddit.com
0 Upvotes

r/css • • 22h ago

Question How to choose color palette

5 Upvotes

I have just come across the light-dark() function and experimented with it. Now I realise color choice became limited, especially pairing light-dark part.

Does using light-dark scheme limit colour choice? I would love to know if there is any better scheme generator tool out there to experiment. I currently use colorffy.


r/css • • 23h ago

Question I've been learning SCSS for about 3 days. I'm trying to integrate a mixin from a partial I dedicated to media-query responsiveness. My media query styles aren't applying. I have a feeling it's because of how I'm calling the mixin. Could anyone see what's wrong with my code?

Thumbnail reddit.com
1 Upvotes