Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add support for `tailwindcss/colors` and `tailwindcss/defaultTheme` exports for use with plugins ([#14221](https://github.com/tailwindlabs/tailwindcss/pull/14221))
- Add support for the `@tailwindcss/typography` and `@tailwindcss/forms` plugins ([#14221](https://github.com/tailwindlabs/tailwindcss/pull/14221))
- Add support for the `theme()` function in CSS and class names ([#14177](https://github.com/tailwindlabs/tailwindcss/pull/14177))
- Add support for matching multiple utility definitions for one candidate ([#14231](https://github.com/tailwindlabs/tailwindcss/pull/14231))

### Fixed

Expand Down
40 changes: 38 additions & 2 deletions integrations/cli/plugins.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { candidate, css, html, json, test } from '../utils'

test(
'builds the typography plugin utilities',
'builds the `@tailwindcss/typography` plugin utilities',
{
fs: {
'package.json': json`
Expand Down Expand Up @@ -40,7 +40,7 @@ test(
)

test(
'builds the forms plugin utilities',
'builds the `@tailwindcss/forms` plugin utilities',
{
fs: {
'package.json': json`
Expand Down Expand Up @@ -76,3 +76,39 @@ test(
])
},
)

test(
'builds the `tailwindcss-animate` plugin utilities',
{
fs: {
'package.json': json`
{
"dependencies": {
"tailwindcss-animate": "^1.0.7",
"tailwindcss": "workspace:^",
"@tailwindcss/cli": "workspace:^"
}
}
`,
'index.html': html`
<div class="animate-in fade-in zoom-in duration-350"></div>
`,
'src/index.css': css`
@import 'tailwindcss';
@plugin 'tailwindcss-animate';
`,
},
},
async ({ fs, exec }) => {
await exec('pnpm tailwindcss --input src/index.css --output dist/out.css')

await fs.expectFileToContain('dist/out.css', [
candidate`animate-in`,
candidate`fade-in`,
candidate`zoom-in`,
candidate`duration-350`,
'transition-duration: 350ms',
'animation-duration: 350ms',
])
},
)
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,6 @@ exports[`getClassList 1`] = `
"bg-gradient-to-tl",
"bg-gradient-to-tr",
"bg-inherit",
"bg-inherit",
"bg-left",
"bg-left-bottom",
"bg-left-top",
Expand Down Expand Up @@ -517,7 +516,6 @@ exports[`getClassList 1`] = `
"bg-space",
"bg-top",
"bg-transparent",
"bg-transparent",
"block",
"blur-none",
"border",
Expand Down
2 changes: 1 addition & 1 deletion packages/tailwindcss/src/candidate.bench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ const designSystem = buildDesignSystem(new Theme())

bench('parseCandidate', () => {
for (let candidate of candidates) {
parseCandidate(candidate, designSystem)
Array.from(parseCandidate(candidate, designSystem))
}
})
Loading