Cave design system
العربية

Foundations

Colour

Teal and navy are the brand. Product screens use the semantic tokens, which have a value in each theme.

Palette

The raw colours of the brand. Use the semantic tokens in product; use these for marks, illustration and print.

  • teal#179d9fBase palette colour. Prefer semantic roles in interface components.
  • teal-light#51bab6Base palette colour. Prefer semantic roles in interface components.
  • seafoam#3fc7bdBase palette colour. Prefer semantic roles in interface components.
  • mint#65d7c9Base palette colour. Prefer semantic roles in interface components.
  • mist#a6ebd8Base palette colour. Prefer semantic roles in interface components.
  • lagoon#047283Base palette colour. Prefer semantic roles in interface components.
  • deep-teal#01536bBase palette colour. Prefer semantic roles in interface components.
  • abyss#003755Base palette colour. Prefer semantic roles in interface components.
  • midnight#002347Base palette colour. Prefer semantic roles in interface components.
  • navy#182643Base palette colour. Prefer semantic roles in interface components.
  • charcoal#1d1d1bBase palette colour. Prefer semantic roles in interface components.
  • white#ffffffBase palette colour. Prefer semantic roles in interface components.
  • paper#f8f8f8Base palette colour. Prefer semantic roles in interface components.
  • slate#a9b3c0Base palette colour. Prefer semantic roles in interface components.
  • coral#f08868Base palette colour. Prefer semantic roles in interface components.
  • lime#a3c962Base palette colour. Prefer semantic roles in interface components.
  • magenta#8f2462Base palette colour. Prefer semantic roles in interface components.
  • plum#5e256fBase palette colour. Prefer semantic roles in interface components.
  • snow#f7f9faBase palette colour. Prefer semantic roles in interface components.

Semantic tokens

Each token has one value per theme. Translucent colours are shown laid over the theme's ground.

TokenLightDarkBlackUse
surface #f8f8f8 #10252d #1d1d1bPage background. Black uses near-black charcoal.
surface-raised #ffffff #19333c #2b2b29Cards and panels over the page background.
surface-inverse #182643 #f8f8f8 #f8f8f8Contrasting surfaces paired with ink-inverse.
ink #182643 #e3f4f5 #ffffffPrimary text on normal and raised surfaces.
ink-muted #525d72 #b1cbd1 #c4c4c4Secondary text and supporting descriptions.
ink-inverse #ffffff #182643 #1d1d1bText on inverse surfaces.
border #d4d6db #38545d #41413fDecorative dividers and subtle card outlines.
border-strong #727a8b #84979b #999998Visible boundaries for interactive controls.
accent #179d9f #51ded4 #179d9fAccent fills and non-text markers.
on-accent #182643 #10252d #1d1d1bReadable text and icons on accent fills.
accent-text #047283 #51ded4 #3fc7bdLinks and accent-coloured text.
focus-ring #047283 #51ded4 #3fc7bdKeyboard focus outline.
accent-strong #047283 #51ded4 #179d9fPrimary action fill, paired with on-accent-strong.
on-accent-strong #ffffff #10252d #1d1d1bText and icons on primary actions.
accent-strong-hover #01536b #74e5dd #3fc7bdPrimary action hover and pressed fill.
accent-soft #d3f2ea #193f44 #223532Subtle selected and highlighted surfaces.
accent-soft-border #afd0d5 #245d5f #27504cDecorative boundary for subtle accent surfaces.
danger #c53030 #f56565 #f56565Destructive action fill.
on-danger #ffffff #10252d #1d1d1bText and icons on destructive actions.
danger-hover #9b2c2c #fc8181 #fc8181Destructive action hover and pressed fill.
surface-sunken #eff0f1 #182d35 #262624Inset areas, table headings and neutral badges.
surface-hover #ebebed #21363d #2f2f2dHover fill for rows and quiet controls.
scrim #888f9e #060f12 #090908Backdrop behind modal surfaces.
disabled-bg #e6e7ea #253a41 #343432Disabled control background.
disabled-fg #939aa7 #6f8287 #838382Disabled control text and icons.
success-bg #f0fff4 #183a38 #233328Background for success messages. Include a readable label.
success-fg #276749 #9ae6b4 #9ae6b4Text and icons for success messages. Include a readable label.
success-border #c6f6d5 #204f42 #294935Decorative border for success messages. Include a readable label.
success-solid #38a169 #48bb78 #48bb78Non-text marks for success messages. Include a readable label.
warning-bg #fffaf0 #2f332e #3a2c1fBackground for warning messages. Include a readable label.
warning-fg #9c4221 #fbd38d #fbd38dText and icons for warning messages. Include a readable label.
warning-border #feebc8 #4e4130 #573b23Decorative border for warning messages. Include a readable label.
warning-solid #dd6b20 #ed8936 #ed8936Non-text marks for warning messages. Include a readable label.
error-bg #fff5f5 #302e35 #3b2725Background for error messages. Include a readable label.
error-fg #c53030 #feb2b2 #feb2b2Text and icons for error messages. Include a readable label.
error-border #fed7d7 #50373d #593130Decorative border for error messages. Include a readable label.
error-solid #e53e3e #f56565 #f56565Non-text marks for error messages. Include a readable label.
info-bg #ebf8ff #173546 #222e37Background for info messages. Include a readable label.
info-fg #2c5282 #90cdf4 #90cdf4Text and icons for info messages. Include a readable label.
info-border #bee3f8 #1e455f #274052Decorative border for info messages. Include a readable label.
info-solid #3182ce #4299e1 #4299e1Non-text marks for info messages. Include a readable label.
chart-1 #047283 #51ded4 #3fc7bdChart series 1. Pair colour with direct labels.
chart-2 #8f2462 #f08868 #f08868Chart series 2. Pair colour with direct labels.
chart-3 #a85f49 #a3c962 #a3c962Chart series 3. Pair colour with direct labels.
chart-4 #182643 #a6ebd8 #a6ebd8Chart series 4. Pair colour with direct labels.

Contrast

Measured from the tokens when this site is built. Text needs 4.5:1, focus and graphics 3:1.

Text on groundLightDarkBlack
ink / surface14.15:1 Pass13.99:1 Pass16.88:1 Pass
ink-muted / surface6.27:1 Pass9.31:1 Pass9.70:1 Pass
ink-muted / surface-raised6.47:1 Pass7.80:1 Pass8.51:1 Pass
accent-text / surface5.29:1 Pass9.63:1 Pass8.13:1 Pass
on-accent-strong / accent-strong5.62:1 Pass9.63:1 Pass5.11:1 Pass
on-accent / accent4.55:1 Pass9.63:1 Pass5.11:1 Pass
on-danger / danger5.47:1 Pass5.23:1 Pass5.57:1 Pass
success-fg / success-bg6.51:1 Pass8.44:1 Pass9.10:1 Pass
warning-fg / warning-bg6.28:1 Pass9.06:1 Pass9.48:1 Pass
error-fg / error-bg5.11:1 Pass7.80:1 Pass8.12:1 Pass
info-fg / info-bg7.36:1 Pass7.46:1 Pass8.04:1 Pass
focus-ring / surface5.29:1 Pass9.63:1 Pass8.13:1 Pass

Guidance

Use semantic roles such as surface, ink, accent-strong and on-accent-strong in components. Raw colours are available for custom themes, but a colour change must preserve readable foreground/background pairs.

Light uses a paper surface, Dark uses a deep teal-ink surface with a pale aqua accent (the same Dark as Cave Forms), and Black uses charcoal. Black is a near-black theme. System follows the device and resolves to Light or Dark.

Primary button text has 5.6:1 contrast in Light, 9.6:1 in Dark and 5.1:1 in Black. Status messages include words; colour alone cannot explain a result.

On the raw palette, plain teal is 3.1:1 on paper and 3.3:1 on white, so use it for fills, icons and large graphics and use accent-text for text. Slate is about 2:1 and mint 1.7:1 on light surfaces, so keep them decorative. border is a divider; the edge of an input uses border-strong, which passes 3:1 in every theme.

Change tokens in source/tokens.json and regenerate all platforms. A custom brand theme can override CSS variables on its root or supply a CaveColors extension in Flutter. Check contrast again after customization.