No description
Find a file
Philipp Spiess 4f18f9099a
Add legacy type exports to tailwindcss/plugin export (#16505)
Closes #16209

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

```ts
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: 

<img width="1784" alt="Screenshot 2025-02-13 at 14 50 48"
src="https://github.com/user-attachments/assets/27c04666-0106-414d-ba25-1a853f9d53d1"
/>
2025-02-13 15:52:55 +01:00
.github Revert: Only expose used CSS variables (#16403) 2025-02-10 13:26:13 +01:00
crates Prepare v4.0.6 (#16407) 2025-02-10 14:09:00 +01:00
integrations Revert: Only expose used CSS variables (#16403) 2025-02-10 13:26:13 +01:00
packages Add legacy type exports to tailwindcss/plugin export (#16505) 2025-02-13 15:52:55 +01:00
patches Upgrade @parcel/watcher to 2.5.1 (#16248) 2025-02-04 15:14:52 +01:00
playgrounds Update @types/react 19.0.7 → 19.0.8 (patch) (#16423) 2025-02-11 11:26:30 +01:00
scripts Prepare v4.0.1 release (#16018) 2025-01-29 14:14:35 -05:00
.gitignore Add test.debug to integration tests (#14133) 2024-08-08 12:02:19 +02:00
.npmrc introduce v4 codebase 2024-03-05 14:29:15 +01:00
.prettierignore Hoist oxide/crates to just crates (#13333) 2024-03-23 09:00:48 -04:00
Cargo.lock Auto source detection improvements (#14820) 2024-10-29 20:33:34 +00:00
Cargo.toml Hoist oxide/crates to just crates (#13333) 2024-03-23 09:00:48 -04:00
CHANGELOG.md Add legacy type exports to tailwindcss/plugin export (#16505) 2025-02-13 15:52:55 +01:00
LICENSE Add README, LICENSE, and CONTRIBUTING (#13088) 2024-03-05 14:45:39 -05:00
package.json Bump and pin prettier (#16382) 2025-02-10 10:54:45 +01:00
pnpm-lock.yaml Update @types/bun 1.1.16 → 1.2.2 (minor) (#16444) 2025-02-12 12:17:07 +01:00
pnpm-workspace.yaml Bump and pin prettier (#16382) 2025-02-10 10:54:45 +01:00
README.md Copy README file to every package (#13096) 2024-03-06 08:49:31 -05:00
rust-toolchain.toml Bring back rust-toolchain.toml (#14585) 2024-10-03 14:37:24 +00:00
turbo.json Revert: Only expose used CSS variables (#16403) 2025-02-10 13:26:13 +01:00
vitest.workspace.ts introduce v4 codebase 2024-03-05 14:29:15 +01:00

Tailwind CSS

A utility-first CSS framework for rapidly building custom user interfaces.

Build Status Total Downloads Latest Release License


Documentation

For full documentation, visit tailwindcss.com.

Community

For help, discussion about best practices, or any other conversation that would benefit from being searchable:

Discuss Tailwind CSS on GitHub

For chatting with others using the framework:

Join the Tailwind CSS Discord Server

Contributing

If you're interested in contributing to Tailwind CSS, please read our contributing docs before submitting a pull request.