Skip to content

Commit 1dbd99d

Browse files
authored
Reintroduce deprecated theme values (#14932)
This PR reintroduces the `blur`, `shadow`, `drop-shadow`, and `rounded` utilities that were removed in #14849, just to preserve backward compatibility as much as possible. These values are still considered deprecated, and we register them as `inline reference` with the theme to ensure they don't produce any CSS variables in output: ```css /* Deprecated */ @theme default inline reference { --blur: 8px; --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); --drop-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.06); --radius: 0.25rem; } ``` These values won't be included in the documentation, and in the future we'll add an option to explicitly register things as `deprecated` so that they don't appear as completions in IntelliSense either. Co-authored-by: Adam Wathan <[email protected]>
1 parent 5da6968 commit 1dbd99d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/tailwindcss/theme.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,3 +458,11 @@
458458
}
459459
}
460460
}
461+
462+
/* Deprecated */
463+
@theme default inline reference {
464+
--blur: 8px;
465+
--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
466+
--drop-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.06);
467+
--radius: 0.25rem;
468+
}

0 commit comments

Comments
 (0)