mirror of
https://github.com/hanzoai/tailwindcss.git
synced 2026-09-24 17:03:14 +00:00
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:
committed by
GitHub
co-authored by
Philipp Spiess
parent
94f78ce971
commit
014eac8bf4
@@ -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
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user