Skip to content

Instantly share code, notes, and snippets.

@jgatjens
Created April 17, 2020 20:23
Show Gist options
  • Save jgatjens/9ddf362deeb493484e7ef3f9ff9e26ca to your computer and use it in GitHub Desktop.
Save jgatjens/9ddf362deeb493484e7ef3f9ff9e26ca to your computer and use it in GitHub Desktop.
share variables with javascript (webpack)
// 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