From de9f7ad66a8aed79de51efd29594cca0b2155ff5 Mon Sep 17 00:00:00 2001 From: Philipp Spiess Date: Mon, 9 Dec 2024 12:00:06 +0100 Subject: [PATCH 1/2] Suggest `shadow-none` --- .../tailwindcss/src/__snapshots__/intellisense.test.ts.snap | 1 + packages/tailwindcss/src/utilities.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/packages/tailwindcss/src/__snapshots__/intellisense.test.ts.snap b/packages/tailwindcss/src/__snapshots__/intellisense.test.ts.snap index abaa9e075a3b..3c20b11d0057 100644 --- a/packages/tailwindcss/src/__snapshots__/intellisense.test.ts.snap +++ b/packages/tailwindcss/src/__snapshots__/intellisense.test.ts.snap @@ -6654,6 +6654,7 @@ exports[`getClassList 1`] = ` "shadow-inherit/95", "shadow-inherit/100", "shadow-initial", + "shadow-none", "shadow-transparent", "shadow-transparent/0", "shadow-transparent/5", diff --git a/packages/tailwindcss/src/utilities.ts b/packages/tailwindcss/src/utilities.ts index 427068c44d08..41226704c28e 100644 --- a/packages/tailwindcss/src/utilities.ts +++ b/packages/tailwindcss/src/utilities.ts @@ -4230,6 +4230,9 @@ export function createUtilities(theme: Theme) { valueThemeKeys: ['--shadow'], hasDefaultValue: true, }, + { + values: ['none'], + } ]) staticUtility('inset-shadow-initial', [ From 3db183e9d029bacdc9a83c50a32e92e850ed2b23 Mon Sep 17 00:00:00 2001 From: Philipp Spiess Date: Mon, 9 Dec 2024 12:01:12 +0100 Subject: [PATCH 2/2] Add changelog --- CHANGELOG.md | 1 + packages/tailwindcss/src/utilities.ts | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e50df2a35a2..139087650e9e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fix dependency related warnings when using `@tailwindcss/postcss` on Windows ([#15321](https://github.com/tailwindlabs/tailwindcss/pull/15321)) - Skip creating a compiler for CSS files that should not be processed ([#15340](https://github.com/tailwindlabs/tailwindcss/pull/15340)) +- Fix missing `shadow-none` suggestion in IntelliSense ([#15342](https://github.com/tailwindlabs/tailwindcss/pull/15342)) ## [4.0.0-beta.6] - 2024-12-06 diff --git a/packages/tailwindcss/src/utilities.ts b/packages/tailwindcss/src/utilities.ts index 41226704c28e..7ae95db6a717 100644 --- a/packages/tailwindcss/src/utilities.ts +++ b/packages/tailwindcss/src/utilities.ts @@ -4226,13 +4226,10 @@ export function createUtilities(theme: Theme) { modifiers: Array.from({ length: 21 }, (_, index) => `${index * 5}`), }, { - values: [], + values: ['none'], valueThemeKeys: ['--shadow'], hasDefaultValue: true, }, - { - values: ['none'], - } ]) staticUtility('inset-shadow-initial', [