SCSS to CSS
Compile SCSS variables, mixins and nested selectors with Dart Sass in your browser. Add inline partials for local module resolution and export standard CSS.
Compile SCSS With a Local Theme Partial
Dart Sass 1.108.2 runs on this device.
SCSS to CSS: how to use it
- Paste the main SCSS source or load the card example with its local theme partial.
- Supply imported SCSS modules as named inline files. Choose Expanded or Compressed and select Compile CSS.
- Check the generated selectors and declarations. Copy or download the CSS, or follow the compiler error to the source line.
Limits and notes
Uses Dart Sass 1.108.2. Enter up to 125,000 characters per file and 250,000 across the workspace. Include up to four inline .scss partials. Compilation resolves bundled Sass modules and supplied inline source.
How your privacy works →SCSS to CSS: common questions
How do I load theme/_tokens.scss?
Add an inline file with the path theme/_tokens.scss and put its variables or mixins in the editor. In main SCSS, write @use "theme/tokens" and refer to members through the tokens namespace.
Why is @use reported as a missing stylesheet?
Check the inline path, letter case, parent directory and partial filename. Sass built-ins use a sass: prefix. Project aliases and package imports require your project's own importer.
Do expanded and compressed styles generate the same declarations?
They serialize the compiled rules differently. Compressed output omits formatting whitespace and can shorten equivalent values such as color notation.