Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

sass use variables from another file

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

//_theme.scss
@import './_variables'; //relative path to file
body {
	background-color: $dark;
}
 
PREVIOUS NEXT
Tagged: #sass #variables #file
ADD COMMENT
Topic
Name
7+5 =