Created
June 23, 2023 21:40
-
-
Save stevedya/14ff5c4e3d4e3704806b21c5e53d5b2f to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
| @use "sass:map"; | |
| $color-dark: #1d1d1d; | |
| $color-primary-medium: #f65050; | |
| $color-purple: #4e47c9; | |
| $color-white: #fff; | |
| $colors: ( | |
| 'primary-medium': ('bg': $color-primary-medium, 'text': $color-dark), | |
| 'purple': ('bg': $color-purple, 'text': $color-white), | |
| ); | |
| body { | |
| @each $colorName, $colorValue in $colors { | |
| &.-color-#{$colorName} { | |
| background-color: map.get($colorValue, 'bg'); | |
| color: map.get($colorValue, 'text'); | |
| } | |
| } | |
| } | |
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
| body.-color-primary-medium { | |
| background-color: #f65050; | |
| color: #1d1d1d; | |
| } | |
| body.-color-purple { | |
| background-color: #4e47c9; | |
| color: #fff; | |
| } |
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
| { | |
| "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