Answers for "use sass variable in multiple files"

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
-1

scss how to declare variable for multiple files

$black: #000;
$white: #fff;
Posted by: Guest on November-14-2021

Browse Popular Code Answers by Language