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 <[email protected]>
This commit is contained in:
Bart Nagel
2024-11-07 12:22:05 +01:00
committed by GitHub
co-authored by Philipp Spiess
parent 94f78ce971
commit 014eac8bf4
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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
+1 -1
View File
@@ -207,7 +207,7 @@ export interface ThemeConfig {
caretColor: ThemeConfig['colors']
accentColor: ThemeConfig['colors']
opacity: ResolvableTo<KeyValuePair>
boxShadow: ResolvableTo<KeyValuePair>
boxShadow: ResolvableTo<KeyValuePair<string, string | string[]>>
boxShadowColor: ThemeConfig['colors']
outlineWidth: ResolvableTo<KeyValuePair>
outlineOffset: ResolvableTo<KeyValuePair>