From faf98b364a70235d5fe00643dcb5ba067b312a94 Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Thu, 22 Aug 2024 17:05:11 -0400 Subject: [PATCH] Upgrade merged theme keys from `colors.*` to `color-*` --- packages/tailwindcss/src/compat/merge-into-theme.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/tailwindcss/src/compat/merge-into-theme.ts b/packages/tailwindcss/src/compat/merge-into-theme.ts index 8929db6bf..479ff2d05 100644 --- a/packages/tailwindcss/src/compat/merge-into-theme.ts +++ b/packages/tailwindcss/src/compat/merge-into-theme.ts @@ -42,6 +42,10 @@ function themeableValues(config: ResolvedConfig['theme']): [string[], unknown][] } function keyPathToCssProperty(path: string[]) { + if (path[0] === 'colors') { + path[0] = 'color' + } + return ( path // [1] should move into the nested object tuple. To create the CSS variable