No description
This PR canonicalizes usages of `calc(var(--spacing)*…)` to `--spacing(…)` when used in arbitrary values. Some examples: | Before | After | | --- | --- | | `pt-[min(20%,calc(var(--spacing)*8))]` | `pt-[min(20%,--spacing(8))]` | | `pt-[min(20%,calc(var(--spacing)*var(--other)))]` | `pt-[min(20%,--spacing(var(--other)))]` | | `pt-[calc(var(--spacing)*8)]` | `pt-8` | | `pt-[calc(var(--spacing)*var(--other))]` | `pt-[--spacing(var(--other))]` | | `[padding-top:min(20%,calc(var(--spacing)*8))]` | `pt-[min(20%,--spacing(8))]` | | `[padding-top:min(20%,calc(var(--spacing)*var(--other)))]` | `pt-[min(20%,--spacing(var(--other)))]` | | `[padding-top:calc(var(--spacing)*8)]` | `pt-8` | | `[padding-top:calc(var(--spacing)*var(--other))]` | `pt-[--spacing(var(--other))]` | ## Test plan 1. Existing tests pass 2. Added new tests |
||
|---|---|---|
| .github | ||
| crates | ||
| integrations | ||
| packages | ||
| patches | ||
| playgrounds | ||
| scripts | ||
| .gitignore | ||
| .prettierignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| CHANGELOG.md | ||
| LICENSE | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| README.md | ||
| rust-toolchain.toml | ||
| turbo.json | ||
| vitest.config.ts | ||
A utility-first CSS framework for rapidly building custom user interfaces.
Documentation
For full documentation, visit tailwindcss.com.
Community
For help, discussion about best practices, or feature ideas:
Discuss Tailwind CSS on GitHub
Contributing
If you're interested in contributing to Tailwind CSS, please read our contributing docs before submitting a pull request.