UI Component Generator
Generate HTML and CSS for buttons, inputs, cards, badges and alerts with variants and states, check contrast, focus and target size, and export code or a spec.
Open toolGenerate design tokens — colour scales, semantic light and dark colours, type scale, spacing, radii and shadows — then plan, check, preview and export them.
Pick a few brand colours, two fonts, a body size, a type-scale ratio, a spacing unit, a corner radius and a shadow strength. The generator builds eleven-step colour scales in OKLCH, maps them to semantic colours (background, surface, text, muted text, border, primary, on-primary, focus, success, warning, danger) for a light theme and an optional dark theme, and adds a type scale, a spacing scale, radii and shadows.
Plan mode keeps an inventory of foundations, components, patterns and documentation with priority, status and owner. Check mode tests every semantic colour pair against WCAG 2.2 contrast (1.4.3 for text, 1.4.11 for interface parts) in both themes and flags small body text, extreme scale ratios, display fonts used for body text, odd spacing units and brand colours that look alike. Preview renders a sample screen with your tokens and can compare it side by side with a variant. Export writes CSS variables (with a dark theme block), SCSS, a Tailwind theme, W3C-format design tokens JSON or a Markdown spec. Everything runs in your browser.
Your details
CSS custom properties, SCSS, Tailwind theme, Design tokens JSON (W3C draft), Markdown
Processed in this browser
Instant, in-browser. Nothing is uploaded.
Your result
Shown instantly, ready to copy or export
Enter your brand colours, fonts and sizes in Generate.
Open Check and fix any failing contrast pairs; use Preview to compare a variant.
Export the tokens in the format your project uses, and save the editable JSON.
Zero-upload architecture
Free, with no sign-up or watermark · Your details stay on your device
Launch the app. There is nothing to install and no account to create.
Open Check and fix any failing contrast pairs; use Preview to compare a variant.
Export the tokens in the format your project uses, and save the editable JSON.
Generate HTML and CSS for buttons, inputs, cards, badges and alerts with variants and states, check contrast, focus and target size, and export code or a spec.
Open toolPlan a brand colour system by role, generate 50–950 scales, check text contrast, and export CSS, Tailwind, SCSS, design tokens or a swatch sheet.
Open toolPlan a modular type scale with fluid clamp() sizes, line heights and tracking, preview it at any screen width, and export CSS, Tailwind or design tokens.
Open toolCheck text and background colours against WCAG 2.2 AA and AAA, and get the nearest passing colour.
Open tool