Skip to content

Commit e1c74ca

Browse files
authored
Deprecate shadow-inner utility (#14933)
This PR deprecates the `shadow-inner` value in favor of `inset-shadow-sm` which does the same thing but is composable with other outer shadows. It's still included in the default theme but is registered as `inline reference` and doesn't add any CSS variables to the output. --------- Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
1 parent 1dbd99d commit e1c74ca

File tree

4 files changed

+2
-3
lines changed

4 files changed

+2
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6464
- Revert specificity of `*` variant to match v3 behavior ([#14920](https://github.com/tailwindlabs/tailwindcss/pull/14920))
6565
- Replace `outline-none` with `outline-hidden`, add new simplified `outline-none` utility ([#14926](https://github.com/tailwindlabs/tailwindcss/pull/14926))
6666
- Revert adding borders by default to form inputs ([#14929](https://github.com/tailwindlabs/tailwindcss/pull/14929))
67+
- Deprecate `shadow-inner` utility ([#14933](https://github.com/tailwindlabs/tailwindcss/pull/14933))
6768

6869
## [4.0.0-alpha.31] - 2024-10-29
6970

packages/@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ exports[`\`@import 'tailwindcss'\` is replaced with the generated CSS 1`] = `
286286
--shadow-lg: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
287287
--shadow-xl: 0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;
288288
--shadow-2xl: 0 25px 50px -12px #00000040;
289-
--shadow-inner: inset 0 2px 4px 0 #0000000d;
290289
--inset-shadow-2xs: inset 0 1px #0000000d;
291290
--inset-shadow-xs: inset 0 1px 1px #0000000d;
292291
--inset-shadow-sm: inset 0 2px 4px #0000000d;

packages/tailwindcss/src/__snapshots__/index.test.ts.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,6 @@ exports[`compiling CSS > \`@tailwind utilities\` is replaced by utilities using
285285
--shadow-lg: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
286286
--shadow-xl: 0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;
287287
--shadow-2xl: 0 25px 50px -12px #00000040;
288-
--shadow-inner: inset 0 2px 4px 0 #0000000d;
289288
--inset-shadow-2xs: inset 0 1px #0000000d;
290289
--inset-shadow-xs: inset 0 1px 1px #0000000d;
291290
--inset-shadow-sm: inset 0 2px 4px #0000000d;

packages/tailwindcss/theme.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@
317317
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
318318
--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
319319
--shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
320-
--shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
321320

322321
/* Inset shadows */
323322
--inset-shadow-2xs: inset 0 1px rgb(0 0 0 / 0.05);
@@ -463,6 +462,7 @@
463462
@theme default inline reference {
464463
--blur: 8px;
465464
--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
465+
--shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
466466
--drop-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.06);
467467
--radius: 0.25rem;
468468
}

0 commit comments

Comments
 (0)