Color.

Every color has a role: the layer something lives on, the tone of what you read, what marks, what warns. A component asks for the role and the theme gives it its value.

Available Updated November 24, 2026

Roles, not values

A component asks for a color by what it does: the raised layer, text 2, the accent. It never writes a gray or a hex. Each theme gives every role its value, and contrast is measured on every layer.

LevelWhat it isWho uses it
The scale The graphites and the system colors, in OKLCH with their fallback hex.No one directly: each theme gives it a role.
The roles Layers, text, accent, fills, lines, status, action, shadows, glass and charts, as --cu-*.Components and pages.
The component Each component’s tokens (cu.button.*, cu.field.*), pointing at the roles.Its component. A theme rarely touches them.

In use across flouvia.com, Flouvia OS and Ops: the layers, the text tones, the fills, the line, the accent, the focus and the status colors. The chart palette is in design, with its guide.

The graphite scale

Five grays with the canvas’s cool hue (286°). The number is its lightness in OKLCH: graphite-20 in the guide and graphite-20 in code.

GraphiteHexRoleFor
graphite-16 #0e0e0fSunkenCode and frames for images and video.
graphite-20 #161617BaseThe page canvas.
graphite-23 #1d1d1fRaisedCards; sheets and modals over the veil.
graphite-29 #2c2c2eOverlayMenus, popovers and what sits inside a sheet. The ceiling.
graphite-97 #f5f5f7TextWhat you read on graphite.
  • Lightness tells the distance

    Two graphites 23 or more apart give 3:1. The number alone says how far apart they are.

  • Nothing above 29

    Any higher and text 3, the link and the focus ring stop reaching their contrast.

  • No loose grays

    A component never writes a gray: it asks for the layer or text tone it needs.

Layers

Sunken, base, raised and overlay. The container sets the layer, and whatever rests on something steps up one.

The four layers of the Flouvia theme, with each tone’s contrast measured on each one. Overlay, the lightest, is the worst case.
LayerRoleFor
Sunken --cu-layer-sunkenCode and media frames.
Base --cu-layer-baseThe page canvas.
Raised --cu-layer-raisedCards; sheets and modals over the veil.
Overlay --cu-layer-overlayMenus, popovers and what sits inside a sheet.
  • The container sets the layer

    With data-cuenca-layer. Whatever rests on something paints its background with --cu-layer-next: raised on the base and overlay inside something raised.

  • Overlay is the ceiling

    What goes inside an overlay stays on it. There, status text gets lighter to stay at 4.5:1.

  • The veil isn’t a layer

    --cu-veil dims what sits behind a sheet or a modal; the sheet is raised, on top of it.

Text

Three tones for reading and one for what’s disabled, all translucent: the same four work on every layer.

ToneRoleOpacityWorst caseFor
Text --cu-text100%12.7:1What you read: titles, body and values.
Text 2 --cu-text-264%6.1:1Labels and secondary text; a field’s example and prefixes.
Text 3 --cu-text-352%4.6:1Help, notes, counters and icons.
Disabled --cu-text-disabled34%ExemptWhat can’t be used. WCAG exempts it, so 52% stays for reading only.
  • Tone sets the hierarchy

    What matters in text, what accompanies it in text 2 and what helps in text 3. Never a fourth gray for reading.

  • Disabled has its own tone

    Without dimming the whole component: the label, the value and the icon take 34%.

  • More contrast, more light

    With prefers-contrast: more, text 2 rises to 69.5% (7:1 on overlay) and text 3 takes 64%.

Accent, link and focus

The blue of the isotype marks what’s active. Links use a lighter blue, one you can read.

RoleValueWorst caseFor
--cu-accent #0977fa3.3:1Marks: the caret, the selection, a switch that’s on. It needs 3:1; as text it falls short.
--cu-accent-fill #0071f34.5:1 with whiteAn accent background with text on it, in --cu-on-accent.
--cu-link #5aa2ff5.3:1Links and informational text.
--cu-focus #0977fa3.3:1The focus ring: 2 px, 2 px apart, on every layer.
Do: The link in its blue: 5.3:1 on the lightest layer.
Don’t: The accent blue as text: 3.3:1, far from 4.5:1.

Fills and lines

Four fills in even steps of light, a line that fades out and a border that appears only where it’s needed.

The four fills, the separator and the 3:1 border, on the base.
RoleDarkLightFor
--cu-fill-1 4%3%A row on hover; the disabled field.
--cu-fill-2 8%6%Fields at rest; the plain button on hover.
--cu-fill-3 12%9%The field on hover and in focus; the pill.
--cu-fill-4 16%12%The pill on hover or when pressed.
--cu-separator 8%9%Between rows and sections; it fades out at the ends.
--cu-border 34.4%46.5%Unchecked checkboxes and radios, and every field with more contrast: 3:1 on every layer.
  • No white borders at rest

    On graphite, depth comes from the layer and the fill. The 3:1 border appears only where a control needs it to be seen.

  • The fill tells the state

    A control moves up one fill on hover and another when pressed: from 2 to 3 in a field, from 3 to 4 in the pill.

Status

Success, warning, error and information. Each with its text, its mark and its background, and always with an icon and a word.

The four statuses on the base and inside an overlay, where the error and information text get lighter.
StatusTextOn overlayMarkText worst case
Success #30d158#30d158#30d1584.6:1
Warning #ff9f0a#ff9f0a#ff9f0a4.5:1
Error #ff6961#ff8a81#ff453a4.7:1
Information #5aa2ff#7ab4ff#0977fa5.1:1

Each status has -text, -text-overlay, -solid (the dot or mark, at 3:1), -fill (16%) and -fill-hover (20%). The text’s worst case measures every layer, its status background and the hover one.

Do: The status with its icon and its word: it reads without seeing the color.
Don’t: A colored dot on its own: with color blindness, success and error look alike.

Action and brand

Flouvia’s primary action is white: it stands out by contrast, not by color. Flouvia Blue belongs to the brand and lives only in its theme.

RoleValueContrastFor
--cu-action White, with #030409 on it20.4:1The filled button: the primary action.
--cu-action-hover #e8e8ed16.7:1The filled button on hover.
--cu-danger #d70015, with white on it5.3:1The destructive filled button. It doesn’t work as a mark on an overlay (2.5:1): use --cu-danger-solid.
--cu-brand Flouvia Blue, #0136d5, with white on it8.4:1The brand surface: the transition between pages and backgrounds with white text.
  • The brand is a surface

    Flouvia Blue goes behind things, with white text and a white focus ring (--cu-focus-on-brand). On graphite it gives 2.1:1: never text, an icon or an accent.

  • Only in the Flouvia theme

    Flouvia Blue belongs to the brand, not the system. A client theme puts its own color in --cu-brand.

Do: Flouvia Blue as the background, with white text: 8.4:1.
Don’t: Flouvia Blue as text on graphite: 2.1:1.

Accessibility

Every promise is measured the way the browser paints it, in 8 bits, on every layer and in every theme. If a color falls short, the color changes.

  • 4.5:1 for reading

    Everything you read, on every layer: text 3’s worst case is 4.6:1; the link’s, 5.3:1.

  • 3:1 for the rest

    The focus ring, status marks, a control’s borders and the series in a chart.

  • Never color alone

    A status carries an icon and a word; a field with an error, its ring as well; a series, its label.

  • More contrast

    Text 2 rises to 7:1, text 3 takes 64% and fields show the 3:1 border.

  • Forced colors

    The focus ring, borders and selection take the system colors.

Light and dark

A light theme defines the same roles; its rules change.

DarkLight
Layers The graphites, by their lightness; overlay is the ceiling.They alternate between gray and white: a gray base, the rest white.
Text Translucent white: 100, 64 and 52%.The theme’s ink: 100, 66 and 60%.
Fills White at 4, 8, 12 and 16%.The ink at 3, 6, 9 and 12%.
Status Text never drops below L 70% and rises to L 76% on an overlay.Text and mark at L 48%, with 10% and 14% backgrounds.
Depth The layer and the veil; shadow only on what floats.Shadow does the work, in the theme’s ink.
Text 3 worst case 4.6:14.5:1

In a client theme

A client changes the values and none of the roles.

  • Changes

    Its layers, its ink, its accent, its link, its focus, its action, its brand and its status colors, with the same contrast promise.

  • Stays

    The role names, the layer model, the 2 px focus ring and the icon with the word on every status.

  • Never

    Flouvia Blue outside the Flouvia theme.

In code

The roles are CSS variables with the --cu- prefix. The same source writes a TypeScript module, SwiftUI, Jetpack Compose and the variables for Figma.

Figma is a trademark of its owner; its logo appears only to show compatibility and does not imply endorsement.

Changes

  • Color · System

    New guide, now available: the graphite scale, the four layers, the text tones, status and brand, with their measured contrast.