From 3cfdd1c41c76d5e98acea1876db8ea70307f7f7e Mon Sep 17 00:00:00 2001 From: Quentin Date: Thu, 8 Dec 2022 22:30:50 +0100 Subject: [PATCH 1/2] Add "data" type in tailwind.config --- stubs/defaultConfig.stub.js | 1 + types/config.d.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/stubs/defaultConfig.stub.js b/stubs/defaultConfig.stub.js index 91c2ab186003..4aaca4e1d17b 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 b4b24a4a0809..e5453034567f 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 From f473e2924fece9a0287662ae8dae05cf04ec89d3 Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Fri, 9 Dec 2022 10:34:19 -0500 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9138c16e2290..415a61da09d5 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