# React Sass
Sass (Syntactically Awesome Stylesheets) is a CSS preprocessor.
Sass allows you to use features that do not yet exist in CSS, such as variables, nested rules, mixins, functions, and more.
Sass files are executed on the server, and the generated CSS is sent to the browser.
You can learn more about Sass in our (#).
### Installing Sass
Run the following command in the terminal to install Sass:
npm i sass
Now you are ready to include Sass files in your project!
### Creating a Sass File
Sass files are created in the same way as CSS files, but Sass files have the extension .scss.
In Sass files, you can use variables and other Sass features.
### Example
Create a variable to define the text color:
my-sass.scss file code:
## my-sass.scss
$myColor: red;
h1 {
color: $myColor;
}
Import the Sass file just like you would import a CSS file:
## Example
import React from 'react';
import ReactDOM from 'react-dom/client';
import'./my-sass.scss';
const Header =()=>{
return(
Hello Style!
Add a little style!.
);
}
const root = ReactGeek Tutorial](#)(#)[](#)