From 90103eec3b0876c0556b9d79c85bba91212f8441 Mon Sep 17 00:00:00 2001 From: Bart Nagel Date: Fri, 1 Nov 2024 15:21:37 -0700 Subject: [PATCH 1/2] Fix config types for boxShadow `boxShadow` accepts multiple shadows just like `dropShadow` does. --- CHANGELOG.md | 1 + types/config.d.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 93ab2b30ceb1..56a48c01374a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Bump versions for security vulnerabilities ([#14697](https://github.com/tailwindlabs/tailwindcss/pull/14697)) +- Fix `boxShadow` configuration TS types ([#14856](https://github.com/tailwindlabs/tailwindcss/pull/14856)) ## [3.4.14] - 2024-10-15 diff --git a/types/config.d.ts b/types/config.d.ts index 80b58d07028a..2c95a6dec67f 100644 --- a/types/config.d.ts +++ b/types/config.d.ts @@ -207,7 +207,7 @@ export interface ThemeConfig { caretColor: ThemeConfig['colors'] accentColor: ThemeConfig['colors'] opacity: ResolvableTo - boxShadow: ResolvableTo + boxShadow: ResolvableTo> boxShadowColor: ThemeConfig['colors'] outlineWidth: ResolvableTo outlineOffset: ResolvableTo From ff6dcfacfa8d9d0682dec509a8e9691ed07ac761 Mon Sep 17 00:00:00 2001 From: Philipp Spiess Date: Thu, 7 Nov 2024 12:21:42 +0100 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 56a48c01374a..069428f6fb44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Bump versions for security vulnerabilities ([#14697](https://github.com/tailwindlabs/tailwindcss/pull/14697)) -- Fix `boxShadow` configuration TS types ([#14856](https://github.com/tailwindlabs/tailwindcss/pull/14856)) +- Ensure the TypeScript types for the `boxShadow` theme configuration allows arrays ([#14856](https://github.com/tailwindlabs/tailwindcss/pull/14856)) ## [3.4.14] - 2024-10-15