If you find CSS Variables Assistant helpful, please consider rating it on JetBrains Marketplace ★★★★★ 🙏.
Compatible IDEs: WebStorm / IntelliJ Ultimate 2024.1+ (and 2025.1+)
Author: Stian Larsen
Repo: github.com/Stianlars1/css-vars-assistant
Links:
Supercharge your CSS custom properties and preprocessor variables in JetBrains IDEs with advanced autocomplete, documentation, and debugging tools.
- Instant variable lookup: Blazing-fast completions and documentation for
CSS,SCSS,SASSandLESSvariables. - Smart autocomplete: Context-aware suggestions for
var(--…),@less, and$scsswith value/context-based sorting. - Rich documentation popups:
- Customizable Columns: Choose what you see (Context, Value, Source, etc.).
- Resolution Chain: A tooltip shows the full resolution path of a variable.
- Value tables (with px equivalents for rem/em/%/vh/vw/pt)
- Context labels (Default, Dark, min-width, etc.)
- Color swatches and contrast info
- Dynamic columns: px Eq., Hex, WCAG appear only when relevant
- CSS cascade compliance: Shows the actual winning value first, following proper CSS cascade rules
- Legend for derived variables: Explains the ↗ symbol for variables resolved through imports
- JSDoc-style comments: Auto-parsing and display of
@name,@description, and@example. - Advanced import resolution: Follows and indexes imports across
CSS,SCSS,SASS&LESS. - Debugging tools: Trace variable origins and import chains visually.
- Configurable sorting: Completion list sorted by value (ascending/descending).
- Works everywhere:
CSS,SCSS,SASS,LESS.
Open Settings → Tools → CSS Variables Assistant
| Option | Effect |
|---|---|
| Show context values | Display dark/light & media-query variants |
| Allow IDE built-in completions | Fall back to IntelliJ suggestions for misses |
| Indexing scope | Project only • Project + imports (experimental) • Full global (default) |
| Enable / disable docs table columns | Customize your table view |
| Max @import depth | 1 – 20 (default 20) |
| Completion sorting | Ascending or descending value order |
| 🔄 Re-index Now | Flush caches and rebuild the variable index immediately |
Need to verify exactly which files your @imports resolve to?
- Right-click any .css / .scss / .sass / .less file in the Project view
or inside the editor. - Select "Debug CSS Import Resolution".
- A dialog shows:
- full import tree (
@importdepth-limited) - circular-reference warnings
- variable counts per file
A copy is also written to the IDE Log for later inspection.
- full import tree (
💡 Tip You can keep the dialog open while you edit – rerun the action to refresh.
| Symptom | Resolution |
|---|---|
Variable shows @lessVar instead of real colour |
Click Re-index Now, wait for Updating indexes… to finish. |
| Completions missing after changing scope | Re-index or restart IDE (button normally suffices). |
| Slow indexing | Use Project + imports, lower max-depth, exclude large folders. |
| Need to see where a variable came from | Right-click file → Debug CSS Import Resolution. |
git clone https://github.com/stianlars1/css-vars-assistant.git
cd css-vars-assistant
./gradlew clean buildPlugin # produces ZIP under build/distributions
./gradlew runIde # start sandbox IDE