Skip to content

Commit 4e9595e

Browse files
author
Adam Raider
committed
fix: Fix up color variables
1 parent 9ed14ab commit 4e9595e

File tree

7 files changed

+52
-59
lines changed

7 files changed

+52
-59
lines changed

packages/ray/lib/_base.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ html {
44

55
body {
66
font-family: $font-stack-sans-serif;
7+
color: $color-text-dark;
78
min-height: 100vh;
89
display: flex;
910
flex-direction: column;
@@ -12,7 +13,6 @@ body {
1213
-moz-osx-font-smoothing: grayscale;
1314
text-rendering: optimizeLegibility;
1415
line-height: 1.6666666666666667;
15-
color: $black70;
1616
font-weight: 400;
1717
font-size: 16px;
1818
line-height: 28px;
@@ -24,7 +24,7 @@ body {
2424

2525
a {
2626
text-decoration: none;
27-
color: $blue50;
27+
color: $color-blue50;
2828

2929
&:hover,
3030
&:focus {

packages/ray/lib/_buttons.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $font-size: 1rem !default;
1414
cursor: pointer;
1515
padding: 0.5625rem 1.5625rem;
1616
min-width: 120px;
17-
color: $white;
17+
color: $color-white;
1818
height: $field-height;
1919

2020
&:hover,
@@ -26,16 +26,16 @@ $font-size: 1rem !default;
2626

2727
&:disabled {
2828
cursor: not-allowed;
29-
background-color: $gray50;
30-
border-color: $gray50;
31-
color: $white;
29+
background-color: $color-gray50;
30+
border-color: $color-gray50;
31+
color: $color-white;
3232
}
3333
}
3434

3535
.btn--primary {
36-
@include btn($blue50, $blue60);
36+
@include btn($color-blue50, $color-blue60);
3737
}
3838

3939
.btn--secondary {
40-
@include btn($yellow50, $yellow60);
40+
@include btn($color-yellow50, $color-yellow60);
4141
}

packages/ray/lib/_card.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
$card-padding: 1rem;
2-
$card-border-color: $gray35;
2+
$card-border-color: $color-gray35;
33

44
.card {
55
width: 100%;
66
border-radius: $border-radius;
7-
background-color: $white;
7+
background-color: $color-white;
88
overflow: hidden;
99
height: 100%;
1010
display: flex;

packages/ray/lib/_forms.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.FormControl {
2-
border: 1px solid $blue;
3-
background-color: $white;
2+
border: 1px solid $color-blue;
3+
background-color: $color-white;
44
border-radius: $border-radius;
55
position: relative;
66
height: $field-height;
@@ -22,7 +22,7 @@
2222
top: 15px;
2323
display: flex;
2424
align-items: center;
25-
color: $gray80;
25+
color: $color-text-medium;
2626
transition: all 0.125s ease;
2727
pointer-events: none;
2828
}
@@ -43,7 +43,7 @@
4343

4444
&:focus,
4545
&:not(:placeholder-shown) {
46-
border-color: $blue20;
46+
border-color: $color-blue20;
4747

4848
+ label {
4949
font-size: 12px;
@@ -59,7 +59,7 @@
5959
&__hint {
6060
@extend .p4;
6161
display: block;
62-
color: $gray80;
62+
color: $color-text-light;
6363
font-weight: 400;
6464
margin-top: 0.25rem;
6565
}

packages/ray/lib/_image.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
height: auto;
55
position: relative;
66
overflow: hidden;
7-
background-color: $gray35;
7+
background-color: $color-gray35;
88

99
img {
1010
position: absolute;
@@ -36,7 +36,7 @@
3636
display: block;
3737
width: 100%;
3838
height: auto;
39-
background-color: $gray35;
39+
background-color: $color-gray35;
4040
background-size: cover;
4141
background-position: center;
4242
background-repeat: no-repeat;

packages/ray/lib/_table.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44

55
thead {
66
tr {
7-
border-bottom: 1px solid $black70;
7+
border-bottom: 1px solid $color-black70;
88
}
99
}
1010

1111
th {
1212
font-size: 12px;
1313
font-family: $font-stack-mono;
14-
color: $gray70;
14+
color: $color-gray70;
1515
text-align: left;
1616
text-transform: uppercase;
1717
padding: 1rem 0;
1818
}
1919

2020
tr {
21-
border-bottom: 1px solid $gray35;
21+
border-bottom: 1px solid $color-gray35;
2222
}
2323

2424
td {

packages/ray/lib/_variables.scss

Lines changed: 32 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -9,49 +9,42 @@ $breakpoint-desktop-large-px: 1024px !default;
99

1010
$border-radius: 0.25rem !default;
1111

12-
$black70: #000 !default;
13-
$black60: #0d0e0e !default;
14-
$black50: #252729 !default;
15-
$black40: #3d4144 !default;
16-
$black30: #555a5f !default;
17-
$black20: #6e7479 !default;
18-
$gray80: #747476 !default;
19-
$gray70: #8e8e8f !default;
20-
$gray60: #a7a7a9 !default;
21-
$gray50: #c1c1c2 !default;
22-
$gray40: #dbdbdb !default;
23-
$gray35: #e6e6e6 !default;
24-
$gray30: #f4f4f5 !default;
25-
$white: #fff !default;
12+
$color-black70: #000 !default;
13+
$color-black60: #0d0e0e !default;
14+
$color-black50: #252729 !default;
15+
$color-black40: #3d4144 !default;
16+
$color-black30: #555a5f !default;
17+
$color-black20: #6e7479 !default;
18+
$color-gray80: #747476 !default;
19+
$color-gray70: #8e8e8f !default;
20+
$color-gray60: #a7a7a9 !default;
21+
$color-gray50: #c1c1c2 !default;
22+
$color-gray40: #dbdbdb !default;
23+
$color-gray35: #e6e6e6 !default;
24+
$color-gray30: #f4f4f5 !default;
25+
$color-white: #fff !default;
2626

27-
$yellow: #ffd500 !default;
28-
$yellow80: darken($yellow, 30%) !default;
29-
$yellow70: darken($yellow, 20%) !default;
30-
$yellow60: darken($yellow, 10%) !default;
31-
$yellow50: $yellow !default;
32-
$yellow40: lighten($yellow, 10%) !default;
33-
$yellow30: lighten($yellow, 20%) !default;
34-
$yellow20: lighten($yellow, 30%) !default;
27+
$color-yellow: #ffd500 !default;
28+
$color-yellow80: darken($color-yellow, 30%) !default;
29+
$color-yellow70: darken($color-yellow, 20%) !default;
30+
$color-yellow60: darken($color-yellow, 10%) !default;
31+
$color-yellow50: $color-yellow !default;
32+
$color-yellow40: lighten($color-yellow, 10%) !default;
33+
$color-yellow30: lighten($color-yellow, 20%) !default;
34+
$color-yellow20: lighten($color-yellow, 30%) !default;
3535

36-
$blue: #0000ff !default;
37-
$blue80: darken($blue, 30%) !default;
38-
$blue70: darken($blue, 20%) !default;
39-
$blue60: darken($blue, 10%) !default;
40-
$blue50: $blue !default;
41-
$blue40: lighten($blue, 10%) !default;
42-
$blue30: lighten($blue, 20%) !default;
43-
$blue20: lighten($blue, 30%) !default;
36+
$color-blue: #0000ff !default;
37+
$color-blue60: darken($color-blue, 10%) !default;
38+
$color-blue50: $color-blue !default;
39+
$color-blue30: lighten($color-blue, 20%) !default;
40+
$color-blue20: lighten($color-blue, 30%) !default;
4441

45-
$red80: #812020 !default;
46-
$red70: #aa2a2a !default;
47-
$red60: #ce3939 !default;
48-
$red50: #d86262 !default;
49-
$red40: #e28b8b !default;
50-
$red30: #ecb4b4 !default;
51-
$red20: #f6dddd !default;
42+
$color-text-light: #b0b0b0;
43+
$color-text-medium: #666666;
44+
$color-text-dark: #000000;
5245

53-
$primary-color: $blue50 !default;
54-
$secondary-color: $yellow50 !default;
46+
$color-primary: $color-blue50 !default;
47+
$color-secondary: $color-yellow50 !default;
5548

5649
$field-height: 54px !default;
5750

0 commit comments

Comments
 (0)