Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>VS Code Design LabNew to Visual Studio Code? Get it now.
VS Code Design Lab

VS Code Design Lab

Ravin Sade

|
2 installs
| (0) | Free
Two-panel theme editor with live preview, import/export (JSON/JSONC/VSIX), and element locator.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VS Code Design Lab

Version: 1.9.0

Two-panel theme editor for VS Code. Edit Colors, Tokens, and Semantic tokens with a live preview. Import existing themes (JSON/JSONC/VSIX), use your current settings, or start blank. Export as JSON theme, CSS variables, or VSIX.

Features

  • Two-panel UI: left controls (tabs: Colors, Tokens, Semantic); right live preview (Editor, Panels, Problems, Terminal, Notifications, Status Bar, Lists/Tabs).
  • Single reusable panel: actions like Use Current or Import always reuse the same tab (no duplicates).
  • Colors: categorized from assets/colors-template.json; collapsible sections with scrollable lists; swatches, hex input (#RRGGBB or #RRGGBBAA) with alpha slider, and descriptions; “Locate in Preview”.
  • Card-style rows with chip, color/alpha inputs, and improved descriptions with More/Less toggle.
  • Category icons in Colors for quick visual grouping.
  • Tokens: flat rules (scope, foreground, fontStyle checkboxes: bold/italic/underline/strikethrough); add/remove rules.
  • Semantic: flat map; edit foreground + fontStyle checkboxes; add/remove selectors.
  • Search: global filter for keys/rules/tokens; auto-expands matching categories; clear-search button.
  • Import: Use Current, Blank, JSON/JSONC (JSONC safe parser), VSIX.
  • Export: JSON theme, CSS variables, VSIX (minimal, runnable).
  • Live preview: writes to workbench.colorCustomizations, editor.tokenColorCustomizations (textMateRules), and editor.semanticTokenColorCustomizations (enabled + rules).
  • Workspace/User scope: designLab.preview.applyToWorkspace controls target.
  • UI state persistence: remembers selected left/preview tab, search text, category open state, and left scroll position.
  • Preview fidelity: includes token color visualization within the editor demo.
  • Undo/Redo: edit history within the webview.
  • Modernized live preview: VS Code-like frame, tabs, titlebar, statusbar, breadcrumbs, dirty-dot tabs, minimap, and bottom panel.
  • “Save Theme” button in the preview title bar to export JSON quickly.

Commands

  • Design Lab: Open (designLab.open)
  • Design Lab: Start Blank (designLab.startBlank)
  • Design Lab: Use Current (Active Theme + Overrides) (designLab.useCurrent)
  • Design Lab: Import Theme (JSON / JSONC / VSIX) (designLab.importTheme)
  • Design Lab: Export JSON (designLab.export.json)
  • Design Lab: Export CSS Variables (designLab.export.css)
  • Design Lab: Export VSIX (designLab.export.vsix)

Development

  1. Install dependencies and build.
  2. Press F5 to launch the Extension Development Host.
  3. Run “Design Lab: Open”.
  4. Use the in-webview toolbar to Import/Use Current/Blank or Export JSON/CSS/VSIX.
npm ci
npm run build

Watch mode:

npm run dev

E2E validation checklist

  • Launch: Run “Design Lab: Open” from the Extension Development Host.
  • Use Current: Loads the active theme definition from the installed theme plus any settings overrides; verify preview and model update. Reuses the same panel.
  • Colors: Change a color (including alpha); confirm #RRGGBBAA sync + live UI changes.
  • Locate: Edits trigger a brief pulse on the related preview element.
  • Tokens: Add/remove a scope; set foreground and fontStyle (bold/italic/underline/strikethrough); verify in editor + preview.
  • Semantic: Add/remove a selector; set foreground/fontStyle; verify.
  • Search: Filter across Colors, Tokens, and Semantic; confirm categories auto-expand and clear-search resets.
  • Import: Load JSON/JSONC/VSIX and verify categories/rules.
  • Export: JSON/CSS/VSIX; open exported files and optionally install the VSIX to test.
  • Scope: Toggle designLab.preview.applyToWorkspace and confirm writes go to workspace or user settings accordingly.

Quality gates

  • Build: npm run build should complete without TypeScript errors.
  • Artifacts: out/src/extension.js, out/media/webview.js, and out/assets/colors-template.json present.
  • Runtime: Webview loads; toolbar buttons operate without errors in Dev Tools console.

Notes

  • JSON template is copied at build. If you add more assets, extend copy-webpack-plugin patterns in webpack.config.js.
  • Live preview respects workspace/user scope via designLab.preview.applyToWorkspace.
  • Panel reuse: subsequent commands reveal and update the existing Design Lab tab instead of opening new ones.

August 2025: Full UI/preview rewrite for maximum visual appeal. Palette row, chip tooltips, and VS Code-like frame added.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft