Skip to content

Commit

Permalink
feat: add color modifiers
Browse files Browse the repository at this point in the history
change $peach variable name to $red -- this makes things more generic
  • Loading branch information
RickEyre committed Apr 7, 2020
1 parent dd2687d commit 5a8aafd
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
5 changes: 5 additions & 0 deletions packages/panda-san/src/core/colors.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@each $color, $color-value in $colors {
.is-#{$color} {
color: $color-value;
}
};
1 change: 1 addition & 0 deletions packages/panda-san/src/core/index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import 'colors';
@import 'reset';
@import 'font';
@import 'utils';
17 changes: 15 additions & 2 deletions packages/panda-san/src/variables/colors.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
$yellow: #ffcf00;
$peach: #ee2a3e;
$red: #ee2a3e;
$blue: #032e53;
$green: #00a12f;
$grey: #d3d3d3;
$white: #fff;
$black: #000;

$primary-color: $yellow;

$navbar-color: $blue;
$navbar-menu-color: $peach;
$navbar-menu-color: $red;

$link-color: $white;

$colors: (
primary: $yellow,
yellow: $yellow,
red: $red,
blue: $blue,
green: $green,
grey: $grey,
white: $white,
black: $black
);

0 comments on commit 5a8aafd

Please sign in to comment.