Skip to content

Commit a8adf02

Browse files
fix(tokens): correct text-kumo-subtle dark mode value (#382)
1 parent 27bcd59 commit a8adf02

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cloudflare/kumo": patch
3+
---
4+
5+
fix(tokens): correct text-kumo-subtle dark mode value to provide visible contrast

packages/kumo/scripts/theme-generator/config.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const THEME_CONFIG: ThemeConfig = {
5353
theme: {
5454
kumo: {
5555
light: "var(--color-neutral-500, oklch(55.6% 0 0))",
56-
dark: "var(--color-kumo-neutral-50, oklch(97.5% 0 0))",
56+
dark: "var(--color-neutral-400, oklch(70.8% 0 0))",
5757
},
5858
},
5959
},
@@ -166,7 +166,8 @@ export const THEME_CONFIG: ThemeConfig = {
166166
},
167167
"kumo-badge-inverted": {
168168
newName: "",
169-
description: "Text color for inverted badge (white in light, black in dark)",
169+
description:
170+
"Text color for inverted badge (white in light, black in dark)",
170171
theme: {
171172
kumo: {
172173
light: "var(--color-white, #fff)",
@@ -194,7 +195,7 @@ export const THEME_CONFIG: ThemeConfig = {
194195
dark: "#5b697c",
195196
},
196197
},
197-
},
198+
},
198199
"kumo-elevated": {
199200
newName: "",
200201
theme: {
@@ -554,7 +555,8 @@ export const THEME_CONFIG: ThemeConfig = {
554555
// Inverted
555556
"kumo-badge-inverted": {
556557
newName: "",
557-
description: "Inverted badge background (near-black in light, white in dark)",
558+
description:
559+
"Inverted badge background (near-black in light, white in dark)",
558560
theme: {
559561
kumo: {
560562
light: "var(--color-neutral-950, oklch(14.5% 0 0))",

packages/kumo/src/styles/theme-kumo.css

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

2626
--text-color-kumo-subtle: light-dark(
2727
var(--color-neutral-500, oklch(55.6% 0 0)),
28-
var(--color-kumo-neutral-50, oklch(97.5% 0 0))
28+
var(--color-neutral-400, oklch(70.8% 0 0))
2929
);
3030

3131
--text-color-kumo-inactive: light-dark(
@@ -351,7 +351,7 @@
351351
--text-color-kumo-default: var(--color-neutral-100, oklch(97% 0 0));
352352
--text-color-kumo-inverse: var(--color-neutral-900, oklch(20.5% 0 0));
353353
--text-color-kumo-strong: var(--color-neutral-400, oklch(70.8% 0 0));
354-
--text-color-kumo-subtle: var(--color-kumo-neutral-50, oklch(97.5% 0 0));
354+
--text-color-kumo-subtle: var(--color-neutral-400, oklch(70.8% 0 0));
355355
--text-color-kumo-inactive: var(--color-neutral-600, oklch(70.8% 0 0));
356356
--text-color-kumo-placeholder: var(--color-neutral-500, oklch(55.6% 0 0));
357357
--text-color-kumo-brand: #f6821f;

0 commit comments

Comments
 (0)