Skip to main content

Switch to Sass

Published: October 13, 2020

This is part of The Annotated Guide to a New Rails App, a list of recommendations to make developing your Rails app more productive and joyful.

In this article, we are talking about switching to Sass.

When

I recommend making the switch before investing any significant effort into your CSS (cascading stylesheets).

What

Sass is a superset of CSS that makes writing stylesheets easier and more pleasant.

How

Sass is installed by default so all you need to do is change the file extension.

git mv app/assets/stylesheets/application.{css,scss}