Skip to content

Instantly share code, notes, and snippets.

View andrei-gheorghiu's full-sized avatar
💭
I may be slow to respond.

Andrei Gheorghiu andrei-gheorghiu

💭
I may be slow to respond.
View GitHub Profile
@andrei-gheorghiu
andrei-gheorghiu / input.scss
Created November 26, 2022 15:50
Generated by SassMeister.com.
@use "sass:map";
$base-colors: ("white": #FCF5F5, "red": #FC0A0A, "black": #2A0303);
$colors: ();
.test {
@for $i from 0 through 10 {
red-#{$i * 100}: #{mix(map.get($base-colors, "red"), map.get($base-colors, "white"), $i * 10%)};
}
@for $i from 1 through 10 {
red-#{($i * 100) + 1000}: #{mix(map.get($base-colors, "black"), map.get($base-colors, "red"), $i * 10%)};
}
@andrei-gheorghiu
andrei-gheorghiu / input.scss
Created November 26, 2022 15:47
Generated by SassMeister.com.
@use "sass:map";
$base-colors: ("white": #FCF5F5, "red": #FC0A0A, "black": #2A0303);
$colors: ();
.test {
@for $i from 0 through 10 {
red-#{$i * 100}: #{mix(map.get($base-colors, "red"), map.get($base-colors, "white"), $i * 10%)};
}
@for $i from 1 through 10 {
red-#{($i * 100) + 1000}: #{mix(map.get($base-colors, "red"), map.get($base-colors, "white"), $i * 10%)};
}