Themes.

The look belongs to the project. The same button with Flouvia’s theme, the reference, and with an example client’s light one: color, type and shape change; size, focus, motion and sound stay.

Flouvia Dark. The reference.

Light example An example client.

The light theme uses DM Sans. This site loads no external fonts, so here it renders in the system font.

What changes and what travels.

What a theme changes

  • Color

    The layers, the text, the action, status and focus.

  • Type

    The system’s or the client’s.

  • Shape

    Each size’s radius: a capsule in Flouvia, a rectangle that grows in the example.

  • Proportion and density

    How much air each piece gets.

What always travels

  • Structure

    The same native HTML in Astro, React and Liquid.

  • Behavior

    Loading, finishing, toggling and telling screen readers.

  • Accessibility

    WCAG 2.2 AA in every theme: one that falls short on contrast doesn’t pass its tests.

  • Cauce

    The same springs in every theme.

  • Onda

    The same sounds. A client can turn them off, not change them.

The roles.

A theme gives each role a value. These are the main ones, with the values of both themes. Components read roles, never a color.

Role FlouviaLight example
Layers
--cu-layer-sunken #0e0e0f #ffffff
--cu-layer-base #161617 #f4f6f5
--cu-layer-raised #1d1d1f #ffffff
--cu-layer-overlay #2c2c2e #ffffff
Text
--cu-text #f5f5f7 #0f1a16
--cu-text-2 #f5f5f7 · 64 % #0f1a16 · 66 %
--cu-text-3 #f5f5f7 · 52 % #0f1a16 · 60 %
--cu-text-disabled #f5f5f7 · 34 % #0f1a16 · 34 %
--cu-link #5aa2ff #0b6e4f
Action and accent
--cu-action #ffffff #0a6448
--cu-action-hover #e8e8ed #08553d
--cu-on-action #030409 #ffffff
--cu-accent #0977fa #0b6e4f
--cu-accent-fill #0071f3 #0b6e4f
--cu-on-accent #ffffff #ffffff
Fills and lines
--cu-fill-1 #ffffff · 4 % #0f1a16 · 3 %
--cu-fill-2 #ffffff · 8 % #0f1a16 · 6 %
--cu-fill-3 #ffffff · 12 % #0f1a16 · 9 %
--cu-fill-4 #ffffff · 16 % #0f1a16 · 12 %
--cu-separator #ffffff · 8 % #0f1a16 · 9 %
--cu-border #ffffff · 34 % #0f1a16 · 47 %
Controls
--cu-control-off #ffffff · 34 % #0f1a16 · 47 %
--cu-track-off #ffffff · 16 % #0f1a16 · 12 %
--cu-thumb #ffffff #ffffff
Status
--cu-success-text #30d158 #007226
--cu-warning-text #ff9f0a #845000
--cu-danger-text #ff6961 #b20007
--cu-info-text #5aa2ff #0058be
--cu-danger #d70015 #d92d20
--cu-on-danger #ffffff #ffffff
Focus and brand
--cu-focus #0977fa #0b6e4f
--cu-brand Flouvia Blue #0b6e4f
--cu-focus-on-brand #ffffff #ffffff
Type
--cu-font Helvetica Neue DM Sans
Shape
--cu-radius-control-mini 999px 8px
--cu-radius-control-small 999px 9px
--cu-radius-control 999px 12px
--cu-radius-control-large 999px 14px
--cu-radius-field 14px 14px
--cu-radius-menu 20px 20px
--cu-radius-sheet 28px 28px

Flouvia Blue belongs to the brand, like the typeface of Flouvia’s headlines: they’re not part of Cuenca or Open Water Design, and only Flouvia’s theme uses them.

The theme generator.

Soon

In goes the project’s main color, its type and whether it’s light, dark or both; out comes the full theme, with every color pair checked against WCAG 2.2 AA. If a color falls short on contrast, it adjusts it and says what changed. Until it arrives, a theme is made by hand, in three steps.

How to build a theme