Created
April 17, 2020 20:23
-
-
Save jgatjens/9ddf362deeb493484e7ef3f9ff9e26ca to your computer and use it in GitHub Desktop.
share variables with javascript (webpack)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// share variables with javascript (webpack) | |
variables.scss | |
:export { | |
--hww-dark-blue: #0d2126; | |
--hww-blue: #00b0e0; | |
--hww-light: #ffffff; | |
--hww-secondary-green: #57bf9e; | |
--hww-secondary-yellow: #e8c71c; | |
--hww-secondary-red: #de2b47; | |
--hww-light-blue: #6eccde; | |
--hww-light-green: #9ed6c2; | |
--hww-light-yellow: #fae896; | |
--hww-light-red: #f28fb0; | |
} | |
// index.js | |
import colors from 'variables.scss' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment