Created
November 11, 2022 17:26
-
-
Save stacyk/f47769ddae43bea5b2d4431e340a81b9 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
@use "sass:color"; | |
.foo { | |
--b: #{color.blackness(color.hwb(0 0% 50%))}; | |
--w: 0%; | |
} | |
.bar { | |
--b: #{color.blackness(color.hwb(0 50% 50%))}; | |
--w: 50%; | |
} | |
.baz { | |
--b: #{color.blackness(color.hwb(0 70% 70%))}; | |
--w: 70%; | |
} | |
main { | |
display: grid; | |
height: 100vh; | |
grid-template-columns: 1fr 1fr 1fr; | |
} | |
div { | |
background: color.hwb(0 #{var(--w)} #{var(--b)}); | |
} |
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
<main> | |
<div class="foo"></div> | |
<div class="bar"></div> | |
<div class="baz"></div> | |
</main> |
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
.foo { | |
--b: 49.8039215686%; | |
} | |
.bar { | |
--b: 49.8039215686%; | |
} | |
.baz { | |
--b: 49.8039215686%; | |
} | |
main { | |
display: grid; | |
height: 100vh; | |
grid-template-columns: 1fr 1fr 1fr; | |
} | |
div { | |
background-color: hwb(0, 0%, var(--b)); | |
} |
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