Skip to content

Commit 0f242f0

Browse files
committed
fix(theme): use proper contrast colors
1 parent 6d35faa commit 0f242f0

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

core/src/themes/base/dark.tokens.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const darkTheme: DarkTheme = {
1919
primary: {
2020
bold: {
2121
base: colors.primary,
22-
contrast: '#fff',
22+
contrast: '#000',
2323
foreground: mix(colors.primary, '#000', '4%'),
2424
shade: mix(colors.primary, '#000', '4%'),
2525
tint: mix(colors.primary, '#fff', '12%'),
@@ -35,7 +35,7 @@ export const darkTheme: DarkTheme = {
3535
secondary: {
3636
bold: {
3737
base: colors.secondary,
38-
contrast: '#fff',
38+
contrast: '#000',
3939
foreground: mix(colors.secondary, '#000', '4%'),
4040
shade: mix(colors.secondary, '#000', '4%'),
4141
tint: mix(colors.secondary, '#fff', '12%'),
@@ -51,7 +51,7 @@ export const darkTheme: DarkTheme = {
5151
tertiary: {
5252
bold: {
5353
base: colors.tertiary,
54-
contrast: '#fff',
54+
contrast: '#000',
5555
foreground: mix(colors.tertiary, '#000', '4%'),
5656
shade: mix(colors.tertiary, '#000', '4%'),
5757
tint: mix(colors.tertiary, '#fff', '12%'),
@@ -67,7 +67,7 @@ export const darkTheme: DarkTheme = {
6767
success: {
6868
bold: {
6969
base: colors.success,
70-
contrast: '#fff',
70+
contrast: '#000',
7171
foreground: mix(colors.success, '#000', '4%'),
7272
shade: mix(colors.success, '#000', '4%'),
7373
tint: mix(colors.success, '#fff', '12%'),
@@ -83,7 +83,7 @@ export const darkTheme: DarkTheme = {
8383
warning: {
8484
bold: {
8585
base: colors.warning,
86-
contrast: '#fff',
86+
contrast: '#000',
8787
foreground: mix(colors.warning, '#000', '4%'),
8888
shade: mix(colors.warning, '#000', '4%'),
8989
tint: mix(colors.warning, '#fff', '12%'),
@@ -99,7 +99,7 @@ export const darkTheme: DarkTheme = {
9999
danger: {
100100
bold: {
101101
base: colors.danger,
102-
contrast: '#fff',
102+
contrast: '#000',
103103
foreground: mix(colors.danger, '#000', '4%'),
104104
shade: mix(colors.danger, '#000', '4%'),
105105
tint: mix(colors.danger, '#fff', '12%'),
@@ -115,7 +115,7 @@ export const darkTheme: DarkTheme = {
115115
light: {
116116
bold: {
117117
base: colors.light,
118-
contrast: '#000',
118+
contrast: '#fff',
119119
foreground: mix(colors.light, '#000', '4%'),
120120
shade: mix(colors.light, '#000', '4%'),
121121
tint: mix(colors.light, '#fff', '12%'),
@@ -131,7 +131,7 @@ export const darkTheme: DarkTheme = {
131131
medium: {
132132
bold: {
133133
base: colors.medium,
134-
contrast: '#fff',
134+
contrast: '#000',
135135
foreground: mix(colors.medium, '#000', '4%'),
136136
shade: mix(colors.medium, '#000', '4%'),
137137
tint: mix(colors.medium, '#fff', '12%'),
@@ -147,7 +147,7 @@ export const darkTheme: DarkTheme = {
147147
dark: {
148148
bold: {
149149
base: colors.dark,
150-
contrast: '#fff',
150+
contrast: '#000',
151151
foreground: mix(colors.dark, '#000', '4%'),
152152
shade: mix(colors.dark, '#000', '4%'),
153153
tint: mix(colors.dark, '#fff', '12%'),

core/src/themes/base/light.tokens.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const lightTheme: LightTheme = {
6666
success: {
6767
bold: {
6868
base: colors.success,
69-
contrast: '#fff',
69+
contrast: '#000',
7070
foreground: mix(colors.success, '#000', '12%'),
7171
shade: mix(colors.success, '#000', '12%'),
7272
tint: mix(colors.success, '#fff', '10%'),
@@ -82,7 +82,7 @@ export const lightTheme: LightTheme = {
8282
warning: {
8383
bold: {
8484
base: colors.warning,
85-
contrast: '#fff',
85+
contrast: '#000',
8686
foreground: mix(colors.warning, '#000', '12%'),
8787
shade: mix(colors.warning, '#000', '12%'),
8888
tint: mix(colors.warning, '#fff', '10%'),

0 commit comments

Comments
 (0)