Skip to content

Commit 4b5ab1a

Browse files
Add data key to theme types (#10023)
* Add "data" type in tailwind.config * Update changelog Co-authored-by: Jordan Pittman <[email protected]>
1 parent cea0838 commit 4b5ab1a

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2424
- Clip unbalanced brackets in arbitrary values ([#9973](https://github.com/tailwindlabs/tailwindcss/pull/9973))
2525
- Don’t reorder webkit scrollbar pseudo elements ([#9991](https://github.com/tailwindlabs/tailwindcss/pull/9991))
2626
- Deterministic sorting of arbitrary variants ([#10016](https://github.com/tailwindlabs/tailwindcss/pull/10016))
27+
- Add `data` key to theme types ([#10023](https://github.com/tailwindlabs/tailwindcss/pull/10023))
2728

2829
### Changed
2930

stubs/defaultConfig.stub.js

+1
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,7 @@ module.exports = {
816816
2: '2',
817817
},
818818
supports: {},
819+
data: {},
819820
textColor: ({ theme }) => theme('colors'),
820821
textDecorationColor: ({ theme }) => theme('colors'),
821822
textDecorationThickness: {

types/config.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ interface ThemeConfig {
8585
// Responsiveness
8686
screens: ResolvableTo<ScreensConfig>
8787
supports: ResolvableTo<Record<string, string>>
88+
data: ResolvableTo<Record<string, string>>
8889

8990
// Reusable base configs
9091
colors: ResolvableTo<RecursiveKeyValuePair>

0 commit comments

Comments
 (0)