From d7bffcac1a80810467f4c87e068a458f28853906 Mon Sep 17 00:00:00 2001 From: Joe Haddad Date: Wed, 26 Sep 2018 10:52:06 -0400 Subject: [PATCH] Update Sass documentation --- packages/react-scripts/template/README.md | 122 +++++----------------- 1 file changed, 27 insertions(+), 95 deletions(-) diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index 540137b488e..33091b2d9a7 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -25,8 +25,8 @@ You can find the most recent version of this guide [here](https://github.com/fac - [Code Splitting](#code-splitting) - [Adding a Stylesheet](#adding-a-stylesheet) - [Adding a CSS Modules stylesheet](#adding-a-css-modules-stylesheet) +- [Adding a Sass stylesheet](#adding-a-sass-stylesheet) - [Post-Processing CSS](#post-processing-css) -- [Adding a CSS Preprocessor (Sass, Less etc.)](#adding-a-css-preprocessor-sass-less-etc) - [Adding Images, Fonts, and Files](#adding-images-fonts-and-files) - [Using the `public` Folder](#using-the-public-folder) - [Changing the HTML](#changing-the-html) @@ -567,6 +567,32 @@ No clashes from other `.error` class names **This is an optional feature.** Regular html stylesheets and js imported stylesheets are fully supported. CSS Modules are only added when explicitly named as a css module stylesheet using the extension `.module.css`. +## Adding a Sass stylesheet + +Generally, we recommend that you don’t reuse the same CSS classes across different components. For example, instead of using a `.Button` CSS class in `` and `` components, we recommend creating a `