Skip to content

Instantly share code, notes, and snippets.

@phylor
Created January 7, 2019 19:54
Show Gist options
  • Save phylor/d9c71d139c570db007a030871999282f to your computer and use it in GitHub Desktop.
Save phylor/d9c71d139c570db007a030871999282f to your computer and use it in GitHub Desktop.
// Problem statement:
$brand-primary: red;
$brand-primary: green;
// $brand-primary == green
// How to use variables in a common SCSS, but override them per client?
// holcim.scss
$brand-primary: red;
@import "common";
// kambly.scss
$brand-primary: brown;
@import "common";
// common.scss
$brand-primary: black !default;
a {
color: $brand-primary;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment