Skip to content

Theme tokens

Theme tokens are site-wide design variables. Changing a token updates every component that uses it, so you do not need to restyle individual blocks.

  1. Click Settings in the topbar.
  2. Click Theme in the dropdown menu.
  3. The Site Settings modal opens to the theme editor, which has four tabs: Colors, Typography, Animation, and Advanced.
The Site Settings modal opened to Theme settings with the Colors tab selected.
Theme settings open inside the Site Settings modal.

The Colors tab starts with Default Color Mode, then separates color work into Simple and Pro tabs.

  • Default Color Mode sets whether the site loads in System, Light, or Dark mode.
  • Simple is the recommended workflow. Edit the eight core color roles and Swebsy generates a coherent light and dark theme from them.
  • Pro exposes the generated light mode colors, dark mode colors, and Base Colors palette for exact token overrides.
The Theme Colors Simple tab with a preset palette dropdown, core color rows with lock controls, and a status colors reveal.
Use Simple to set core color intent, then let Swebsy generate the rest of the theme.

Simple has two sections — Presets and Customize. The quickest start is a preset palette: pick one from the Presets dropdown and Swebsy fills the core colors, then regenerates a coherent light and dark theme you can tweak below. Default returns to the stock theme every new site ships with, and the dropdown reads Custom once you hand-tune any core color.

Under Customize, Simple shows four core color roles up front, with the rest under a Status colors reveal:

RoleWhat it drives
PrimaryThe main brand color and the generation anchor.
SecondarySupporting brand color.
BackgroundThe base page surface.
TextDefault readable text.
StatusSuccess, Warning, Danger, and Info (under the reveal).

Editing any color updates the generated theme live on the canvas and marks the settings modal as unsaved. Click Save in the modal footer to keep the generated theme, or Discard / close the modal to abandon it. When your text and background colors are readable, Simple confirms it; otherwise it flags the pair that falls short of the WCAG AA contrast standard.

Each row has a lock:

  • Editing a color locks it, so the generator keeps it exactly as you set it.
  • Unlocked colors follow Primary — they regenerate whenever the theme recalculates. Click the lock to toggle; Primary is always locked because it anchors the palette.

Use Peek at canvas when the modal blocks the area you want to inspect. The modal hides temporarily so you can review the live preview before saving or discarding the settings.

Changing the primary theme color, previewing the canvas, and saving the generated theme
The Theme Colors Pro tab showing generated light mode color token dropdowns.
Use Pro when you need to adjust the generated theme token mapping or individual Base Colors.

Use Pro when the generated theme is close but needs exact control. The Pro tab contains:

  • Light mode colors — semantic token mappings for the light theme.
  • Dark mode colors — generated semantic token mappings for the dark theme.
  • Base Colors — the underlying Tailwind-style palette that theme colors reference.

Simple and Pro edit the same theme tokens. If you edit colors in Pro and then switch back to Simple, Swebsy warns that Simple can regenerate and overwrite those Pro edits.

The Typography tab controls:

SettingWhat it controls
Font family (sans / serif / mono)Base font for body text, headings, and code
Font size scale (xs → 9xl)The responsive type scale used by all text components
Font weightsAvailable weight steps (light → bold)
Line heightTight / normal / relaxed variants

To use a custom or Google Font, add it in Settings → Fonts first, then select it here.

The Typography tab in Theme settings, showing font family selectors and font size controls.
Typography tokens centralize font families, scale, weights, and line heights.

Site-wide animation defaults. See the Animation guide for details.

For element-level dark-mode overrides and the visitor-facing dark/light switch, see the Dark mode guide.

For advanced users: paste custom design rules here to extend or override anything not available through the UI panels above.

Common issues

Color change appears on the canvas but is lost later — Simple mode previews changes live, but the settings modal still owns the final save/discard step. Click Save to persist the generated theme.

Pro edits changed after returning to Simple — Simple mode regenerates theme colors from the color table. Lock rows in Simple for colors that must be preserved, or stay in Pro for fully manual token mapping.

Custom font not available in the font family picker — add the font via Settings → Fonts first, then reopen Settings → Theme and select it in the Typography tab.