designTokensExplorer namespace and can be set in workspace or user settings.json.
Array of token source objects. See Token Sources for the full
schema and examples.
Controls what happens when you click a token in the sidebar.
You can also override the default action on a per-click basis by Shift+clicking a token to copy it even when the action is set to
| Value | Behavior |
|---|---|
"insert" | Insert the token at the cursor position in the active editor |
"copy" | Copy the formatted token to the clipboard |
When no editor is active or no file is open, the token is always copied to the clipboard
regardless of this setting.
insert.Format string used when inserting a token into a CSS, SCSS, Less, or CSS-in-JS file. Use Custom format examples:The format must be under 200 characters. Formats that cannot be sanitized fall back to
{name} as the placeholder for the token name.var(--{name}).When
true, the raw token value is displayed below the token name in the sidebar. Set to false
to show only token names for a more compact view.Root font size in pixels used to convert If your project uses a non-standard root font size (e.g.
rem values to px in token previews (spacing bars, font size previews, etc.).10px with a 62.5% base), update this value to get accurate visual previews.Restricts the hardcoded values scan to a specific path, folder, or glob pattern relative to the workspace root. The scan path is passed directly to
node_modules is always excluded regardless of this setting.Examples:vscode.workspace.findFiles as the include pattern. Within the matched files, only extensions supported by the scanner are processed: .css, .scss, .less, .js, .ts, .jsx, .tsx, .vue, .astro, .svelte, .json.Additional glob pattern(s) excluded from token usage scanning. Passed as the Use this to exclude additional output directories, generated files, or vendor folders that are not under
exclude argument to vscode.workspace.findFiles. node_modules is always excluded regardless of this setting.node_modules:To exclude multiple patterns, wrap them in curly braces separated by commas — this is standard
VS Code glob syntax. For example:
"{**/dist/**,**/out/**}".When
true, hovering over a hardcoded value entry in the audit panel scrolls the editor to that
line. This lets you quickly inspect the surrounding code context without clicking.When
true, hovering over a hardcoded value in the audit panel opens and focuses the file in the editor automatically. The Open button is hidden when this is enabled.This setting takes precedence over
scrollToHardcodedOnHover. When enabled, the file opens and
the editor scrolls to the relevant line.