tailwindcss/packages/tailwindcss
Philipp Spiess f5499aac95
Fix issues with the CSS theme() function (#14262)
While working on #14257, we noticed two issues with the CSS `theme()`
function:

1. In V3 it's possible to set arrays inside the theme object. An example
for this is the default font families as defined here:
https://github.com/tailwindlabs/tailwindcss/blob/main/stubs/config.full.js#L303-L311.
We now properly join these arrays that are not tuples.
2. We noticed that in the case where there are no modifiers, the
fallback values for the CSS `theme()` function had the first word
removed. A regression test for this was added.
2024-08-26 18:55:27 +02:00
..
src Fix issues with the CSS theme() function (#14262) 2024-08-26 18:55:27 +02:00
tests Improve Oxide scanner API (#14187) 2024-08-16 15:05:42 +02:00
index.css introduce v4 codebase 2024-03-05 14:29:15 +01:00
package.json Prepare v4.0.0-alpha.20 (#14244) 2024-08-23 15:51:53 +02:00
playwright.config.ts Use initial for @property fallbacks instead of (#13949) 2024-07-04 11:20:05 -04:00
preflight.css Remove cursor override for :disabled buttons (#14061) 2024-07-29 10:10:15 -04:00
README.md Copy README file to every package (#13096) 2024-03-06 08:49:31 -05:00
theme.css Add missing utilities that exist in v3 (#13971) 2024-07-10 16:05:16 +02:00
tsconfig.json introduce v4 codebase 2024-03-05 14:29:15 +01:00
tsup.config.ts Improve compatibility with @tailwindcss/typography and @tailwindcss/forms (#14221) 2024-08-22 08:06:21 -04:00
utilities.css introduce v4 codebase 2024-03-05 14:29:15 +01:00
vitest.config.ts Add integration test setup and tests for the Vite integration (#14089) 2024-08-02 11:50:49 +02: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.