Theme editor
Move the brand seeds and the engine derives the full scales, dark mode,
and the text for every step—live, without rebuilding. It’s the same createTheme() the package exports.
Seeds
Preview
Informational note
states field.Derived scales
Each seed generates 10 steps (100–1000). Each one is calculated to hit a specific contrast against the background, in light and dark mode, and the text on top meets AA (4.5:1 or higher) on all of them. Your color stays exact on the step where it belongs. If it lands right where no text is readable, it shifts a little and we tell you.
Under each step: the WCAG contrast of its text (AA requires 4.5) and the APCA Lc (higher is more legible; for reference only). On a P3 screen, 16 of 30 steps look more vivid than in sRGB.
- Step 100: WCAG contrast 18.2, APCA Lc 100.
- Step 200: WCAG contrast 16.1, APCA Lc 92.
- Step 300: WCAG contrast 13.1, APCA Lc 80, more vivid in P3.
- Step 400: WCAG contrast 9.4, APCA Lc 63, more vivid in P3.
- Step 500, your color: WCAG contrast 5.3, APCA Lc 40.
- Step 600: WCAG contrast 5.3, APCA Lc 76.
- Step 700: WCAG contrast 7.6, APCA Lc 84.
- Step 800: WCAG contrast 10.7, APCA Lc 92.
- Step 900: WCAG contrast 14.2, APCA Lc 96, more vivid in P3.
- Step 1000: WCAG contrast 16.9, APCA Lc 98, more vivid in P3.
Your color landed exactly on step 500.
- Step 100: WCAG contrast 18.2, APCA Lc 100.
- Step 200: WCAG contrast 16.1, APCA Lc 92.
- Step 300: WCAG contrast 13.1, APCA Lc 80.
- Step 400, your color: WCAG contrast 10.0, APCA Lc 66.
- Step 500: WCAG contrast 5.5, APCA Lc 41, more vivid in P3.
- Step 600: WCAG contrast 5.3, APCA Lc 76, more vivid in P3.
- Step 700: WCAG contrast 7.6, APCA Lc 85, more vivid in P3.
- Step 800: WCAG contrast 10.7, APCA Lc 92, more vivid in P3.
- Step 900: WCAG contrast 14.2, APCA Lc 97, more vivid in P3.
- Step 1000: WCAG contrast 16.9, APCA Lc 99, more vivid in P3.
Your color landed exactly on step 400.
- Step 100: WCAG contrast 18.2, APCA Lc 100.
- Step 200: WCAG contrast 16.1, APCA Lc 92.
- Step 300: WCAG contrast 13.1, APCA Lc 80.
- Step 400, your color: WCAG contrast 9.2, APCA Lc 62.
- Step 500: WCAG contrast 5.5, APCA Lc 41, more vivid in P3.
- Step 600: WCAG contrast 5.3, APCA Lc 76, more vivid in P3.
- Step 700: WCAG contrast 7.6, APCA Lc 85, more vivid in P3.
- Step 800: WCAG contrast 10.7, APCA Lc 92, more vivid in P3.
- Step 900: WCAG contrast 14.2, APCA Lc 96, more vivid in P3.
- Step 1000: WCAG contrast 16.9, APCA Lc 99, more vivid in P3.
Your color landed exactly on step 400.
Export
To bake these seeds into a build theme (with its CSS precomputed), put them in your project’s taisho.config.ts and run npx taisho generate (see Theming).
// taisho.config.ts
import type { TaishoConfig } from '@taishods/core/generate';
const config: TaishoConfig = {
themes: {
principal: {
colors: {
brand: '#3b82f6',
'brand-secondary': '#84cc16',
accent: '#f59e0b',
},
primary: 'oklch(0.15 0 0)',
},
},
fontFaces: [],
};
export default config;Or apply them at runtime (without rebuilding) with createTheme.
import { createTheme } from '@taishods/core';
createTheme({ colors: {
brand: '#3b82f6',
'brand-secondary': '#84cc16',
accent: '#f59e0b',
},
primary: 'oklch(0.15 0 0)' });