From 4de07697bdd7cb99eb4557456a31338c53f45ccc Mon Sep 17 00:00:00 2001 From: Bart Nagel Date: Thu, 7 Nov 2024 03:22:05 -0800 Subject: [PATCH] Fix config types for boxShadow (#14856) `boxShadow` accepts multiple shadows just like `dropShadow` does. This patch fixes the TS typings to reflect that. See demo showing that multiple shadows are supported (complete with it incorrectly complaining that the config is bad) here: https://play.tailwindcss.com/VHqWbbEIrz?file=config --------- Co-authored-by: Philipp Spiess --- 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..069428f6fb44 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)) +- 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 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