Skip to content

Commit 3109ee2

Browse files
committed
refactor: consolidate theme colors
1 parent 6f638d1 commit 3109ee2

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

packages/components/text/src/styles/_variables.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $text-types: (
2424
),
2525
soft: (
2626
default: (
27-
color: #718096,
27+
color: get-color(neutral-500),
2828
),
2929
hover: (),
3030
),
@@ -41,7 +41,7 @@ $text-types: (
4141
font-size: 24px,
4242
font-weight: 500,
4343
line-height: 36px,
44-
color: #1a202c,
44+
color: get-color(neutral-800),
4545
),
4646
hover: (),
4747
),
@@ -84,18 +84,18 @@ $text-variations: (
8484
),
8585
link: (
8686
default: (
87-
color: #0052cc,
87+
color: get-color(highlight-alt),
8888
),
8989
hover: (
90-
color: #003e99,
90+
color: get-color(highlight-alt-dark),
9191
),
9292
),
9393
link_hidden: (
9494
default: (
9595
text-decoration: none,
9696
),
9797
hover: (
98-
color: #003e99,
98+
color: get-color(highlight-alt-dark),
9999
text-decoration: underline,
100100
),
101101
),

packages/providers/theme/src/styles/_theme-type.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ $theme-type: (
55
"highlight-primary-light",
66
"highlight-primary",
77
"highlight-primary-dark",
8+
"highlight-alt",
9+
"highlight-alt-dark",
810
"neutral-0",
911
"neutral-100",
1012
"neutral-200",

packages/providers/theme/src/themes/default.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ export const defaultTheme: Theme = {
99
"highlight-primary-light": "hsl(185deg 50% 85%)",
1010
"highlight-primary": "hsl(185deg 50% 55%)",
1111
"highlight-primary-dark": "hsl(185deg 50% 35%)",
12+
"highlight-alt": "#0052cc",
13+
"highlight-alt-dark": "#003e99",
1214
"neutral-0": "#fff",
1315
"neutral-100": "#edf2f7",
1416
"neutral-200": "#DBDEEB",

packages/providers/theme/src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ export interface Theme {
44
"highlight-primary-light": string;
55
"highlight-primary": string;
66
"highlight-primary-dark": string;
7+
"highlight-alt": string;
8+
"highlight-alt-dark": string;
79
"neutral-0": string;
810
"neutral-100": string;
911
"neutral-200": string;

0 commit comments

Comments
 (0)