- Forums
- CSS
- Sass Css - Add Dynamic Variables To Css Styles Notes
These are my notes on how to use SASS in CSS to create a more dynamic website style. [5281], Last Updated: Mon Jun 24, 2024
edw
Fri Jan 12, 2024
0 Comments
235 Visits
use variables
https://www.youtube.com/watch?v=83F7PrfX5qw
$grayColor = "#eee";
.myClass{
color: $grayColor;
}
.myBackground{
background-color: $grayColor;
}
install sass in react.
$ npm add -D cass
Now, all you have to do is import when you create a file. for example: style.scss
import 'style.scss'
use in nested
SX9lDjFgeUU