Skip to content

Commit 4af47fb

Browse files
authored
Fix hues in achromatic theme colors to be none (#20314)
1 parent 5835691 commit 4af47fb

4 files changed

Lines changed: 38 additions & 37 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
- Fix parsing selectors like `[data-foo]div` as one selector instead of two ([#20303](https://github.com/tailwindlabs/tailwindcss/pull/20303))
1818
- Fix stale `@tailwindcss/postcss` output when changed input CSS is passed from a preprocessor like Sass without updating the input file on disk ([#20310](https://github.com/tailwindlabs/tailwindcss/pull/20310))
1919
- Ensure CSS nesting is handled even when Lightning CSS isn't run, like in `@tailwindcss/browser` and Tailwind Play ([#20124](https://github.com/tailwindlabs/tailwindcss/pull/20124))
20+
- Prevent achromatic theme colors from shifting hue in `color-mix(…)` with polar color spaces like `oklch` ([#19830](https://github.com/tailwindlabs/tailwindcss/issues/19830))
2021

2122
## [4.3.2] - 2026-06-26
2223

‎integrations/upgrade/js-config.test.ts‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -594,17 +594,17 @@ test(
594594
@import 'tailwindcss';
595595
596596
@theme {
597-
--color-gray-50: oklch(98.5% 0 0);
598-
--color-gray-100: oklch(97% 0 0);
599-
--color-gray-200: oklch(92.2% 0 0);
600-
--color-gray-300: oklch(87% 0 0);
601-
--color-gray-400: oklch(70.8% 0 0);
602-
--color-gray-500: oklch(55.6% 0 0);
603-
--color-gray-600: oklch(43.9% 0 0);
604-
--color-gray-700: oklch(37.1% 0 0);
605-
--color-gray-800: oklch(26.9% 0 0);
606-
--color-gray-900: oklch(20.5% 0 0);
607-
--color-gray-950: oklch(14.5% 0 0);
597+
--color-gray-50: oklch(98.5% 0 none);
598+
--color-gray-100: oklch(97% 0 none);
599+
--color-gray-200: oklch(92.2% 0 none);
600+
--color-gray-300: oklch(87% 0 none);
601+
--color-gray-400: oklch(70.8% 0 none);
602+
--color-gray-500: oklch(55.6% 0 none);
603+
--color-gray-600: oklch(43.9% 0 none);
604+
--color-gray-700: oklch(37.1% 0 none);
605+
--color-gray-800: oklch(26.9% 0 none);
606+
--color-gray-900: oklch(20.5% 0 none);
607+
--color-gray-950: oklch(14.5% 0 none);
608608
}
609609
610610
/*

‎packages/tailwindcss/src/compat/colors.ts‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default {
3131
'950': 'oklch(13% 0.028 261.692)',
3232
},
3333
zinc: {
34-
'50': 'oklch(98.5% 0 0)',
34+
'50': 'oklch(98.5% 0 none)',
3535
'100': 'oklch(96.7% 0.001 286.375)',
3636
'200': 'oklch(92% 0.004 286.32)',
3737
'300': 'oklch(87.1% 0.006 286.286)',
@@ -44,17 +44,17 @@ export default {
4444
'950': 'oklch(14.1% 0.005 285.823)',
4545
},
4646
neutral: {
47-
'50': 'oklch(98.5% 0 0)',
48-
'100': 'oklch(97% 0 0)',
49-
'200': 'oklch(92.2% 0 0)',
50-
'300': 'oklch(87% 0 0)',
51-
'400': 'oklch(70.8% 0 0)',
52-
'500': 'oklch(55.6% 0 0)',
53-
'600': 'oklch(43.9% 0 0)',
54-
'700': 'oklch(37.1% 0 0)',
55-
'800': 'oklch(26.9% 0 0)',
56-
'900': 'oklch(20.5% 0 0)',
57-
'950': 'oklch(14.5% 0 0)',
47+
'50': 'oklch(98.5% 0 none)',
48+
'100': 'oklch(97% 0 none)',
49+
'200': 'oklch(92.2% 0 none)',
50+
'300': 'oklch(87% 0 none)',
51+
'400': 'oklch(70.8% 0 none)',
52+
'500': 'oklch(55.6% 0 none)',
53+
'600': 'oklch(43.9% 0 none)',
54+
'700': 'oklch(37.1% 0 none)',
55+
'800': 'oklch(26.9% 0 none)',
56+
'900': 'oklch(20.5% 0 none)',
57+
'950': 'oklch(14.5% 0 none)',
5858
},
5959
stone: {
6060
'50': 'oklch(98.5% 0.001 106.423)',
@@ -70,7 +70,7 @@ export default {
7070
'950': 'oklch(14.7% 0.004 49.25)',
7171
},
7272
mauve: {
73-
'50': 'oklch(98.5% 0 0)',
73+
'50': 'oklch(98.5% 0 none)',
7474
'100': 'oklch(96% 0.003 325.6)',
7575
'200': 'oklch(92.2% 0.005 325.62)',
7676
'300': 'oklch(86.5% 0.012 325.68)',

‎packages/tailwindcss/theme.css‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
--color-gray-900: oklch(21% 0.034 264.665);
236236
--color-gray-950: oklch(13% 0.028 261.692);
237237

238-
--color-zinc-50: oklch(98.5% 0 0);
238+
--color-zinc-50: oklch(98.5% 0 none);
239239
--color-zinc-100: oklch(96.7% 0.001 286.375);
240240
--color-zinc-200: oklch(92% 0.004 286.32);
241241
--color-zinc-300: oklch(87.1% 0.006 286.286);
@@ -247,17 +247,17 @@
247247
--color-zinc-900: oklch(21% 0.006 285.885);
248248
--color-zinc-950: oklch(14.1% 0.005 285.823);
249249

250-
--color-neutral-50: oklch(98.5% 0 0);
251-
--color-neutral-100: oklch(97% 0 0);
252-
--color-neutral-200: oklch(92.2% 0 0);
253-
--color-neutral-300: oklch(87% 0 0);
254-
--color-neutral-400: oklch(70.8% 0 0);
255-
--color-neutral-500: oklch(55.6% 0 0);
256-
--color-neutral-600: oklch(43.9% 0 0);
257-
--color-neutral-700: oklch(37.1% 0 0);
258-
--color-neutral-800: oklch(26.9% 0 0);
259-
--color-neutral-900: oklch(20.5% 0 0);
260-
--color-neutral-950: oklch(14.5% 0 0);
250+
--color-neutral-50: oklch(98.5% 0 none);
251+
--color-neutral-100: oklch(97% 0 none);
252+
--color-neutral-200: oklch(92.2% 0 none);
253+
--color-neutral-300: oklch(87% 0 none);
254+
--color-neutral-400: oklch(70.8% 0 none);
255+
--color-neutral-500: oklch(55.6% 0 none);
256+
--color-neutral-600: oklch(43.9% 0 none);
257+
--color-neutral-700: oklch(37.1% 0 none);
258+
--color-neutral-800: oklch(26.9% 0 none);
259+
--color-neutral-900: oklch(20.5% 0 none);
260+
--color-neutral-950: oklch(14.5% 0 none);
261261

262262
--color-stone-50: oklch(98.5% 0.001 106.423);
263263
--color-stone-100: oklch(97% 0.001 106.424);
@@ -271,7 +271,7 @@
271271
--color-stone-900: oklch(21.6% 0.006 56.043);
272272
--color-stone-950: oklch(14.7% 0.004 49.25);
273273

274-
--color-mauve-50: oklch(98.5% 0 0);
274+
--color-mauve-50: oklch(98.5% 0 none);
275275
--color-mauve-100: oklch(96% 0.003 325.6);
276276
--color-mauve-200: oklch(92.2% 0.005 325.62);
277277
--color-mauve-300: oklch(86.5% 0.012 325.68);

0 commit comments

Comments
 (0)