v1.3.1 MIT Zero dependencies 1932 tests
salt-theme-gen
One color → 150+ design tokens. CSS variables, Tailwind config, DTCG export, APCA contrast, tonal palettes, and color blindness simulation. Zero dependencies. React, Next.js, Vue, Angular, React Native, and more.
npm install salt-theme-gen theme.ts
import { generateTheme } from 'salt-theme-gen';
const theme = generateTheme({
preset: 'ocean', // or any hex color
spacing: 'default',
radius: 'default',
fontSize: 'default',
});
// theme.light.colors.primary → '#2563eb'
// theme.dark.colors.background → '#0a0f1e'
// theme.light.spacing.md → 12
// theme.light.accessibility → WCAG report Guide
Sequential tutorial — each chapter builds on the last. Start from the beginning or jump to what you need.
01 Introduction → 02 Quick Start → 03 Understanding the Output → 04 Color Presets → 05 Design Scale Presets → 06 Accessibility Built-in → 07 ColorHarmony & Accents → 08 Adjusting Themes → 09 Comparing Themes → 10 Validation → 11 TypeScript Integration → 12 Tonal Palettes → 13 CSS Variables → 14 DTCG Tokens → 15 Color Blindness Simulation →
Integrations
Every guide opens with the developer pain it solves, then walks you through the integration step by step with a live StackBlitz demo.
AI-ready resources
Use salt-theme-gen with Claude, Cursor, ChatGPT, and any AI coding
assistant. Ready-to-copy prompt templates for every framework, plus
a machine-readable llms.txt spec.