-
-
Save lkpttn/3107306 to your computer and use it in GitHub Desktop.
Simple Label Colors with SCSS
This file contains hidden or 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
| $red:#f36d54; | |
| $number: 100; | |
| @for $i from 1 through $number { | |
| .label-#{$i} { | |
| color:adjust_hue($red, ($i - 1) * (360 / $number)); | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The larger the $number, the closer it gets to a looking like a gradient. 12 steps with twelve labels is a rainbow essentially.