Skip to content

Commit c5f2c56

Browse files
committed
ensure --color-\*: initial; works
1 parent 24f1ee5 commit c5f2c56

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/tailwindcss/src/theme.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ export class Theme {
4141
) {}
4242

4343
add(key: string, value: string, options = ThemeOptions.NONE): void {
44+
if (key.endsWith('-\\*')) {
45+
key = key.replace(/-\\\*$/, '-*')
46+
}
47+
4448
if (key.endsWith('-*')) {
4549
if (value !== 'initial') {
4650
throw new Error(`Invalid theme value \`${value}\` for namespace \`${key}\``)

0 commit comments

Comments
 (0)