Colour
Ink, cream and ember. Two themes built from one palette, and every text colour checked against every surface it sits on.
You're previewing another brand. This page documents Media Dreams' own brand, so its values, swatches and guidance are Media Dreams'. The live examples follow the brand you've chosen.
The palette
Ink is a deep navy rather than black, so type stays crisp without looking harsh. Cream is the page: warm, quiet and easy on the eye for long reading. Ember is the one accent. It is the colour of the dot on the "i", and it is used sparingly so that it always means "look here" or "you can act on this".
ink
cream
ember
amber
green
These are primitives: raw values with no meaning. Components never use them directly. Select a name to copy its CSS variable.
Semantic colours
Semantic tokens say what a colour is for. Light and dark themes use the same names with different values, so a component written once works in both. Brand themes such as Spotlight.me override these same names.
Surfaces and text
The logo surface, border and text tokens are for client logo tiles: white in light mode, so logos drawn for white backgrounds look right, and a raised navy panel in dark mode.
| Token | Light | Dark | Use |
|---|---|---|---|
#FAF7F2color.cream.50 | #0B1220color.ink.950 | ||
#FFFFFFcolor.white | #131C2Ecolor.ink.850 | ||
#FFF4E5color.amber.50 | #FFF4E5color.amber.50 | Fixed: stays light in both themes | |
#FFFFFFcolor.white | #FFFFFFcolor.white | A raised surface inside a callout (secondary buttons, mockups) | |
#FFFFFFcolor.white | #131C2Ecolor.ink.850 | Tile behind a client or partner logo: white in light mode; in dark mode the raised navy used by stat tiles |
| Token | Light | Dark | Use |
|---|---|---|---|
#152238color.ink.900 | #F3F0E9color.cream.100 | ||
#4B5567color.ink.600 | #B9C2D0color.ink.300 | ||
#3A2400color.amber.950 | #3A2400color.amber.950 | ||
#FFFFFFcolor.white | #FFFFFFcolor.white | ||
#152238color.ink.900 | #F3F0E9color.cream.100 | Logo text on a logo tile (dark in both themes) |
Action, border and focus
| Token | Light | Dark | Use |
|---|---|---|---|
#C13D0Acolor.ember.600 | #FF7A3Dcolor.ember.400 | ||
#FFFFFFcolor.white | #0B1220color.ink.950 | ||
#FFFFFFcolor.white | #FFFFFFcolor.white | Label on a button inside a callout | |
#C13D0Acolor.action.primary | #FF7A3Dcolor.action.primary | Primary button background on hover. Same as the action colour unless a brand sets its own (Gulo: Claw Gold on dark) |
| Token | Light | Dark | Use |
|---|---|---|---|
rgba(21,34,56,0.12)color.alpha.ink-12 | rgba(255,255,255,0.10)color.alpha.white-10 | ||
#C13D0Acolor.ember.600 | #C13D0Acolor.ember.600 | ||
rgba(21,34,56,0.12)color.border.subtle | rgba(255,255,255,0.10)color.border.subtle | Edge of text fields, drop-down lists, date fields and the search box. Brands can make it firmer than the card border so a field reads at its full height beside a solid button. | |
rgba(21,34,56,0.12)color.alpha.ink-12 | rgba(255,255,255,0.10)color.alpha.white-10 | Edge of a logo tile | |
rgba(21,34,56,0.12)color.alpha.ink-12 | rgba(21,34,56,0.12)color.alpha.ink-12 | Hairline drawn inside a colour swatch (brand guide, docs), so a swatch the same colour as the page keeps its shape. Dark and see-through in both modes, so it never shows as a light outline round a dark colour. |
| Token | Light | Dark | Use |
|---|---|---|---|
#C13D0Acolor.ember.600 | #FF7A3Dcolor.ember.400 |
Feedback and status
| Token | Light | Dark | Use |
|---|---|---|---|
#C13D0Acolor.ember.600 | #FF7A3Dcolor.ember.400 | Theme-aware; at least 4.5:1 on page and raised surfaces | |
#FFF4E5color.amber.50 | #3A2400color.amber.950 | ||
#C13D0Acolor.ember.600 | #FF7A3Dcolor.ember.400 | ||
#3A2400color.amber.950 | #FFF4E5color.amber.50 | ||
#EAF6ECcolor.green.50 | #1A3A24color.green.900 | ||
#2E7D46color.green.600 | #2E7D46color.green.600 | ||
#1A3A24color.green.900 | #EAF6ECcolor.green.50 | ||
#FFF4E5color.amber.50 | #3A2400color.amber.950 | ||
#B4812Acolor.amber.600 | #B4812Acolor.amber.600 | ||
#3A2400color.amber.950 | #FCE7C2color.amber.100 | Text and icon in a warning notice | |
#EAF2FCcolor.blue.50 | #0C2240color.blue.950 | ||
#2F6BB3color.blue.600 | #2F6BB3color.blue.600 | ||
#12305Acolor.blue.900 | #EAF2FCcolor.blue.50 | Text and icon in an information notice |
| Token | Light | Dark | Use |
|---|---|---|---|
#1B7A3Dcolor.green.700 | #1B7A3Dcolor.green.700 | ||
#B4812Acolor.amber.600 | #B4812Acolor.amber.600 | ||
#C13D0Acolor.ember.600 | #C13D0Acolor.ember.600 |
Overlays and inverse
Overlays darken photography and video so text on top stays readable. Inverse colours are the opposite theme, used for small "screenshot" mock-ups that need to stand out from their card, and for bands such as a closing call to action: give the band class="sn-inverse" and it takes the inverse background, text, borders and accent (so a primary button inside still stands out), and prints as an ordinary block on white paper.
| Token | Light | Dark | Use |
|---|---|---|---|
rgba(11,18,32,0.38)color.alpha.scrim-38 | rgba(11,18,32,0.38)color.alpha.scrim-38 | ||
rgba(11,18,32,0.72)color.alpha.scrim-72 | rgba(11,18,32,0.72)color.alpha.scrim-72 | ||
rgba(11,18,32,0.88)color.alpha.scrim-88 | rgba(11,18,32,0.88)color.alpha.scrim-88 |
| Token | Light | Dark | Use |
|---|---|---|---|
#0B1220color.ink.950 | #FAF7F2color.cream.50 | ||
#131C2Ecolor.ink.850 | #FFFFFFcolor.white | ||
#F3F0E9color.cream.100 | #152238color.ink.900 | ||
#B9C2D0color.ink.300 | #4B5567color.ink.600 | ||
rgba(255,255,255,0.10)color.alpha.white-10 | rgba(21,34,56,0.12)color.alpha.ink-12 | ||
#FF7A3Dcolor.ember.400 | #C13D0Acolor.ember.600 | ||
#152238color.ink.900 | #FFFFFFcolor.white | Text on the inverse accent (buttons and selected states on an inverse panel) |
Illustration
Article illustrations are drawn with these six tokens rather than fixed colours, so a drawing follows light and dark mode and takes on a brand's colours. See imagery.
| Token | Light | Dark | Use |
|---|---|---|---|
#F3F0E9color.cream.100 | #131C2Ecolor.ink.850 | Background of an illustration | |
rgba(21,34,56,0.06)color.alpha.ink-06 | rgba(255,255,255,0.10)color.alpha.white-10 | Construction grid lines | |
#152238color.ink.900 | #F3F0E9color.cream.100 | Main shapes | |
#B23508color.ember.700 | #FF7A3Dcolor.ember.400 | Accent shapes | |
#3F4A5Ccolor.ink.500 | #B9C2D0color.ink.300 | Secondary shapes | |
#B9C2D0color.ink.300 | #3F4A5Ccolor.ink.500 | Quiet shapes |
Contrast, checked in every theme
Each row is a pairing that appears on the site. Ratios are calculated from the tokens when the site is built, so this table cannot drift from the real values. The lowest ratio anywhere is 4.7:1. Text needs 4.5:1; focus rings and other graphics need 3:1.
| Pairing | Needs | Media Dreams Light | Media Dreams Dark | Spotlight Light | Spotlight Dark | Gulo Light | Gulo Dark | Neutral Light | Neutral Dark |
|---|---|---|---|---|---|---|---|---|---|
| Body text on the pagetext.primary on surface.page | 4.5:1 | 14.9:1 | 16.5:1 | 17.7:1 | 16.5:1 | 15.5:1 | 15.5:1 | 16.3:1 | 16:1 |
| Body text on cardstext.primary on surface.raised | 4.5:1 | 15.9:1 | 15:1 | 19.3:1 | 15.1:1 | 17.8:1 | 14.1:1 | 17.9:1 | 14.2:1 |
| Secondary text on the pagetext.secondary on surface.page | 4.5:1 | 7:1 | 10.4:1 | 8.2:1 | 8:1 | 5.6:1 | 9.1:1 | 6.4:1 | 7.4:1 |
| Secondary text on cardstext.secondary on surface.raised | 4.5:1 | 7.5:1 | 9.5:1 | 9:1 | 7.3:1 | 6.5:1 | 8.3:1 | 7:1 | 6.6:1 |
| Links and accent text on the pageaction.primary on surface.page | 4.5:1 | 5:1 | 7.2:1 | 4.9:1 | 12.1:1 | 5.8:1 | 5.2:1 | 13.8:1 | 16:1 |
| Links on cardsaction.primary on surface.raised | 4.5:1 | 5.3:1 | 6.6:1 | 5.4:1 | 11.1:1 | 6.7:1 | 4.7:1 | 15.1:1 | 14.2:1 |
| Button label on buttonaction.on-primary on action.primary | 4.5:1 | 5.3:1 | 7.2:1 | 5.4:1 | 12.1:1 | 6.7:1 | 5.2:1 | 15.1:1 | 16:1 |
| Field error on a formfeedback.error on surface.raised | 4.5:1 | 5.3:1 | 6.6:1 | 5.3:1 | 6.8:1 | 5.3:1 | 6.3:1 | 5.3:1 | 6.4:1 |
| Error message boxfeedback.error-text on feedback.error-surface | 4.5:1 | 13.5:1 | 13.5:1 | 13.5:1 | 13.5:1 | 13.5:1 | 13.5:1 | 13.5:1 | 13.5:1 |
| Success message boxfeedback.success-text on feedback.success-surface | 4.5:1 | 11.3:1 | 11.3:1 | 11.3:1 | 11.3:1 | 11.3:1 | 11.3:1 | 11.3:1 | 11.3:1 |
| Text in a callouttext.on-callout on surface.callout | 4.5:1 | 13.5:1 | 13.5:1 | 17.7:1 | 17.7:1 | 15.2:1 | 15.2:1 | 15.3:1 | 15.3:1 |
| Focus ring against the pagefocus.ring on surface.page | 3:1 | 5:1 | 7.2:1 | 4.9:1 | 12.1:1 | 5.8:1 | 7.1:1 | 13.8:1 | 16:1 |
Why both themes? In an earlier round a single error colour passed in light mode at 5:1 and failed in dark mode at 3.2:1, because automated checks only ran with no errors on screen. Error colour is now its own theme-aware token, and every pair is checked in both themes on every build.
Using colour
Do
- Use semantic tokens (
--somnia-color-text-secondary) in components - Keep ember for actions, links and the one thing on the page that matters most
- Check new pairings in light and dark before shipping
- Pair colour with a word or icon when it carries meaning, like status
Don't
- Use a primitive like
ember-600directly in a component - Add a second accent colour for decoration
- Put ember text on the callout background in dark mode: it only passes in light
- Use colour alone to say something went wrong
The callout surface is deliberately fixed: it stays light in both themes so a highlighted note always reads as a note. Its border and accent text use fixed ember for the same reason. See Callout.