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

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.

View AI resources →