Created
November 11, 2022 17:47
-
-
Save stacyk/65d3516c58a531b842e29be959bedcdc 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: #{color.whiteness(color.hwb(0 0% 50%))}; | |
} | |
.bar { | |
--b: #{color.blackness(color.hwb(0 50% 50%))}; | |
--w: #{color.whiteness(color.hwb(0 50% 50%))}; | |
} | |
.baz { | |
--b: #{color.blackness(color.hwb(0 20% 60%))}; | |
--w: #{color.whiteness(color.hwb(0 20% 60%))}; | |
} | |
.goo { | |
--b: #{color.blackness(color.hwb(0 70% 70%))}; | |
--w: #{color.whiteness(color.hwb(0 70% 70%))}; | |
} | |
main { | |
display: grid; | |
height: 100vh; | |
grid-template-columns: 1fr 1fr 1fr 1fr; | |
} | |
div { | |
background: 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> | |
<div class="goo"></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%; | |
--w: 0%; | |
} | |
.bar { | |
--b: 49.8039215686%; | |
--w: 50.1960784314%; | |
} | |
.baz { | |
--b: 60%; | |
--w: 20%; | |
} | |
.goo { | |
--b: 49.8039215686%; | |
--w: 50.1960784314%; | |
} | |
main { | |
display: grid; | |
height: 100vh; | |
grid-template-columns: 1fr 1fr 1fr 1fr; | |
} | |
div { | |
background: 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
{ | |
"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