Code · Made a little simpler

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.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device
Inline SCSS files

Add a relative path such as theme/_tokens.scss when your source uses a local partial.

Dart Sass 1.108.2 runs on this device.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

SCSS to CSS: how to use it

  1. Paste the main SCSS source or load the card example with its local theme partial.
  2. Supply imported SCSS modules as named inline files. Choose Expanded or Compressed and select Compile CSS.
  3. 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.

Tool guides