v1.2.2 MIT Zero dependencies 428 tests

salt-theme-gen

OKLCH-based design system generator — generate a complete light/dark theme from a single color. Platform agnostic: React, React Native, Next.js, Vue, Angular, Vanilla JS, Flutter, 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 →