Farbe 1.2.0
Semantic OKLCH color tokens with AAA-oriented defaults. Opt down with
data-velin-contrast="aa" on <html> when you need the lighter AA palette.
English version.
Reifegrad: In VelinStyle 1.2.0 als stabil dokumentiert.
Studio and the complete Utility Engine remain planned — shipping utilities are hand-authored under
@layer utilities, not a full variant generator.
Wann verwenden
- Bind UI to roles: primary, surfaces, text, border, success/warning/danger/info, focus.
- Pair fills with
--velin-color-on-*text tokens for contrast.
Wann nicht
- Do not invent
--velin-primarywithout thecolor-segment in new docs or apps. - Do not claim product AAA certification solely because the framework ships AAA-oriented defaults.
Warum OKLCH?
- L — lightness
- C — chroma
- H — hue angle
Semantische Farben
: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);
}
Eigene Farben
Override semantic tokens (or load a theme from Farbmodi):
:root {
--velin-color-primary: oklch(40% 0.14 250);
--velin-color-on-primary: oklch(100% 0 0);
}