Answers for "scss import variables from one file to anotehr"

CSS
0

sass use variables from another file

//_variables.scss 
$light: #f5f5f5;
$dark: ##2e3033;

//_theme.scss
@import './_variables'; //relative path to file
body {
	background-color: $dark;
}
Posted by: Guest on January-20-2021

Browse Popular Code Answers by Language