CSS Modules with SCSS
Usage
Clone this repository:
Then, install and run it:
Open http://localhost:3000 in your browser.
How It Works
This example uses @zeit/next-sass to support CSS Modules.
By default all of your SASS and SCSS files are scoped globally. To make them scoped locally (CSS Modules), you need to suffix them with .mod.sass
, .module.sass
, .mod.scss
or .module.scss
.
Last updated