I open-sourced salt-theme-gen
I open-sourced salt-theme-gen — a zero-dependency OKLCH theme generator for JS/TS Theming often sounds simple until you actually try to do it well. You pick a primary color. Then you start adjustin...

Source: DEV Community
I open-sourced salt-theme-gen — a zero-dependency OKLCH theme generator for JS/TS Theming often sounds simple until you actually try to do it well. You pick a primary color. Then you start adjusting secondary colors. Then dark mode looks wrong. Then hover and disabled states feel inconsistent. Then accessibility becomes a separate cleanup task. And after changing one base color, you end up reworking half the theme again. That repeated pain is why I built salt-theme-gen. It is an OKLCH-based design system generator for JavaScript and TypeScript that takes one color in and gives you a complete light and dark theme out. It is: zero dependency written in TypeScript platform agnostic usable with React Native, React, Next.js, Node, Bun, Deno, or any JavaScript runtime The problem I wanted to solve I kept running into the same friction points: picking colors that do not really work together dark mode looking washed out or too contrasty manually creating hover, pressed, focused, and disabled s