Back to design system

Foundations

04 / 13

Themes

Every view is designed for both themes at once. Both use the same tokens, so no component is built for just one theme.

Comparison

The same view in both themes, with no need to switch.

  • Services

    Software that actually ships.

    The same tokens produce different colors in each theme.

    Light

  • Services

    Software that actually ships.

    The same tokens produce different colors in each theme.

    Dark

Behavior

How the site decides which theme to use.

  • Starting theme

    Follows the device

    If the device is set to dark, the site opens in dark mode.

  • Switching

    A button in the navbar

    One button to switch, available on every page.

  • Remembered

    Saved in the browser

    The last choice is used again on the next visit.

  • No flash

    The theme is set before the page shows

    Dark-mode visitors never see a white flash when the page opens.