Compare SCSS online

A Sass stylesheet whose colour variables, font and sizes changed. Paste your own .scss files to compare two versions. Tips for SCSS

Original
0 lines
Drop to load into original
Changed
0 lines
Drop to load into changed
−0+0
Original
Changed

About this SCSS comparison

In SCSS, changing one variable changes every rule that uses it, so the variable block at the top of a file is where most important edits happen. An SCSS diff shows those variable changes clearly, along with any nested rules that changed.

It is a quick way to review a design-token update or compare two versions of a theme.

What changed in this sample

  • $primary-color, $background-color and $text-color all got new values.
  • The font family changed from Arial to Verdana.
  • The heading size went from 24px to 26px, and paragraphs from 16px with 1.5 line height to 18px with 1.6.

Tips for comparing SCSS

Watch the variables
Variable changes affect everything that uses them. The Characters highlight shows exactly which digits of a value changed.
Compare the compiled CSS too
To see the final effect of a change, compile both versions and compare the CSS output.
Reordered partials
If a list of @use or @import lines was only reordered, select those lines and use Sort lines before comparing.
Save the review
Download the comparison as an HTML page to attach it to a design review.

How to compare SCSS online

  1. Paste the older version into Original and the newer one into Changed, or open a file on each side.
  2. Check that the syntax menu says SCSS, then pick split or unified view.
  3. Step through the changes with the arrows or Alt ↓, and use Settings for options such as ignoring blank lines.
  4. Save the comparison in your browser, share a link, or download it as a .diff, HTML or PDF.

SCSS comparison: questions

Does it support .sass indented syntax?

Yes. Any text can be compared; choose SCSS highlighting for the closest colouring.

Can I compare design tokens in JSON?

Yes. Switch the syntax to JSON and use Format JSON to line both files up.

Is anything compiled?

No. The SCSS is compared as text in your browser.