Nifty CSS Variables
IntelliSense for CSS custom properties across your project: complete var(--…), see resolved values and colour swatches, go to definitions, catch undefined variables, and browse a colour palette.
Maintained. No sign-in. No telemetry. Works in VS Code, Cursor, Windsurf, VSCodium and other editors that use Open VSX.
Features



- Complete
var(--…) everywhere. Type var( in CSS, SCSS, Less, or a style in HTML, Vue, Svelte, Astro, JSX or templates, and get every custom property defined anywhere in your project. That includes <style> blocks in components. Colours show their swatch right in the list.
- See the real value. Hover over a variable to see its value, what it finally resolves to through other variables and fallbacks (
--brand-dark → #003399), and every place it's defined, such as :root and [data-theme="dark"], with file and line.
- Go to Definition (F12) jumps to where a variable is declared.
- Colour swatches for variables.
var(--brand) gets a swatch like a literal colour when it resolves to one.
- Catch typos.
var(--primray) with no fallback, where nothing by that name is defined, is flagged. Variables that come from frameworks at runtime (--tw-*, --radix-*, --vscode-*) are ignored, and you can add your own patterns.
- CSS Colors palette. A view in the Explorer lists every colour variable with its swatch and hex value. Click to copy
var(--name), double-click to go to it, and filter by name.
- Works in the browser on vscode.dev and github.dev.
Commands
| Command |
What it does |
Nifty CSS Variables: Re-read CSS Variables |
Read all stylesheets again |
Settings
| Setting |
Default |
What it does |
nifty.css-vars.include |
CSS, SCSS, Less, Sass, Vue, Svelte, Astro, HTML |
Files to read custom properties from |
nifty.css-vars.exclude |
node_modules, build output… |
Files to leave out |
nifty.css-vars.colorDecorators |
true |
Swatches next to colour variables |
nifty.css-vars.undefinedVariables |
warning |
Warn about undefined variables, or off |
nifty.css-vars.ignore |
--tw-*, --vscode-*, --radix-*, --mantine-* |
Variables never reported as undefined |
Install
- VS Code: search for "Nifty CSS Variables" in the Extensions view, or install from the Visual Studio Marketplace.
- Cursor, Windsurf, VSCodium, Kiro, Antigravity: install from Open VSX.
Privacy
This extension collects no telemetry and needs no account.
- Nifty CSS Classes: Class Name Completion: Complete CSS class names in HTML, JSX, Vue, Svelte, PHP and templates from your stylesheets, including SCSS nesting and linked files, with hover and go to definition. (Open VSX)
- Nifty SCSS IntelliSense: Variables & Mixins: Variables, mixins, functions and placeholders from all your SCSS files: completion that understands @use namespaces and @import, hover with values and SassDoc, and go to definition. (Open VSX)
- Nifty Colors: Swatches & Picker in Every Language: Colour swatches and VS Code's picker in any file: CSS, Tailwind, Flutter, Swift, Android, C# and Unity colours. Convert formats and check WCAG contrast on hover. (Open VSX)
- Nifty Diagrams: PlantUML, Graphviz & D2 Preview: PlantUML, Graphviz (DOT) and D2 diagrams rendered on your machine: live preview beside the editor, SVG and PNG export, diagrams in the Markdown preview, errors in Problems. No server needed. (Open VSX)
- Nifty Helm & Kustomize: Values IntelliSense: Helm .Values IntelliSense (completion, hover, go to definition, missing values) and Kustomize navigation, checks with quick fixes, an overlay tree, patch target hovers, build previews and diffs. (Open VSX)
- Nifty Mermaid: Mermaid Diagram Preview & Export: Mermaid diagrams with no account: live preview beside .mmd files and Markdown, diagrams in the Markdown preview, syntax highlighting, and export to SVG or PNG. (Open VSX)
See all 100+ Nifty extensions and web tools at https://getnifty.dev
| |