Skip to content

Commit 396fccf

Browse files
authored
fix(design-tokens): fix SendGrid token values (#71)
* fix(design-tokens): update sg token to use correct alias values * fix(theme): change theme-provider test to correct color
1 parent c3e48fd commit 396fccf

5 files changed

Lines changed: 18 additions & 18 deletions

File tree

packages/paste-design-tokens/tokens/themes/sendgrid/global/background-color.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ props:
4343

4444
# primary background
4545
color-background-primary-darker:
46-
value: "{!palette-blue-80}"
46+
value: "{!palette-blue-70}"
4747
comment: Darker background for primary actions or highlights
4848
color-background-primary-dark:
49-
value: "{!palette-blue-70}"
49+
value: "{!palette-blue-60}"
5050
comment: Dark background for primary actions or highlights
5151
color-background-primary:
52-
value: "{!palette-blue-60}"
52+
value: "{!palette-blue-50}"
5353
comment: Background for primary actions or highlights
5454
color-background-primary-light:
5555
value: "{!palette-blue-40}"

packages/paste-design-tokens/tokens/themes/sendgrid/global/border-color.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ props:
2929

3030
# primary action borders
3131
color-border-primary-darker:
32-
value: "{!palette-blue-80}"
32+
value: "{!palette-blue-70}"
3333
comment: Darker primary border color
3434
color-border-primary-dark:
35-
value: "{!palette-blue-70}"
35+
value: "{!palette-blue-60}"
3636
comment: Dark primary border color
3737
color-border-primary:
38-
value: "{!palette-blue-60}"
38+
value: "{!palette-blue-50}"
3939
comment: Primary border color
4040
color-border-primary-light:
4141
value: "{!palette-blue-40}"
@@ -66,13 +66,13 @@ props:
6666

6767
# destructive borders
6868
color-border-destructive-darker:
69-
value: "{!palette-red-80}"
69+
value: "{!palette-red-70}"
7070
comment: Destructive hover border color
7171
color-border-destructive-dark:
72-
value: "{!palette-red-70}"
72+
value: "{!palette-red-60}"
7373
comment: Destructive focus border color
7474
color-border-destructive:
75-
value: "{!palette-red-60}"
75+
value: "{!palette-red-50}"
7676
comment: Destructive border color
7777
color-border-destructive-light:
7878
value: "{!palette-red-40}"

packages/paste-design-tokens/tokens/themes/sendgrid/global/palette-color.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ props:
3737
value: "{!palette-gray-100}"
3838
comment: "Gray Color 10"
3939
color-brand:
40-
value: "{!curious-blue}"
41-
comment: "Default branding color"
40+
value: "{!palette-gray-100}"
41+
comment: "SendGrid product dark gray"
4242
color-brand-highlight:
43-
value: "{!san-juan}"
44-
comment: "SendGrid brand slate"
43+
value: "{!palette-blue-50}"
44+
comment: "SendGrid product blue"

packages/paste-design-tokens/tokens/themes/sendgrid/global/text-color.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ props:
2525

2626
# links
2727
color-text-link:
28-
value: "{!palette-blue-60}"
28+
value: "{!palette-blue-50}"
2929
comment: Link text
3030
color-text-link-light:
3131
value: "{!palette-blue-40}"
@@ -37,16 +37,16 @@ props:
3737
value: "{!palette-blue-80}"
3838
comment: Darker shade of link text to be used in interactions
3939
color-text-link-destructive:
40-
value: "{!palette-red-60}"
40+
value: "{!palette-red-50}"
4141
comment: Destructive link text
4242
color-text-link-destructive-light:
4343
value: "{!palette-red-40}"
4444
comment: Light shade of destructive link text to be used in interactions
4545
color-text-link-destructive-dark:
46-
value: "{!palette-red-70}"
46+
value: "{!palette-red-60}"
4747
comment: Dark shade of destructive link text to be used in interactions
4848
color-text-link-destructive-darker:
49-
value: "{!palette-red-80}"
49+
value: "{!palette-red-70}"
5050
comment: Darker shade of destructive link text to be used in interactions
5151

5252
#status

packages/paste-theme/__tests__/themeProvider.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('Theme.Provider', () => {
3131
<ThemeConsumerExampleTextColor />
3232
</Theme.Provider>
3333
);
34-
expect(wrapper.find('p').text()).toBe('Color: #003adb');
34+
expect(wrapper.find('p').text()).toBe('Color: #3368fa');
3535
});
3636

3737
it('should rely on the default breakpoints set on the theme object', () => {

0 commit comments

Comments
 (0)