Skip to main content
VelinStyle v1.3.0
⌂ Home
  1. Docs
  2. Themes & Tokens
  3. Color

Color 1.2.2

Semantic OKLCH color tokens with AAA-oriented defaults. Opt down with data-velin-contrast="aa" on <html> when you need the lighter AA palette. Deutsche Version.

Maturity: Documented as stable in VelinStyle 1.2.0. Studio and the complete Utility Engine remain planned — shipping utilities are hand-authored under @layer utilities, not a full variant generator.

When to use

When not

Contrastnpm run test:contrast · Generated tokens · Accessibility

Why OKLCH?

Semantic colors

:root {
  --velin-color-primary: oklch(38% 0.18 250);
  --velin-color-primary-hover: oklch(32% 0.18 250);
  --velin-color-primary-subtle: oklch(92% 0.04 250);
  --velin-color-on-primary: oklch(100% 0 0);
  --velin-color-secondary: oklch(55% 0.12 320);
  --velin-color-surface: oklch(98% 0.005 250);
  --velin-color-text: oklch(8% 0.01 250);
  --velin-color-success: oklch(55% 0.16 145);
  --velin-color-warning: oklch(75% 0.15 85);
  --velin-color-danger: oklch(55% 0.2 25);
  --velin-color-info: oklch(60% 0.12 240);
}

Custom colors

Override semantic tokens (or load a theme from Color Modes):

:root {
  --velin-color-primary: oklch(40% 0.14 250);
  --velin-color-on-primary: oklch(100% 0 0);
}