Looking for the current Rivet documentation? View the v1 site.
Back

(More) Modular Sass

This RFC proposes a new completely modular approach to Rivet’s Sass (SCSS) code base

Chat icon Comment on this document

Log in to GitHub to comment on this RFC.

Summary

This RFC proposes a new completely modular approach to Rivet’s Sass (SCSS) code base with a goal of making it easer for developers to include only the components and styles that they need for their site or application.

A lot of the concepts in this RFC are very much inspired by the way the Github Primer team has structured their codebase.

Motivation

In the 1.x.x versions of Rivet the same Sass source files that we build Rivet with have always been included in the npm package and downloads. While it has always been possible for developers to use Rivet’s Sass source files we (the Rivet team):

  1. Haven’t done the best job of documenting how the Sass files are structured
  2. Haven’t made it easy for those who do you Sass in their tool chain to use only the components and styles they need to import

In this RFC we’ll outline a plan for restructuring the Sass code base to make it easier for developers to use how they want/need to with their own build tools.

Read more in the full RFC text.

Chat icon Comment on this document

Log in to GitHub to comment on this RFC.