All applets
Content

Design Tokens

Manage design system tokens - colors, spacing, typography in structured formats.

Features

  • Design token file browser
  • Token parsing and visual preview
  • Multi-format support (JSON, CSS)

The Design Tokens applet lets you manage design system primitives like colors, spacing, typography, and shadows in a structured, multi-tier format. Tokens follow the W3C Design Tokens Community Group (DTCG) specification and can be exported as CSS variables, JSON, or CSV.

Adding Design Tokens

To add design tokens to your project, open the Add Applet dialog and select Design Tokens under the Content category.

Add Applet dialog showing Design Tokens selected under the Content category, with a description panel on the right

The creation form lets you configure:

  • Name: display name for the applet
  • Environment (optional): tag for Development, Staging, or Production
  • Description: describe the purpose of the token set
  • Template: choose a starting point from the template picker

Design Tokens creation form showing name field, environment selector, description textarea, and four template options

Templates

Four templates are available to bootstrap your token set:

  • No Template: starts with empty base and ui tiers
  • SaaS Product: blue primary palette, clean neutrals, systematic spacing, Inter font stack. Pre-built groups for colors, spacing, typography, border-radius, shadows, and common UI components (button, input, card, nav, alert)
  • Landing Page: teal primary with accent purple, generous spacing. Includes brand identity tokens, gradients, and marketing UI components (hero, CTA, sections, feature cards, testimonials)
  • Editorial / Blog: stone/earth neutrals with serif-first typography optimized for reading. Includes heading, body, caption, and blockquote typography groups along with article layout tokens

Each template creates two or more tiers pre-filled with production-ready token values.

Token Panel

Once created, the design tokens panel shows tier tabs at the top, token groups as collapsible accordions, and a token table inside each group. Each row displays the token name, full path, generated CSS variable, and an editable value cell.

Design Tokens panel showing the Base tier with a Color group containing primary, neutral, accent, and error color tokens with hex values and swatches, and a Spacing group with dimension tokens

Tiers

Tokens are organized into tiers, which are separate files that layer on top of each other. Lower tiers define base primitives (colors, spacing scales) and higher tiers reference them for component-level decisions (button colors, card spacing).

  • Switch tiers by clicking the tier tabs at the top (e.g. Base, Typography, Ui)
  • Add a tier: click the + button next to the last tab. Type the name and press Enter.
  • Rename a tier: click the tier name to edit it inline. The underlying file is renamed on disk.
  • Delete a tier: hover over a tier tab and click the delete icon. At least two tiers must remain.

Typography tier showing Heading, Body, Caption, and Blockquote groups with alias references, plus a new tier name input field next to the existing tabs

Token Groups

Within each tier, tokens are organized into groups based on their top-level category (e.g. color, spacing, typography).

  • Create group: click + Add Group to open the group modal. Enter a name and choose a token type from the dropdown.
  • Edit group: click the pencil icon on a group header to change its name or type.
  • Delete group: click the trash icon on a group header. A confirmation dialog appears since this deletes all tokens in the group.
  • Collapse / expand: click the group header to toggle. Collapsed state is remembered across sessions.
  • Reorder groups: drag groups by their handle to change the display order.

Add Group modal with a name field set to "Color" and a type dropdown open showing all seven token types: color, dimension, number, string, boolean, shadow, typography

Token Types

Each group has a type that determines how its tokens are edited. Seven types are supported:

  • Color: color picker + hex input. Click the swatch to open a full color picker.
  • Dimension: number + unit dropdown. Units: px, rem, em, %, pt, vw, vh.
  • Number: number input for simple numeric values.
  • String: text input for free-form text (e.g. font families).
  • Boolean: toggle switch for true or false.
  • Shadow: composite editor with fields for offsetX, offsetY, blur, spread, and color.
  • Typography: composite editor with fields for fontFamily, fontSize, fontWeight, lineHeight, letterSpacing.

Working with Tokens

Tokens within each group display in a table with four columns:

  • Name: the token’s leaf name, editable inline
  • Path: full dot-separated path (e.g. color.primary.500)
  • CSS Variable: generated variable name (e.g. --color-primary-500)
  • Value: type-aware editor cell

Each row also has quick-action buttons to copy the CSS variable, copy the value, or delete the token.

Creating Tokens

Click the + button on a group header to add a new token. An inline input appears where you type the token name and press Enter.

Empty Color group on the Theme tier with an inline token-name input field ready for a new token

Editing Color Values

Click the color swatch next to any color token to open a color picker popover. You can pick a color visually or type a hex value directly. The hex input at the bottom supports manual entry.

Color picker popover open on a primary-50 token, showing the color gradient area, hue slider, and hex input field

Alias References

Tokens can reference other tokens using the W3C DTCG alias syntax: {path.to.token}. This is how higher tiers reference lower tiers. For example, a heading font-family token in the typography tier can reference {typography.font-family.serif} from the base tier.

  • References work across tiers (higher tiers can reference any lower tier)
  • The UI shows both the raw reference and the resolved value with an arrow (->)
  • Circular references are detected and the raw value is displayed as a fallback

Save and Revert

Edits are made in-memory. When you make changes, a save bar appears at the top showing the number of unsaved changes with Revert and Save buttons.

Save bar showing "1 unsaved change" with Revert and Save buttons, above the token table with a newly added token

  • Save: writes all modified tier files back to disk
  • Revert: discards in-memory changes and reloads from disk

Settings

Click the gear icon in the toolbar to open the Settings modal.

Settings modal showing CSS Variable Prefix input with a preview of the generated variable name, and a list of all tiers: Base, Typography, Ui, Theme

The settings modal includes:

  • CSS Variable Prefix: set a prefix for all generated CSS variable names. A live preview shows how the prefix affects the output (e.g. entering dt- changes --color-primary-500 to --dt-color-primary-500). The prefix applies to all exports.
  • Tiers: a read-only list showing all tiers in the current token set.

Export

Click the download icon in the toolbar to open the Export Tokens modal with three format options:

Export Tokens modal showing three format cards: Design Tokens JSON with W3C DTCG standard format, CSS Variables with CSS custom properties, and CSV Spreadsheet with path type value columns

  • Design Tokens (JSON): W3C DTCG standard format with all tiers merged into a single .json file
  • CSS Variables: :root { } block with all tokens as CSS custom properties in a .css file
  • CSV Spreadsheet: path, type, value, and css_variable columns in a .csv file

Clicking a format opens a native save dialog to choose the file destination.

Session Persistence

The panel remembers your state across tab switches and app restarts:

  • Active tier selection
  • Collapsed/expanded state of each group
  • Scroll position

File Structure

Design token files are stored on disk inside your project folder:

your-project/
  rightplace/
    design-tokens/
      my-tokens/
        .rightplacedesigntokens
        config.json
        base.tokens.json
        typography.tokens.json
        ui.tokens.json
  • .rightplacedesigntokens: marker file with metadata (id, name, description, version, creation date)
  • config.json: stores the CSS variable prefix and the list of tiers
  • {tier}.tokens.json: token data for each tier in W3C DTCG format

Next steps

  • Docs: Create and edit markdown documentation
  • Spreadsheets: Work with tabular data