Getting Started with Systematically DSL

Systematically is an app for building and maintaining your design system — colors, spacing, type, and the rules that connect them — then exporting it to CSS, W3C Design Tokens, and Figma. You author all of that in Systematically DSL, a domain-specific language (DSL) made for one job: describing your tokens as readable rules instead of values you update by hand. This guide will help you create your first tokens and understand the basics.

What is Systematically DSL?

It's a simple, human-readable language — no programming experience needed. With it you can:

  • Define relationships between tokens
  • Generate parametric design scales (spacing, typography, colors)
  • Export to formats like W3C Design Tokens, CSS and Figma

Your First Tokens

Let's start with the simplest possible tokens — direct values. A token is just a name and a value separated by =.

Try it — edit the values below
Your First Tokens A token is just a name and a value separated by =.

That's it! You've created five tokens: two colors (colorPrimary, colorSecondary), two spacing values (spacingBase, spacingDouble), and a font size (fontSize).

Value Types

Systematically DSL automatically detects the type of each value — numbers, strings, booleans, and colors. No type annotations needed.

Switch to Preview → Table to see the inferred types
Value Types Systematically DSL automatically detects the type of each value.

Colors can be entered in any format — hex, RGB, HSL, OKLCH, or named colors. They're all converted to OKLCH internally. See Tokens & Values for type annotations and composite types.

Nested Tokens

Use indentation to create nested token groups. Each level of nesting adds a dot-separated path.

Tokens become color.primary, spacing.base, etc.
Nested Tokens Use indentation to create nested token groups. Each level adds a dot-separated path.

Scoping

Scopes describe a token's design intent — how it should be used. Add a scope after the token name with :scopeName. This enables rich visualizations, validation, and export to platforms like Figma and W3C Design Tokens.

Try switching to Table view to see scopes in the output
Scoping Scopes describe a token's design intent — how it should be used.

Three ways to scope: inline (primary:color), at group level (spacing:spacing), or shorthand when name and scope match (:fontSize).

Math

Token values can use math expressions. Here double is calculated as 8 * 2 instead of hardcoding 16.

Math Token values can use math expressions.

References

Instead of repeating values, you can reference other tokens with the $ prefix. Referenced tokens update automatically when the source changes.

References Reference other tokens with the $ prefix. Referenced tokens update automatically when the source changes.

Scales

Scales automatically generate multiple tokens from a mathematical pattern. Here's a modular typography scale that multiplies each step by 1.25:

Edit the base or ratio to see values change
Scales Scales automatically generate multiple tokens from a mathematical pattern.

This creates tokens fontSize.sm through fontSize.xxl, each 1.25× the previous.

Next: Naming Rules — learn the identifier naming rules for all token paths and properties.