Goodbye SASS
redblobgames.com·5w·

My “site” is spread across five different servers. I use slightly different CSS on each one. Since 2013 I’ve been using SASS to manage the variants, using these features:

  1. Variables → available in CSS since 2020
  2. Calculations → available in CSS since 2015
  3. Nesting → available in CSS since late 2023

Even though I want to use new browser features right away, I usually wait a year or two for them to stabilize and get into extended support releases.

A few years ago I had switched variables and calculations from SASS to CSS, but I still needed SASS for nesting. Since CSS nesting has now been supported for two years, I decided it should be safe for me to use it. And that means I no longer need SASS.

I divided the CSS into eight files that I can simply concatenate together (using…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help