The sources setting
designTokensExplorer.sources is an array of source objects. Each source loads tokens from a local file path or remote URL and appears as a separate panel in the sidebar.
settings.json
Source properties
Groups
Groups control how tokens are organized in the sidebar and which visual preview renderer is applied. Each group matches tokens by name prefix.name matches the beginning of the token name. The type then controls the preview renderer shown next to the value.
Group type reference
Tokens that don’t match any group are placed in an Other group without a preview.
Supported file formats
CSS custom properties
The file must declare tokens inside a:root {}, :where(html) {}, or @theme {} block:
tokens/brand.css
-- prefix (color-primary, space-1, etc.).
SCSS
.scss files are loaded with the same parser as CSS. The file must declare tokens as CSS custom properties inside a :root {}, :where(html) {}, or @theme {} block. SCSS line comments (//) are supported inside those blocks. SCSS-specific syntax outside of custom property declarations is ignored.
tokens/brand.scss
JSON
Flat or nested JSON objects are both supported. Nested keys are joined with-:
tokens/tokens.json
color-primary, color-neutral-100, color-neutral-900, space-1, space-2.
Nesting depth is limited to 20 levels.
JavaScript / TypeScript (local only)
String and number exports are parsed via regex — no code is executed:tokens/tokens.ts
Remote sources
Anypath starting with https:// is fetched as a remote source. The format is inferred from the file extension in the URL.
- Timeout: 10 seconds
- Maximum response size: 2 MB
- Private IPs, localhost, and loopback addresses are blocked (SSRF protection)
.js/.tsremote sources are not supported