Last active
August 23, 2021 14:17
-
-
Save napotopia/354dda6501854380f9b4c49f49db19ce to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
$bg-color: pink !default; | |
$body-color: gray !default; | |
// default theme here | |
:root { | |
--background-color: #{$bg-color}; | |
--body-color: #{$body-color}; | |
} | |
div { | |
padding: 0.5rem; | |
border: 1px solid black; | |
margin-bottom: 1rem; | |
background-color: var(--background-color); | |
color: var(--body-color); | |
} | |
div.alternate { | |
--background-color: red; | |
background-color: var(--background-color); | |
} | |
// custom theme here | |
:root { | |
--background-color: purple; | |
--body-color: white; | |
} |
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
<div>div that is not red</div> | |
<div class="alternate">div that is red</div> |
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
:root { | |
--background-color: pink; | |
--body-color: gray; | |
} | |
div { | |
padding: 0.5rem; | |
border: 1px solid black; | |
margin-bottom: 1rem; | |
background-color: var(--background-color); | |
color: var(--body-color); | |
} | |
div.alternate { | |
--background-color: red; | |
background-color: var(--background-color); | |
} | |
:root { | |
--background-color: purple; | |
--body-color: white; | |
} |
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
{ | |
"sass": { | |
"compiler": "dart-sass/1.32.12", | |
"extensions": {}, | |
"syntax": "SCSS", | |
"outputStyle": "expanded" | |
}, | |
"autoprefixer": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment