Skip to content

Commit c4cb67f

Browse files
committed
Handle legacy key behavior in theme-driven suggestions for @utility
1 parent 900a350 commit c4cb67f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/tailwindcss/src/utilities.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6060,7 +6060,11 @@ export function createCssUtility(node: AtRule) {
60606060

60616061
// Suggest theme values. E.g.: `--value(--color-*)`
60626062
for (let value of designSystem.theme.keysInNamespaces(themeKeys)) {
6063-
target.push(value)
6063+
target.push(
6064+
value.replace(LEGACY_NUMERIC_KEY, (_, a, b) => {
6065+
return `${a}.${b}`
6066+
}),
6067+
)
60646068
}
60656069
}
60666070

0 commit comments

Comments
 (0)