Preview brand Custom

Somnia DS

A design system for fast, accessible websites. One set of tokens, components and patterns takes on each brand's colours and type. Made by Media Dreams, and what our own sites are built from.

Version 1.89.0 Released Changelog

Where to start

What it is

Four layers, each built on the one before:

  1. Tokens are named values: every colour, size and timing, written down once.
  2. A theme gives those names a brand's own values, in light and in dark. 4 are kept here: Media Dreams, Spotlight, Gulo and Neutral.
  3. Components are the parts of a page, such as a button or a form field. They read the names, never the values, so they follow whichever brand is in use.
  4. Patterns are components combined to do a job, such as taking an enquiry or showing a price.

Today that is 45 components and 9 patterns, over 278 tokens, in 77 pages.

It is code-first. The tokens and components in code are the source of truth, and the examples on these pages are the real thing, not pictures of it. There is no design-file library kept in step. When a project needs one, the tokens are in a standard format that Figma can take in, and we set that up for the project.

What runs on it

  • This website. mediadreams.co.uk is made from it, so everything documented here is in use.
  • Client websites. Each has its own theme and its own brand guidelines on the same components. Headland Yachting's new site is the first.
  • Somnia CMS, the editor our clients use to change their sites.
  • The starter that every new site is copied from.

Media Dreams' own brand, with its logo, tone of voice and imagery, is one of those brands. It has brand guidelines of its own.

Why it exists

Somnia DS started as an audit of this website's own code. Every colour, size and timing was pulled out, named and checked, and the site was then switched over to read those names. Before-and-after screenshots of every page matched pixel for pixel. That is the method we use with clients: extract what already works, name it, then improve it in one place. If you'd like one built for your product, here's how that works.

The name is Latin for dreams. The mark is the dot from the Media Dreams logo, cut in two with the halves slipped past each other, so an S appears. Somnia CMS carries the same mark.