Skip to content

Commit 5a8aafd

Browse files
committed
feat: add color modifiers
change $peach variable name to $red -- this makes things more generic
1 parent dd2687d commit 5a8aafd

3 files changed

Lines changed: 21 additions & 2 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@each $color, $color-value in $colors {
2+
.is-#{$color} {
3+
color: $color-value;
4+
}
5+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@import 'colors';
12
@import 'reset';
23
@import 'font';
34
@import 'utils';
Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
11
$yellow: #ffcf00;
2-
$peach: #ee2a3e;
2+
$red: #ee2a3e;
33
$blue: #032e53;
44
$green: #00a12f;
55
$grey: #d3d3d3;
66
$white: #fff;
77
$black: #000;
88

9+
$primary-color: $yellow;
10+
911
$navbar-color: $blue;
10-
$navbar-menu-color: $peach;
12+
$navbar-menu-color: $red;
1113

1214
$link-color: $white;
15+
16+
$colors: (
17+
primary: $yellow,
18+
yellow: $yellow,
19+
red: $red,
20+
blue: $blue,
21+
green: $green,
22+
grey: $grey,
23+
white: $white,
24+
black: $black
25+
);

0 commit comments

Comments
 (0)