Add data key to theme types (#10023)
* Add "data" type in tailwind.config * Update changelog Co-authored-by: Jordan Pittman <jordan@cryptica.me>
This commit is contained in:
parent
cea08380dc
commit
4b5ab1ae97
3 changed files with 3 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Clip unbalanced brackets in arbitrary values ([#9973](https://github.com/tailwindlabs/tailwindcss/pull/9973))
|
||||
- Don’t reorder webkit scrollbar pseudo elements ([#9991](https://github.com/tailwindlabs/tailwindcss/pull/9991))
|
||||
- Deterministic sorting of arbitrary variants ([#10016](https://github.com/tailwindlabs/tailwindcss/pull/10016))
|
||||
- Add `data` key to theme types ([#10023](https://github.com/tailwindlabs/tailwindcss/pull/10023))
|
||||
|
||||
### Changed
|
||||
|
||||
|
|
|
|||
|
|
@ -816,6 +816,7 @@ module.exports = {
|
|||
2: '2',
|
||||
},
|
||||
supports: {},
|
||||
data: {},
|
||||
textColor: ({ theme }) => theme('colors'),
|
||||
textDecorationColor: ({ theme }) => theme('colors'),
|
||||
textDecorationThickness: {
|
||||
|
|
|
|||
1
types/config.d.ts
vendored
1
types/config.d.ts
vendored
|
|
@ -85,6 +85,7 @@ interface ThemeConfig {
|
|||
// Responsiveness
|
||||
screens: ResolvableTo<ScreensConfig>
|
||||
supports: ResolvableTo<Record<string, string>>
|
||||
data: ResolvableTo<Record<string, string>>
|
||||
|
||||
// Reusable base configs
|
||||
colors: ResolvableTo<RecursiveKeyValuePair>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue