Upgrade merged theme keys from colors.* to color-*

This commit is contained in:
Jordan Pittman 2024-08-22 17:05:11 -04:00 • committed by Philipp Spiess
parent c13d221d58
commit faf98b364a

View file

@ -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