Preview brand Custom

Iconography

Simple outline icons on a 24 px grid, drawn with the same rounded stroke as the logo's swoosh.

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.

Share
Copy link
Email
Menu
Close
Check
Arrow
External
Search
Sun
Moon
Download
Share
Copy link
Email
Menu
Close
Check
Arrow
External
Search
Sun
Moon
Download

Drawing rules

  • 24 × 24 grid with 2 px of padding; shapes sit inside the central 20 px.
  • 1.7 px stroke, round caps and joins, no fills. Displayed at 18 px in the interface (the stroke scales with it).
  • currentColor only, so icons take the colour of the text around them in every theme and brand.
  • Corners of rectangles take a 1–2 px radius, never sharp and never pill-shaped.
html
<svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="5" width="18" height="14" rx="2"/><path d="M3 7l9 6 9-6"/></svg>

Icons for controls

Controls built by script (a text editor's toolbar, a menu button) take their icons from one list, @somnia/core/lib/icons.js, so the same picture always means the same thing. Add an icon there before drawing one on a page.

link
picture
list
list-numbered
quote
code
plus
chevron-down
chevron-left
search
undo
redo
strikethrough
link
picture
list
list-numbered
quote
code
plus
chevron-down
chevron-left
search
undo
redo
strikethrough
js
import { icon } from '@somnia/core/lib/icons.js';
button.innerHTML = icon('list', { size: 20 });
button.setAttribute('aria-label', 'Bulleted list');
button.title = 'Bulleted list';

Letters stay letters where they are what a control is known by: B, I, H2. A control that opens a menu keeps its word beside the icon.

Labels and accessibility

Do

  • Put a visible text label next to an icon wherever there is room
  • Give icon-only buttons an aria-label that says what the button does
  • Mark decorative icons aria-hidden="true"
  • Keep the tap target at least 44 × 44 px, even when the icon is 18 px

Don't

  • Use an icon as the only way to convey a status or an error
  • Mix filled and outline styles
  • Add icons to every list item or heading for decoration

Known gap: the settings and menu buttons in the header use a 2 px stroke. They move to 1.7 px in 1.1 (see the roadmap).