From 4b5ab1ae97e167d7d41fd1729565760827f47119 Mon Sep 17 00:00:00 2001 From: Quentin Date: Fri, 9 Dec 2022 16:37:42 +0100 Subject: [PATCH] Add `data` key to theme types (#10023) * Add "data" type in tailwind.config * Update changelog Co-authored-by: Jordan Pittman --- CHANGELOG.md | 1 + stubs/defaultConfig.stub.js | 1 + types/config.d.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9138c16e2..415a61da0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/stubs/defaultConfig.stub.js b/stubs/defaultConfig.stub.js index 91c2ab186..4aaca4e1d 100644 --- a/stubs/defaultConfig.stub.js +++ b/stubs/defaultConfig.stub.js @@ -816,6 +816,7 @@ module.exports = { 2: '2', }, supports: {}, + data: {}, textColor: ({ theme }) => theme('colors'), textDecorationColor: ({ theme }) => theme('colors'), textDecorationThickness: { diff --git a/types/config.d.ts b/types/config.d.ts index b4b24a4a0..e54530345 100644 --- a/types/config.d.ts +++ b/types/config.d.ts @@ -85,6 +85,7 @@ interface ThemeConfig { // Responsiveness screens: ResolvableTo supports: ResolvableTo> + data: ResolvableTo> // Reusable base configs colors: ResolvableTo