Color System
OKLCH color scales, 12-step roles, contrast pairs, alpha stops, P3 wide-gamut, and dark mode — all from 3 hex seeds.
The Color System generates a 12-step OKLCH scale for each role (primary, secondary, neutral, success, danger, warning, info) from a hex seed. Dark mode, contrast pairs, alpha stops and a P3 wide-gamut boost are built in.
How it works
- You provide 3 required hex seeds in
theme-config.json(primary,secondary,neutral), and optionallysuccess,danger,warningandinfo. - Cortex extracts the hue (H) and chroma (C) of each seed and emits them as
--fp-{role}-hand--fp-{role}-c. - Each step’s lightness comes from a fixed lightness ramp (one for light, one for dark), and its chroma is the role’s C times the chroma curve (
--fp-C-1…--fp-C-12). - So a ramp step is
oklch(L, role-C × C-{step}, role-H), with L written into the token for each scheme. - For a role whose seed you configured (primary, secondary, and any semantic seed you set), step 9 is the seed colour itself and step 10 is a hover derived from it. Neutral and auto-generated roles stay on the ramp at every step.
Missing semantic seeds are generated at fixed hue anchors — success 145°, danger 25°, warning 85°, info 250° — using the primary’s chroma, raised to at least 0.12 (so they still read as green, red and so on under a muted brand) and capped to what sRGB holds at that hue. Warning, for example, ends up near 0.10.
Why lightness is not configurable
Only hue and chroma come from your seeds — lightness is intentionally not exposed per role. The 12-step lightness ramp is a global constant that every role uses. This is deliberate:
- Accessibility guarantees. The contrast tokens are measured against these exact lightness values. A per-role shift would invalidate them.
- Cross-role consistency. Step 1 is always a near-white (or near-black) background and step 12 always high-contrast text, whatever the role.
- Dark mode parity. Dark mode uses a separate, independently tuned ramp. A per-role shift would need its own dark-mode tuning.
- The seed already controls brightness. Want a lighter or darker brand? Pick a lighter or darker seed: step 9 is that colour, and its hue and chroma tint the rest of the ramp. A lower-chroma seed gives a more muted palette.
Neutral hue tinting
When the neutral seed has low chroma (below 0.05, which covers most greys), it takes the primary hue instead of its own. A neutral seed of #94a3b8 with a primary of #6366f1 produces indigo-tinted greys. To keep an independent neutral hue, give a neutral seed with chroma of 0.05 or more.
Surfaces and the page colour
Surfaces are not a palette of their own: they are the lightest steps of the neutral ramp, under names that say what each is for.
| Token | Is | Use it for |
|---|---|---|
--fp-surface-app | neutral 1 | The page background, the outermost layer |
--fp-surface-subtle | neutral 2 | A recessed region: a sidebar, a well, a section band |
--fp-surface-element | neutral 3 | A raised element: a card, a panel, a tile |
--fp-surface-hover | neutral 4 | An element while hovered |
--fp-surface-active | neutral 5 | An element while pressed or selected |
--fp-surface-overlay | neutral 1 in light, neutral 3 in dark | What floats above the page: a menu, a popover, a dialog |
--fp-surface-inverse | the other scheme’s neutral 1 | A tooltip or a toast, with --fp-text-inverse on it |
An overlay in light mode is the page’s own colour, and its shadow lifts it. A shadow barely shows on a dark page, so in dark mode the overlay is a lifted step instead. The inverse surface is a patch of the other scheme: in light mode it is the dark page with the dark scheme’s default text, and the other way round in dark mode, so the pair reads exactly as that scheme’s page text does.
seeds.surface sets the page colour of each scheme. Give light, dark or both:
{
"seeds": {
"primary": "#4f46e5",
"secondary": "#7c3aed",
"neutral": "#334155",
"surface": { "light": "#fbf6ee", "dark": "#0f172a" }
}
}In each scheme neutral step 1 becomes exactly that colour, and spread says how far its tint carries:
spread | Steps 2–5 (the other surfaces) | Steps 6–8 (borders) | Steps 9–12 |
|---|---|---|---|
"surfaces" (default) | Keep the page’s tint, each at the neutral ramp’s own lightness distance from step 1 | Keep 75%, 50% and 25% of the tint | Neutral |
"page" | Blend from the page back to the neutral ramp, reaching it at step 6 | Neutral | Neutral |
With the default a warm page has warm cards, panels and hover states, and its borders are a little warm; text and solid fills stay the neutral’s own. Choose "page" for a tinted page under cards that stay grey: "surface": { "light": "#fbf6ee", "spread": "page" }. An anchor that sits nearer step 6 than the ramp’s own step 1 does brings the five surfaces closer together, so step 5 still stops short of step 6.
The other scheme and every other role are not affected. Page text, each role’s -text and each role’s -border are solved against the anchored surfaces in either spread, so they keep their contrast floors; the overlay and inverse surfaces follow the anchors, and the dark overlay (neutral 3) carries the tint with the default spread.
A light anchor darker than OKLCH L 0.85 gives a SURFACE_ANCHOR_TOO_DARK warning, and a dark anchor lighter than L 0.30 gives SURFACE_ANCHOR_TOO_LIGHT: past those the page stops reading as light or as dark and the first five steps are squeezed together.
12-step scale
| Steps | Token | Usage |
|---|---|---|
| 1–2 | --fp-{role}-1, -2 | Backgrounds — page canvas, sidebars, cards |
| 3–5 | --fp-{role}-3 to -5 | UI elements — inputs, hovers, active states |
| 6–7 | --fp-{role}-6, -7 | Borders — separators, focus rings |
| 8 | --fp-{role}-8 | Interactive — icons, links |
| 9 | --fp-{role}-9 | Solid surfaces — buttons, badges (the “brand” step) |
| 10 | --fp-{role}-10 | Solid hover — button hover state |
| 11–12 | --fp-{role}-11, -12 | Text — secondary copy, headings |
Per-role tokens
| Token | What it is |
|---|---|
--fp-{role}-seed | The configured hex (only for roles whose seed you set). Step 9 reads it. |
--fp-{role}-text | The role’s colour as text on the page: step 9 where it already reaches 4.5:1 on neutral steps 1–3, under every ambient light at full strength and under every overlap of them, otherwise the nearest lightness that does. |
--fp-{role}-border | Step 8, moved in lightness where needed to reach 3:1 against the page, lit or not — for a control’s outline. |
Use --fp-{role}-text for brand-coloured text and links on the page background; a pale brand colour at step 9 may not be readable as text. With elevation.ambient, coloured light tints the page, so the engine measures -text and -border against the page under each light at full strength and under every overlap of them, in the order CSS paints them, as well.
Every other foreground has a partner too: text on a step 9 or 10 fill takes that step’s -contrast, text on a step 1–5 fill takes its -on-text when the contrast matrix is on (-on-text-soft for secondary text, -on-icon for icons), or the role’s step 11 or 12, which the pairing contract accepts on steps 1–5 in every stylesheet. With seeds.surface lifting the dark page, the raw step 11 can fall short of 4.5:1 on those steps: the page’s own text tokens (--fp-text-*, --fp-{role}-text) are solved for the lifted surface, step 11 is not, and an anchor light enough for that raises SURFACE_ANCHOR_TOO_LIGHT.
Chroma curve
Chroma is not constant across the 12 steps. It follows a hand-tuned curve that peaks at step 9 and is lower towards the ends, with a raised floor so the lightest and darkest steps keep some hue:
Step: 1 2 3 4 5 6 7 8 9 10 11 12
Curve: 0.12 0.20 0.30 0.28 0.42 0.55 0.72 0.92 1.00 0.85 0.55 0.35Very light and very dark colours cannot hold much chroma in sRGB, so tapering the ends keeps the ramp inside the gamut. The engine also caps each seed’s chroma so the high-chroma steps (7–10) stay inside sRGB in both schemes.
Contrast pairs (binary)
Each step has a -contrast token, a black or white foreground for text on that step:
background: var(--fp-primary-9);
color: var(--fp-primary-9-contrast); /* black or white, WCAG AA */The foreground is measured at build time for each step and scheme. With the default contrastAlgorithm: "apca", the engine picks white while it still clears 4.5:1 on that colour (7:1 with settings.accessibility: "AAA"), otherwise the better of black and white; with "wcag2" it picks whichever contrasts more. The better of black and white always reaches about 4.58:1 or more, so -contrast meets WCAG 2.1 AA in both schemes. It is emitted as light-dark(…) and flips with the active color-scheme.
The default stylesheet carries -contrast for steps 8–11. The other steps’ -contrast tokens are in the full stylesheet or with output.contrastMatrix: true.
APCA contrast matrix (tinted)
For richer foregrounds, every step also has three APCA-computed tokens that use a step from the same role’s scale instead of black or white:
| Token | APCA Lc target | WCAG floor | Use |
|---|---|---|---|
--fp-{role}-{n}-on-text | ≥ 90 | 4.5:1 | Body text (14–16px regular weight) |
--fp-{role}-{n}-on-text-soft | ≥ 60 | 4.5:1 | Large/secondary text (18px+ or bold) |
--fp-{role}-{n}-on-icon | ≥ 45 | 3:1 | Icons, non-text marks |
/* Needs the contrast matrix: theme-full.css, or output.contrastMatrix: true. */
/* Tinted foreground on a tinted fill — matches the role's hue */
background: var(--fp-primary-3);
color: var(--fp-primary-3-on-text);
/* Softer contrast for secondary info */
color: var(--fp-primary-3-on-text-soft);
/* Icon colour on a coloured surface */
fill: var(--fp-danger-9-on-icon);The floors above are AA; settings.accessibility: "AAA" raises them to 7:1 for the text tiers and 4.5:1 for icons. Where no step and neither black nor white reaches 7:1 (mid-tone steps), a text tier keeps the better of black and white, at least 4.5:1. The solver picks the same-scale step that meets the target; when none does, it falls back to black or white (on steps 9 and 10 that is the usual result). Light and dark are solved separately and combined in light-dark(). The matrix is not in the default stylesheet — enable it with output.contrastMatrix: true, or use the full stylesheet (see Build & Import).
Alpha stops
Each role gets 5 translucent variants of step 9:
| Token | Opacity | Use | Text held to 4.5:1 on it (over neutral 1–3) |
|---|---|---|---|
--fp-{role}-a1 | 5% | Ghost hover | The role’s steps 11 and 12, the page’s default and muted text |
--fp-{role}-a2 | 10% | Subtle tint | The role’s steps 11 and 12, the page’s default and muted text |
--fp-{role}-a3 | 20% | Active press | The role’s steps 11 and 12, the page’s default and muted text |
--fp-{role}-a4 | 30% | Focus ring | The role’s step 12 and the page’s default text |
--fp-{role}-a5 | 45% | Badge / chip | None: check a label on it, or put the label on a solid fill |
The neutral tints also carry every role’s step 11, up to a4.
A tint is step 9 at an alpha, and step 9 of a brand role is the seed itself. In a scheme where the seed (or a seeds.surface anchor) would put a tint out of reach of the text the contract pairs with it, the tint’s lightness is held (min(l, …) in dark), so the page’s default and muted text and the role’s steps 11 and 12 keep 4.5:1 on a1–a3 over neutral 1–3. A page no tint can fix is reported as TINT_TEXT_SHORT.
Static colors
--fp-white-a{1..12} and --fp-black-a{1..12} are white and black at fixed opacities from 2% to 98%. They are the same in light and dark mode.
P3 wide-gamut enhancement
On displays that report the P3 colour gamut, the chroma curve is raised for steps 7–10:
@media (color-gamut: p3) {
:root {
--fp-C-7: 0.8; /* sRGB: 0.72 */
--fp-C-8: 1; /* sRGB: 0.92 */
--fp-C-9: 1; /* sRGB: 1.00 (no change) */
--fp-C-10: 1; /* sRGB: 0.85 */
}
}Ramp colours become more vivid on P3 screens. Steps that use the seed directly (step 9 and the hover at step 10 of a brand role) are not affected. No JavaScript is involved.
Dark mode
With settings.schemes: "both" (the default), every ramp colour is a light-dark() pair, so both schemes live in one stylesheet (a brand role’s step 9 is the seed in both schemes, and the static --fp-white-a* / --fp-black-a* are single values):
--fp-neutral-1: light-dark(oklch(0.985 …), oklch(0.15 …));
--fp-neutral-9: light-dark(oklch(0.5 …), oklch(0.61 …));A brand role’s step 9 is the seed in both schemes; its hover (step 10) moves darker in light mode and lighter in dark mode.
The scheme follows the OS preference automatically. To force one, set data-theme on <html>:
<!-- Follows the OS preference -->
<html>
…
</html>
<!-- Always dark -->
<html data-theme="dark">
…
</html>The same token names work in both schemes — no extra CSS needed. schemes: "light" or "dark" ships one scheme only.
Examples
Surface hierarchy
.page {
background: var(--fp-neutral-1);
}
.sidebar {
background: var(--fp-neutral-2);
}
.card {
background: var(--fp-neutral-3);
}
.card:hover {
background: var(--fp-neutral-4);
}Button with contrast pair
/* Binary (black/white) — in the default stylesheet */
.btn-primary {
background: var(--fp-primary-9);
color: var(--fp-primary-9-contrast);
}
.btn-primary:hover {
background: var(--fp-primary-10);
color: var(--fp-primary-10-contrast);
}
/* Tinted (APCA-computed) — needs output.contrastMatrix or the full stylesheet */
.btn-primary-tinted {
background: var(--fp-primary-3);
color: var(--fp-primary-3-on-text);
}Ghost button with alpha stops
.btn-ghost {
background: transparent;
color: var(--fp-primary-text);
}
.btn-ghost:hover {
background: var(--fp-primary-a1); /* 5% tint */
}
.btn-ghost:active {
background: var(--fp-primary-a3); /* 20% tint */
}Status alert
.alert-danger {
background: var(--fp-danger-2);
color: var(--fp-danger-11);
border-left: 4px solid var(--fp-danger-9);
}Focus ring
.input:focus-visible {
box-shadow: 0 0 0 3px var(--fp-primary-a4); /* 30% primary */
}Status badge
.badge-success {
background: var(--fp-success-9);
color: var(--fp-success-9-contrast);
}Runtime re-tint
// Re-tints the ramp steps (1–8, 11, 12) of the primary role
document.documentElement.style.setProperty("--fp-primary-h", "145");
document.documentElement.style.setProperty("--fp-primary-c", "0.17");
// Step 9, the hover at step 10 and the alpha stops follow the seed
document.documentElement.style.setProperty("--fp-primary-seed", "#15803d");
// Not re-measured: -contrast (the label on step 9), -text and -border keep their build valuesThe label colour --fp-primary-9-contrast is not re-measured for the new seed, so check it before you ship a runtime seed: on some themes the old label on #15803d falls under 4.5:1.
The -contrast, -text and -border tokens are measured at build time against the configured seeds; a runtime change does not re-measure them. The same holds for the lightness the alpha stops are held to in dark (min(l, …)): it is solved for the build seed, so a much lighter runtime seed can leave text on a tint under 4.5:1. A seed with almost no chroma (under about 0.02) also loses its hue in the steps derived from it at runtime, because a browser treats the hue of a near-grey as missing. For a real brand change, regenerate the theme from the new seed.
Best practices
-
Use a contrast token for text on coloured backgrounds.
-contrastfor black/white, or-on-textfor a tinted foreground when the matrix is enabled. Don’t hardcodecolor: white. -
Use steps 1–2 for backgrounds, 9 for solids, 11–12 for text. For brand-coloured text on the page, use
--fp-{role}-text. -
Use alpha stops instead of
opacity. Alpha stops (-a1to-a5) make only the fill translucent.opacity: 0.5fades everything, text included. -
Don’t mix roles at random.
primaryfor main actions,neutralfor structure, semantic roles for feedback. -
Mind the gamut when setting chroma by hand. The engine caps seed chroma at build time, but a
--fp-{role}-cyou set at runtime is not checked; high values clip outside sRGB, especially for yellow hues (around 85°). -
Regenerate rather than re-tint for a new brand. Runtime changes to
-h,-cand-seedmove the colours but not the measured contrast tokens.
Chroma
This site's theme as the engine resolves it: primary #4f46e5 · secondary #7c3aed · success #15803d · danger #dc2626 · warning #f59e0b · info #2563eb. Neutral is near-grey, so it takes primary's hue; each semantic role comes from its own seed.
--fp-*):root {
/* Primary */
--fp-primary-h: 277;
--fp-primary-c: 0.1934;
--fp-primary-seed: #4f46e5;
--fp-primary-1: light-dark(oklch(0.985 calc(var(--fp-primary-c) * var(--fp-C-1)) var(--fp-primary-h)), oklch(0.15 calc(var(--fp-primary-c) * var(--fp-C-1)) var(--fp-primary-h)));
--fp-primary-1-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-primary-2: light-dark(oklch(0.96 calc(var(--fp-primary-c) * var(--fp-C-2)) var(--fp-primary-h)), oklch(0.19 calc(var(--fp-primary-c) * var(--fp-C-2)) var(--fp-primary-h)));
--fp-primary-2-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-primary-3: light-dark(oklch(0.93 calc(var(--fp-primary-c) * var(--fp-C-3)) var(--fp-primary-h)), oklch(0.23 calc(var(--fp-primary-c) * var(--fp-C-3)) var(--fp-primary-h)));
--fp-primary-3-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-primary-4: light-dark(oklch(0.895 calc(var(--fp-primary-c) * var(--fp-C-4)) var(--fp-primary-h)), oklch(0.26 calc(var(--fp-primary-c) * var(--fp-C-4)) var(--fp-primary-h)));
--fp-primary-4-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-primary-5: light-dark(oklch(0.855 calc(var(--fp-primary-c) * var(--fp-C-5)) var(--fp-primary-h)), oklch(0.3 calc(var(--fp-primary-c) * var(--fp-C-5)) var(--fp-primary-h)));
--fp-primary-5-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-primary-6: light-dark(oklch(0.79 calc(var(--fp-primary-c) * var(--fp-C-6)) var(--fp-primary-h)), oklch(0.35 calc(var(--fp-primary-c) * var(--fp-C-6)) var(--fp-primary-h)));
--fp-primary-6-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-primary-7: light-dark(oklch(0.7 calc(var(--fp-primary-c) * var(--fp-C-7)) var(--fp-primary-h)), oklch(0.42 calc(var(--fp-primary-c) * var(--fp-C-7)) var(--fp-primary-h)));
--fp-primary-7-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-primary-8: light-dark(oklch(0.58 calc(var(--fp-primary-c) * var(--fp-C-8)) var(--fp-primary-h)), oklch(0.53 calc(var(--fp-primary-c) * var(--fp-C-8)) var(--fp-primary-h)));
--fp-primary-8-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-primary-9: var(--fp-primary-seed);
--fp-primary-9-contrast: light-dark(oklch(1 0 0), oklch(1 0 0));
--fp-primary-10: light-dark(oklch(from var(--fp-primary-seed) calc(l - 0.05) min(c, 0.285) h), oklch(from var(--fp-primary-seed) calc(l + 0.05) min(c, 0.2451) h));
--fp-primary-10-contrast: light-dark(oklch(1 0 0), oklch(1 0 0));
--fp-primary-11: light-dark(oklch(0.34 calc(var(--fp-primary-c) * var(--fp-C-11)) var(--fp-primary-h)), oklch(0.78 calc(var(--fp-primary-c) * var(--fp-C-11)) var(--fp-primary-h)));
--fp-primary-11-contrast: light-dark(oklch(1 0 0), oklch(0 0 0));
--fp-primary-12: light-dark(oklch(0.22 calc(var(--fp-primary-c) * var(--fp-C-12)) var(--fp-primary-h)), oklch(0.92 calc(var(--fp-primary-c) * var(--fp-C-12)) var(--fp-primary-h)));
--fp-primary-12-contrast: light-dark(oklch(1 0 0), oklch(0 0 0));
--fp-primary-text: light-dark(var(--fp-primary-seed), oklch(0.6606 0.1821 276.9656));
/* Secondary */
--fp-secondary-h: 293;
--fp-secondary-c: 0.2117;
--fp-secondary-seed: #7c3aed;
--fp-secondary-1: light-dark(oklch(0.985 calc(var(--fp-secondary-c) * var(--fp-C-1)) var(--fp-secondary-h)), oklch(0.15 calc(var(--fp-secondary-c) * var(--fp-C-1)) var(--fp-secondary-h)));
--fp-secondary-1-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-secondary-2: light-dark(oklch(0.96 calc(var(--fp-secondary-c) * var(--fp-C-2)) var(--fp-secondary-h)), oklch(0.19 calc(var(--fp-secondary-c) * var(--fp-C-2)) var(--fp-secondary-h)));
--fp-secondary-2-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-secondary-3: light-dark(oklch(0.93 calc(var(--fp-secondary-c) * var(--fp-C-3)) var(--fp-secondary-h)), oklch(0.23 calc(var(--fp-secondary-c) * var(--fp-C-3)) var(--fp-secondary-h)));
--fp-secondary-3-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-secondary-4: light-dark(oklch(0.895 calc(var(--fp-secondary-c) * var(--fp-C-4)) var(--fp-secondary-h)), oklch(0.26 calc(var(--fp-secondary-c) * var(--fp-C-4)) var(--fp-secondary-h)));
--fp-secondary-4-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-secondary-5: light-dark(oklch(0.855 calc(var(--fp-secondary-c) * var(--fp-C-5)) var(--fp-secondary-h)), oklch(0.3 calc(var(--fp-secondary-c) * var(--fp-C-5)) var(--fp-secondary-h)));
--fp-secondary-5-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-secondary-6: light-dark(oklch(0.79 calc(var(--fp-secondary-c) * var(--fp-C-6)) var(--fp-secondary-h)), oklch(0.35 calc(var(--fp-secondary-c) * var(--fp-C-6)) var(--fp-secondary-h)));
--fp-secondary-6-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-secondary-7: light-dark(oklch(0.7 calc(var(--fp-secondary-c) * var(--fp-C-7)) var(--fp-secondary-h)), oklch(0.42 calc(var(--fp-secondary-c) * var(--fp-C-7)) var(--fp-secondary-h)));
--fp-secondary-7-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-secondary-8: light-dark(oklch(0.58 calc(var(--fp-secondary-c) * var(--fp-C-8)) var(--fp-secondary-h)), oklch(0.53 calc(var(--fp-secondary-c) * var(--fp-C-8)) var(--fp-secondary-h)));
--fp-secondary-8-contrast: light-dark(oklch(1 0 0), oklch(1 0 0));
--fp-secondary-9: var(--fp-secondary-seed);
--fp-secondary-9-contrast: light-dark(oklch(1 0 0), oklch(1 0 0));
--fp-secondary-10: light-dark(oklch(from var(--fp-secondary-seed) calc(l - 0.05) min(c, 0.2729) h), oklch(from var(--fp-secondary-seed) calc(l + 0.05) min(c, 0.247) h));
--fp-secondary-10-contrast: light-dark(oklch(1 0 0), oklch(1 0 0));
--fp-secondary-11: light-dark(oklch(0.34 calc(var(--fp-secondary-c) * var(--fp-C-11)) var(--fp-secondary-h)), oklch(0.78 calc(var(--fp-secondary-c) * var(--fp-C-11)) var(--fp-secondary-h)));
--fp-secondary-11-contrast: light-dark(oklch(1 0 0), oklch(0 0 0));
--fp-secondary-12: light-dark(oklch(0.22 calc(var(--fp-secondary-c) * var(--fp-C-12)) var(--fp-secondary-h)), oklch(0.92 calc(var(--fp-secondary-c) * var(--fp-C-12)) var(--fp-secondary-h)));
--fp-secondary-12-contrast: light-dark(oklch(1 0 0), oklch(0 0 0));
--fp-secondary-text: light-dark(var(--fp-secondary-seed), oklch(0.6713 0.1923 293.009));
/* Neutral */
--fp-neutral-h: 277;
--fp-neutral-c: 0.0392;
--fp-neutral-1: light-dark(oklch(0.985 calc(var(--fp-neutral-c) * var(--fp-C-1)) var(--fp-neutral-h)), oklch(0.2077 0.0398 265.8));
--fp-neutral-1-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-neutral-2: light-dark(oklch(0.96 calc(var(--fp-neutral-c) * var(--fp-C-2)) var(--fp-neutral-h)), oklch(0.2416 0.0398 265.8));
--fp-neutral-2-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-neutral-3: light-dark(oklch(0.93 calc(var(--fp-neutral-c) * var(--fp-C-3)) var(--fp-neutral-h)), oklch(0.2756 0.0398 265.8));
--fp-neutral-3-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-neutral-4: light-dark(oklch(0.895 calc(var(--fp-neutral-c) * var(--fp-C-4)) var(--fp-neutral-h)), oklch(0.301 0.0398 265.8));
--fp-neutral-4-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-neutral-5: light-dark(oklch(0.855 calc(var(--fp-neutral-c) * var(--fp-C-5)) var(--fp-neutral-h)), oklch(0.335 0.0398 265.8));
--fp-neutral-5-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-neutral-6: light-dark(oklch(0.79 calc(var(--fp-neutral-c) * var(--fp-C-6)) var(--fp-neutral-h)), oklch(0.35 0.0352 267.5));
--fp-neutral-6-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-neutral-7: light-dark(oklch(0.7 calc(var(--fp-neutral-c) * var(--fp-C-7)) var(--fp-neutral-h)), oklch(0.42 0.0339 270.4));
--fp-neutral-7-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-neutral-8: light-dark(oklch(0.58 calc(var(--fp-neutral-c) * var(--fp-C-8)) var(--fp-neutral-h)), oklch(0.53 0.0368 274));
--fp-neutral-8-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-neutral-9: light-dark(oklch(0.5 calc(var(--fp-neutral-c) * var(--fp-C-9)) var(--fp-neutral-h)), oklch(0.61 calc(var(--fp-neutral-c) * var(--fp-C-9)) var(--fp-neutral-h)));
--fp-neutral-9-contrast: light-dark(oklch(1 0 0), oklch(0 0 0));
--fp-neutral-10: light-dark(oklch(0.42 calc(var(--fp-neutral-c) * var(--fp-C-10)) var(--fp-neutral-h)), oklch(0.69 calc(var(--fp-neutral-c) * var(--fp-C-10)) var(--fp-neutral-h)));
--fp-neutral-10-contrast: light-dark(oklch(1 0 0), oklch(0 0 0));
--fp-neutral-11: light-dark(oklch(0.34 calc(var(--fp-neutral-c) * var(--fp-C-11)) var(--fp-neutral-h)), oklch(0.78 calc(var(--fp-neutral-c) * var(--fp-C-11)) var(--fp-neutral-h)));
--fp-neutral-11-contrast: light-dark(oklch(1 0 0), oklch(0 0 0));
--fp-neutral-12: light-dark(oklch(0.22 calc(var(--fp-neutral-c) * var(--fp-C-12)) var(--fp-neutral-h)), oklch(0.92 calc(var(--fp-neutral-c) * var(--fp-C-12)) var(--fp-neutral-h)));
--fp-neutral-12-contrast: light-dark(oklch(1 0 0), oklch(0 0 0));
--fp-neutral-text: light-dark(oklch(0.5 0.0392 277), oklch(0.65 0.0392 277));
/* Success */
--fp-success-h: 150;
--fp-success-c: 0.136;
--fp-success-seed: #15803d;
--fp-success-1: light-dark(oklch(0.985 calc(var(--fp-success-c) * var(--fp-C-1)) var(--fp-success-h)), oklch(0.15 calc(var(--fp-success-c) * var(--fp-C-1)) var(--fp-success-h)));
--fp-success-1-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-success-2: light-dark(oklch(0.96 calc(var(--fp-success-c) * var(--fp-C-2)) var(--fp-success-h)), oklch(0.19 calc(var(--fp-success-c) * var(--fp-C-2)) var(--fp-success-h)));
--fp-success-2-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-success-3: light-dark(oklch(0.93 calc(var(--fp-success-c) * var(--fp-C-3)) var(--fp-success-h)), oklch(0.23 calc(var(--fp-success-c) * var(--fp-C-3)) var(--fp-success-h)));
--fp-success-3-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-success-4: light-dark(oklch(0.895 calc(var(--fp-success-c) * var(--fp-C-4)) var(--fp-success-h)), oklch(0.26 calc(var(--fp-success-c) * var(--fp-C-4)) var(--fp-success-h)));
--fp-success-4-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-success-5: light-dark(oklch(0.855 calc(var(--fp-success-c) * var(--fp-C-5)) var(--fp-success-h)), oklch(0.3 calc(var(--fp-success-c) * var(--fp-C-5)) var(--fp-success-h)));
--fp-success-5-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-success-6: light-dark(oklch(0.79 calc(var(--fp-success-c) * var(--fp-C-6)) var(--fp-success-h)), oklch(0.35 calc(var(--fp-success-c) * var(--fp-C-6)) var(--fp-success-h)));
--fp-success-6-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-success-7: light-dark(oklch(0.7 calc(var(--fp-success-c) * var(--fp-C-7)) var(--fp-success-h)), oklch(0.42 calc(var(--fp-success-c) * var(--fp-C-7)) var(--fp-success-h)));
--fp-success-7-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-success-8: light-dark(oklch(0.58 calc(var(--fp-success-c) * var(--fp-C-8)) var(--fp-success-h)), oklch(0.53 calc(var(--fp-success-c) * var(--fp-C-8)) var(--fp-success-h)));
--fp-success-8-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-success-9: var(--fp-success-seed);
--fp-success-9-contrast: light-dark(oklch(1 0 0), oklch(1 0 0));
--fp-success-10: light-dark(oklch(from var(--fp-success-seed) calc(l - 0.05) min(c, 0.1312) h), oklch(from var(--fp-success-seed) calc(l + 0.05) min(c, 0.1587) h));
--fp-success-10-contrast: light-dark(oklch(1 0 0), oklch(0 0 0));
--fp-success-11: light-dark(oklch(0.34 calc(var(--fp-success-c) * var(--fp-C-11)) var(--fp-success-h)), oklch(0.78 calc(var(--fp-success-c) * var(--fp-C-11)) var(--fp-success-h)));
--fp-success-11-contrast: light-dark(oklch(1 0 0), oklch(0 0 0));
--fp-success-12: light-dark(oklch(0.22 calc(var(--fp-success-c) * var(--fp-C-12)) var(--fp-success-h)), oklch(0.92 calc(var(--fp-success-c) * var(--fp-C-12)) var(--fp-success-h)));
--fp-success-12-contrast: light-dark(oklch(1 0 0), oklch(0 0 0));
--fp-success-text: light-dark(oklch(0.4973 0.1367 150.0693), oklch(0.6373 0.1371 150.0693));
/* Danger */
--fp-danger-h: 27;
--fp-danger-c: 0.2012;
--fp-danger-seed: #dc2626;
--fp-danger-1: light-dark(oklch(0.985 calc(var(--fp-danger-c) * var(--fp-C-1)) var(--fp-danger-h)), oklch(0.15 calc(var(--fp-danger-c) * var(--fp-C-1)) var(--fp-danger-h)));
--fp-danger-1-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-danger-2: light-dark(oklch(0.96 calc(var(--fp-danger-c) * var(--fp-C-2)) var(--fp-danger-h)), oklch(0.19 calc(var(--fp-danger-c) * var(--fp-C-2)) var(--fp-danger-h)));
--fp-danger-2-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-danger-3: light-dark(oklch(0.93 calc(var(--fp-danger-c) * var(--fp-C-3)) var(--fp-danger-h)), oklch(0.23 calc(var(--fp-danger-c) * var(--fp-C-3)) var(--fp-danger-h)));
--fp-danger-3-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-danger-4: light-dark(oklch(0.895 calc(var(--fp-danger-c) * var(--fp-C-4)) var(--fp-danger-h)), oklch(0.26 calc(var(--fp-danger-c) * var(--fp-C-4)) var(--fp-danger-h)));
--fp-danger-4-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-danger-5: light-dark(oklch(0.855 calc(var(--fp-danger-c) * var(--fp-C-5)) var(--fp-danger-h)), oklch(0.3 calc(var(--fp-danger-c) * var(--fp-C-5)) var(--fp-danger-h)));
--fp-danger-5-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-danger-6: light-dark(oklch(0.79 calc(var(--fp-danger-c) * var(--fp-C-6)) var(--fp-danger-h)), oklch(0.35 calc(var(--fp-danger-c) * var(--fp-C-6)) var(--fp-danger-h)));
--fp-danger-6-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-danger-7: light-dark(oklch(0.7 calc(var(--fp-danger-c) * var(--fp-C-7)) var(--fp-danger-h)), oklch(0.42 calc(var(--fp-danger-c) * var(--fp-C-7)) var(--fp-danger-h)));
--fp-danger-7-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-danger-8: light-dark(oklch(0.58 calc(var(--fp-danger-c) * var(--fp-C-8)) var(--fp-danger-h)), oklch(0.53 calc(var(--fp-danger-c) * var(--fp-C-8)) var(--fp-danger-h)));
--fp-danger-8-contrast: light-dark(oklch(1 0 0), oklch(1 0 0));
--fp-danger-9: var(--fp-danger-seed);
--fp-danger-9-contrast: light-dark(oklch(1 0 0), oklch(1 0 0));
--fp-danger-10: light-dark(oklch(from var(--fp-danger-seed) calc(l - 0.05) min(c, 0.215) h), oklch(from var(--fp-danger-seed) calc(l + 0.05) min(c, 0.2558) h));
--fp-danger-10-contrast: light-dark(oklch(1 0 0), oklch(0 0 0));
--fp-danger-11: light-dark(oklch(0.34 calc(var(--fp-danger-c) * var(--fp-C-11)) var(--fp-danger-h)), oklch(0.78 calc(var(--fp-danger-c) * var(--fp-C-11)) var(--fp-danger-h)));
--fp-danger-11-contrast: light-dark(oklch(1 0 0), oklch(0 0 0));
--fp-danger-12: light-dark(oklch(0.22 calc(var(--fp-danger-c) * var(--fp-C-12)) var(--fp-danger-h)), oklch(0.92 calc(var(--fp-danger-c) * var(--fp-C-12)) var(--fp-danger-h)));
--fp-danger-12-contrast: light-dark(oklch(1 0 0), oklch(0 0 0));
--fp-danger-text: light-dark(oklch(0.5421 0.2152 27.325), oklch(0.6771 0.2109 27.325));
/* Warning */
--fp-warning-h: 70;
--fp-warning-c: 0.1069;
--fp-warning-seed: #f59e0b;
--fp-warning-1: light-dark(oklch(0.985 calc(var(--fp-warning-c) * var(--fp-C-1)) var(--fp-warning-h)), oklch(0.15 calc(var(--fp-warning-c) * var(--fp-C-1)) var(--fp-warning-h)));
--fp-warning-1-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-warning-2: light-dark(oklch(0.96 calc(var(--fp-warning-c) * var(--fp-C-2)) var(--fp-warning-h)), oklch(0.19 calc(var(--fp-warning-c) * var(--fp-C-2)) var(--fp-warning-h)));
--fp-warning-2-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-warning-3: light-dark(oklch(0.93 calc(var(--fp-warning-c) * var(--fp-C-3)) var(--fp-warning-h)), oklch(0.23 calc(var(--fp-warning-c) * var(--fp-C-3)) var(--fp-warning-h)));
--fp-warning-3-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-warning-4: light-dark(oklch(0.895 calc(var(--fp-warning-c) * var(--fp-C-4)) var(--fp-warning-h)), oklch(0.26 calc(var(--fp-warning-c) * var(--fp-C-4)) var(--fp-warning-h)));
--fp-warning-4-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-warning-5: light-dark(oklch(0.855 calc(var(--fp-warning-c) * var(--fp-C-5)) var(--fp-warning-h)), oklch(0.3 calc(var(--fp-warning-c) * var(--fp-C-5)) var(--fp-warning-h)));
--fp-warning-5-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-warning-6: light-dark(oklch(0.79 calc(var(--fp-warning-c) * var(--fp-C-6)) var(--fp-warning-h)), oklch(0.35 calc(var(--fp-warning-c) * var(--fp-C-6)) var(--fp-warning-h)));
--fp-warning-6-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-warning-7: light-dark(oklch(0.7 calc(var(--fp-warning-c) * var(--fp-C-7)) var(--fp-warning-h)), oklch(0.42 calc(var(--fp-warning-c) * var(--fp-C-7)) var(--fp-warning-h)));
--fp-warning-7-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-warning-8: light-dark(oklch(0.58 calc(var(--fp-warning-c) * var(--fp-C-8)) var(--fp-warning-h)), oklch(0.53 calc(var(--fp-warning-c) * var(--fp-C-8)) var(--fp-warning-h)));
--fp-warning-8-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-warning-9: var(--fp-warning-seed);
--fp-warning-9-contrast: light-dark(oklch(0 0 0), oklch(0 0 0));
--fp-warning-10: light-dark(oklch(from var(--fp-warning-seed) calc(l - 0.05) min(c, 0.1555) h), oklch(from var(--fp-warning-seed) calc(l + 0.05) min(c, 0.1453) h));
--fp-warning-10-contrast: light-dark(oklch(0 0 0), oklch(0 0 0));
--fp-warning-11: light-dark(oklch(0.34 calc(var(--fp-warning-c) * var(--fp-C-11)) var(--fp-warning-h)), oklch(0.78 calc(var(--fp-warning-c) * var(--fp-C-11)) var(--fp-warning-h)));
--fp-warning-11-contrast: light-dark(oklch(1 0 0), oklch(0 0 0));
--fp-warning-12: light-dark(oklch(0.22 calc(var(--fp-warning-c) * var(--fp-C-12)) var(--fp-warning-h)), oklch(0.92 calc(var(--fp-warning-c) * var(--fp-C-12)) var(--fp-warning-h)));
--fp-warning-12-contrast: light-dark(oklch(1 0 0), oklch(0 0 0));
--fp-warning-text: light-dark(oklch(0.5186 0.1122 70.0804), var(--fp-warning-seed));
/* Info */
--fp-info-h: 263;
--fp-info-c: 0.191;
--fp-info-seed: #2563eb;
--fp-info-1: light-dark(oklch(0.985 calc(var(--fp-info-c) * var(--fp-C-1)) var(--fp-info-h)), oklch(0.15 calc(var(--fp-info-c) * var(--fp-C-1)) var(--fp-info-h)));
--fp-info-1-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-info-2: light-dark(oklch(0.96 calc(var(--fp-info-c) * var(--fp-C-2)) var(--fp-info-h)), oklch(0.19 calc(var(--fp-info-c) * var(--fp-C-2)) var(--fp-info-h)));
--fp-info-2-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-info-3: light-dark(oklch(0.93 calc(var(--fp-info-c) * var(--fp-C-3)) var(--fp-info-h)), oklch(0.23 calc(var(--fp-info-c) * var(--fp-C-3)) var(--fp-info-h)));
--fp-info-3-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-info-4: light-dark(oklch(0.895 calc(var(--fp-info-c) * var(--fp-C-4)) var(--fp-info-h)), oklch(0.26 calc(var(--fp-info-c) * var(--fp-C-4)) var(--fp-info-h)));
--fp-info-4-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-info-5: light-dark(oklch(0.855 calc(var(--fp-info-c) * var(--fp-C-5)) var(--fp-info-h)), oklch(0.3 calc(var(--fp-info-c) * var(--fp-C-5)) var(--fp-info-h)));
--fp-info-5-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-info-6: light-dark(oklch(0.79 calc(var(--fp-info-c) * var(--fp-C-6)) var(--fp-info-h)), oklch(0.35 calc(var(--fp-info-c) * var(--fp-C-6)) var(--fp-info-h)));
--fp-info-6-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-info-7: light-dark(oklch(0.7 calc(var(--fp-info-c) * var(--fp-C-7)) var(--fp-info-h)), oklch(0.42 calc(var(--fp-info-c) * var(--fp-C-7)) var(--fp-info-h)));
--fp-info-7-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-info-8: light-dark(oklch(0.58 calc(var(--fp-info-c) * var(--fp-C-8)) var(--fp-info-h)), oklch(0.53 calc(var(--fp-info-c) * var(--fp-C-8)) var(--fp-info-h)));
--fp-info-8-contrast: light-dark(oklch(0 0 0), oklch(1 0 0));
--fp-info-9: var(--fp-info-seed);
--fp-info-9-contrast: light-dark(oklch(1 0 0), oklch(1 0 0));
--fp-info-10: light-dark(oklch(from var(--fp-info-seed) calc(l - 0.05) min(c, 0.2471) h), oklch(from var(--fp-info-seed) calc(l + 0.05) min(c, 0.2193) h));
--fp-info-10-contrast: light-dark(oklch(1 0 0), oklch(0 0 0));
--fp-info-11: light-dark(oklch(0.34 calc(var(--fp-info-c) * var(--fp-C-11)) var(--fp-info-h)), oklch(0.78 calc(var(--fp-info-c) * var(--fp-C-11)) var(--fp-info-h)));
--fp-info-11-contrast: light-dark(oklch(1 0 0), oklch(0 0 0));
--fp-info-12: light-dark(oklch(0.22 calc(var(--fp-info-c) * var(--fp-C-12)) var(--fp-info-h)), oklch(0.92 calc(var(--fp-info-c) * var(--fp-C-12)) var(--fp-info-h)));
--fp-info-12-contrast: light-dark(oklch(1 0 0), oklch(0 0 0));
--fp-info-text: light-dark(oklch(0.5261 0.2152 262.8809), oklch(0.6561 0.1825 262.8809));
}