Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add legacy type exports to tailwindcss/plugin export #16505

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

philipp-spiess
Copy link
Member

@philipp-spiess philipp-spiess commented Feb 13, 2025

Closes #16209

This PR exposes the following types that were accessible via tailwindcss/types/config in v3 now via the tailwindcss/plugin export:

import type {Cofig, PluginAPI, PluginCreator, PluginsConfig, ThemeConfig } from 'tailwindcss/plugin'

Note that these types will not be the same as the v3 and just approximations, however it should be enough to upgrade plugins to work with v4.

Test plan

Tested in a standalone project importing a dev build of tailwindcss:

Screenshot 2025-02-13 at 14 50 48

@philipp-spiess philipp-spiess requested a review from a team as a code owner February 13, 2025 13:53
@philipp-spiess philipp-spiess force-pushed the fix/add-legacy-type-exports-to-plugin-module branch from 23ec7c0 to 2bf8975 Compare February 13, 2025 13:54
@philipp-spiess philipp-spiess merged commit 4f18f90 into main Feb 13, 2025
5 checks passed
@philipp-spiess philipp-spiess deleted the fix/add-legacy-type-exports-to-plugin-module branch February 13, 2025 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Types from tailwindcss/types/config are not available in v4
2 participants