@epegzz/sass-vars-loader
Advanced tools
Comparing version 2.2.0 to 2.2.1
{ | ||
"name": "@epegzz/sass-vars-loader", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"author": "Daniel Schäfer <epegzz@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "A SASS vars loader for Webpack. Load global SASS vars from JS/JSON files or from Webpack config.", |
@@ -148,3 +148,3 @@ <h1 align="center">Sass Vars Loader</h1> | ||
module.exports = { | ||
blueFromJS: 'blue' | ||
blueFromJavascript: 'blue' | ||
}; | ||
@@ -199,3 +199,3 @@ ``` | ||
### Pro Tipp: Nested Vars! | ||
### Pro Tip: Nested Vars! | ||
@@ -210,3 +210,8 @@ Use [map_get](http://sass-lang.com/documentation/Sass/Script/Functions.html#map_get-instance_method) | ||
lightTheme: { | ||
background: 'white' | ||
background: 'white', | ||
color: 'black' | ||
}, | ||
darkTheme: { | ||
background: 'black', | ||
color: 'gray' | ||
} | ||
@@ -219,4 +224,7 @@ }; | ||
$theme: $lightTheme; | ||
.some-class { | ||
background: map_get($lightTheme, background); | ||
background: map_get($theme, background); | ||
color: map_get($theme, color); | ||
} | ||
@@ -223,0 +231,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9491
232