Naming Rules

Systematically DSL uses a single identifier namespace with consistent rules for all token paths, properties, and parameters.

Allowed Characters

Identifiers must be ASCII only. No spaces, no Unicode, no special symbols.

Allowed

a–z A–Z 0–9
. (dot — path separator)
_ (underscore)
- (hyphen)

Disallowed

spaces
@ # $ % & * + = ? ! : /
accented / Unicode characters

Segment Rules

The first segment must start with a letter or underscore. After that, segments can start with numbers — blue.500 and spacing.2xl are valid.

Valid

gray100 level2 bodySm
_internal button-primary
blue.500 spacing.2xl gray.50

Invalid

100gray (first segment starts with number)
2xl (first segment starts with number)
heading..fontSize (empty segment)
.heading (leading dot)

Casing Styles

Any casing style is valid — just be consistent within a project. camelCase is recommended.

Casing Styles Any casing style is valid — just be consistent within a project. camelCase is recommended.

Path Structure

Dots define structural hierarchy. A token's full path is its name — reading from broader scope to narrower specificity.

Dot Hierarchy

A token’s full path is its identity — broader scope to narrower specificity.

Dot Hierarchy Dots define structural hierarchy. A token's full path is its name.

Scope Equivalence

The .:scope syntax is shorthand for assigning a token to a specific scope within a path. Both forms resolve identically.

Scope Equivalence The .:scope syntax is shorthand for assigning a token to a specific scope within a path.

Reserved Identifiers

The following identifiers are reserved and must not be used as user-defined names.

inherit params modes transform roundTo select

Dynamic Naming

Systematically DSL can generate names dynamically through step generation, generator templates, and rename pipelines.

Dynamic Naming Systematically DSL can generate names dynamically through step generation, generator templates, and rename pipelines.

Best Practices

Suggestions for organizing token paths. Read broader → narrower: role first, then property, then variant.

Broader → Narrower — Role first, then property, then variant:
heading.fontWeight.bold

Singular — heading not headings. A token path is one token's identity.

Properties belong to the role — heading.fontFamily = "Inter" not families.heading

No type-as-group — heading.fontSize.sm not fontSizes.heading.sm

Recommended Naming Each role owns its own properties — heading, body, display.

Avoid Backwards Grouping

Don’t group by property across roles. Each role should own its properties.

Avoid This Pattern Grouping by property across roles makes paths read backwards.

Next: Tokens & Values — learn all value types, the type system, and scope annotations.