Light, Dark & Brand Themes
A dark theme added late often turns into weeks of hunting for hard-coded colors. Imagine a bookings app with 40 screens where every gray was picked by hand. A client now wants dark mode and its own brand by next month.
Learn on the move: press play and turn your commute, walk or drive into time that grows your design career.

So the work goes faster when theming is part of the system. A theme gives the same token names a different set of values, and every component reads the names. Switch the theme and the whole product follows, from the page background to the logo.
The Axes a Theme Can Change
Most systems theme along three axes. Appearance switches between light and dark. Contrast adds a stronger set for people who turn on Increase Contrast or a Windows contrast theme. Brand swaps the palette, type and logo for a second product or a client.
That's why the number of themes grows fast. The Design Tokens Community Group's Resolver Module, published in October 2025, calls it combinatorial explosion, since the count is the product of every axis. Two appearances, two contrast levels and two brands already make eight full themes to check.
Anatomy of a Theme
A theme is hard to plan when nobody on the team can name its parts. Imagine a designer and an engineer who both say "the dark theme". One means a Figma page of recolored screens, and the other means a CSS file.
So it helps to name the parts the way public systems do. A theme has five of them: primitives, semantic tokens, modes, theme assets and the switch that picks the mode. Here are the parts of a theme in the bookings app:

Primitives Stay Outside the Theme
Primitives are the raw values, every step of every color scale, named for what they are. IBM Carbon calls its grays Gray 10 through Gray 100, and Atlassian names its greens Lime100 through Lime1000. A primitive never changes between themes, because gray-100 is the same hex code everywhere.
That's why components never use primitives directly. A button filled with gray-100 stays dark in a dark theme and sinks into the page. How a scale is built belongs to the Color Systems module in Color Theory. Here is the Book button filled from a primitive and from a token, in both modes:

Semantic Tokens Carry the Meaning
A semantic token names a job, such as the page background, primary text or a field fill. Carbon's tokens show the idea: $background, $text-primary, $text-secondary and $field-01. Carbon states that every theme shares the same variables and roles, with only the values changing.
So in Carbon's White theme, $text-primary points to Gray 100. In the Gray 100 theme, the same token points to Gray 10. A component asks for $text-primary and gets whatever the current theme says. Token names and tiers are taught in Tokens & Variables. Here is how Carbon resolves $text-primary in the White and Gray 100 themes:

Modes Hold a Value per Theme
A mode is one column of values for a set of semantic tokens. Carbon ships four themes: White, Gray 10, Gray 90 and Gray 100, two light and two dark. Atlassian's token tables give a light value and a dark value for every color, so color.background.accent.lime.subtlest resolves to Lime100 in light and Lime1000 in dark.
In practice the mode is where a theme decision lives. The choice of Lime1000 for the dark background is made once, in one cell, and every tag that uses the token gets it. Here is a mode table with a light and a dark value for each token:

Assets and the Switch
Some parts of a theme are images, and color tokens can't reach inside them. A logo with dark lettering needs a light version on a dark page. Apple's guidelines ask for separate light and dark assets whenever an image looks good in only one mode, stored under one name in an asset catalog. Here is the bookings logo on a dark page with each version:

Finally, the switch decides which mode a screen shows. On iOS and macOS, people pick Light, Dark or Auto, and Apple notes that people expect every app to follow that choice. On the web, the prefers-color-scheme media query tells a page what the system is set to.
Pro tip: Write the five parts on one page before you build anything. List the primitive scales, the semantic tokens, the modes, the assets that change and where the switch lives. Engineers read the same map, so "the dark theme" means the same thing to both of you.



