Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Handle legacy key behavior in theme-driven suggestions for @utility
  • Loading branch information
thecrypticace committed Apr 22, 2025
commit eb2ab15dd16e879dbfd1302c4f5229e082e7ed21
6 changes: 5 additions & 1 deletion packages/tailwindcss/src/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6060,7 +6060,11 @@ export function createCssUtility(node: AtRule) {

// Suggest theme values. E.g.: `--value(--color-*)`
for (let value of designSystem.theme.keysInNamespaces(themeKeys)) {
target.push(value)
target.push(
value.replace(LEGACY_NUMERIC_KEY, (_, a, b) => {
return `${a}.${b}`
}),
)
}
}

Expand Down