Skip to content

Commit

Permalink
feat(tokens): add danger, text05, update text02 (#3962)
Browse files Browse the repository at this point in the history
* feat(tokens): add danger, text05, update text02

* Correct typo

Co-Authored-By: Josh Black <[email protected]>

* add missing import

* add new tokens to v9 & unstable__meta

* Update packages/themes/src/v9.js

Co-Authored-By: Josh Black <[email protected]>
  • Loading branch information
shixiedesign and joshblack authored Sep 12, 2019
1 parent daff514 commit 36113ce
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 6 deletions.
7 changes: 5 additions & 2 deletions packages/themes/src/g10.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
gray10,
gray20,
gray30,
gray40,
gray50,
gray60,
gray70,
Expand Down Expand Up @@ -44,6 +45,7 @@ export const interactive01 = blue60;
export const interactive02 = gray80;
export const interactive03 = blue60;
export const interactive04 = blue60;
export const danger = red60;

export const uiBackground = gray10;

Expand All @@ -54,9 +56,10 @@ export const ui04 = gray50;
export const ui05 = gray100;

export const text01 = gray100;
export const text02 = gray70;
export const text03 = gray50;
export const text02 = gray80;
export const text03 = gray40;
export const text04 = white;
export const text05 = gray60;

export const icon01 = gray100;
export const icon02 = gray70;
Expand Down
3 changes: 3 additions & 0 deletions packages/themes/src/g100.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
// Gray
gray10,
gray30,
gray50,
gray60,
gray70,
gray80,
Expand All @@ -42,6 +43,7 @@ export const interactive01 = blue60;
export const interactive02 = gray60;
export const interactive03 = white;
export const interactive04 = blue50;
export const danger = red60;

export const uiBackground = gray100;

Expand All @@ -55,6 +57,7 @@ export const text01 = gray10;
export const text02 = gray30;
export const text03 = gray60;
export const text04 = white;
export const text05 = gray50;

export const icon01 = gray10;
export const icon02 = gray30;
Expand Down
4 changes: 3 additions & 1 deletion packages/themes/src/g90.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const interactive01 = blue60;
export const interactive02 = gray60;
export const interactive03 = white;
export const interactive04 = blue50;
export const danger = red60;

export const uiBackground = gray90;

Expand All @@ -55,8 +56,9 @@ export const ui05 = gray10;

export const text01 = gray10;
export const text02 = gray30;
export const text03 = gray50;
export const text03 = gray60;
export const text04 = white;
export const text05 = gray50;

export const icon01 = gray10;
export const icon02 = gray30;
Expand Down
4 changes: 4 additions & 0 deletions packages/themes/src/tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const colors = [
'interactive02',
'interactive03',
'interactive04',
'danger',

'uiBackground',

Expand All @@ -26,6 +27,7 @@ const colors = [
'text02',
'text03',
'text04',
'text05',

'icon01',
'icon02',
Expand Down Expand Up @@ -152,6 +154,7 @@ export const unstable__meta = {
'interactive02',
'interactive03',
'interactive04',
'danger',
'brand01',
'brand02',
'brand03',
Expand All @@ -164,6 +167,7 @@ export const unstable__meta = {
'text02',
'text03',
'text04',
'text05',
'link01',
'icon01',
'icon02',
Expand Down
3 changes: 2 additions & 1 deletion packages/themes/src/v9.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const interactive01 = '#3d70b2';
export const interactive02 = '#5a6872';
export const interactive03 = '#5a6872';
export const interactive04 = '#3d70b2';

export const danger = '#e0182d';
export const uiBackground = '#f4f7fb';

export const ui01 = white;
Expand All @@ -24,6 +24,7 @@ export const text01 = '#152935';
export const text02 = '#5a6872';
export const text03 = '#cdd1d4';
export const text04 = white;
export const text05 = '#5a6872';

export const icon01 = '#3d70b2';
export const icon02 = '#5a6872';
Expand Down
7 changes: 5 additions & 2 deletions packages/themes/src/white.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
gray10,
gray20,
gray30,
gray40,
gray50,
gray60,
gray70,
Expand Down Expand Up @@ -44,6 +45,7 @@ export const interactive01 = blue60;
export const interactive02 = gray80;
export const interactive03 = blue60;
export const interactive04 = blue60;
export const danger = red60;

export const uiBackground = white;

Expand All @@ -54,9 +56,10 @@ export const ui04 = gray50;
export const ui05 = gray100;

export const text01 = gray100;
export const text02 = gray70;
export const text03 = gray50;
export const text02 = gray80;
export const text03 = gray40;
export const text04 = white;
export const text05 = gray60;

export const icon01 = gray100;
export const icon02 = gray70;
Expand Down

0 comments on commit 36113ce

Please sign in to comment.