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-colorand$text-colorall 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
- Paste the older version into Original and the newer one into Changed, or open a file on each side.
- Check that the syntax menu says SCSS, then pick split or unified view.
- Step through the changes with the arrows or Alt ↓, and use Settings for options such as ignoring blank lines.
- 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.