tailwindcss/packages/tailwindcss
Philipp Spiess aaa32e23e2
Allow newlines and tabs in the argument list of the theme() function (#14917)
We noticed an issue that the `theme()` function wourld not properly
parse in CSS if you split the argument list over multiple lines. This is
fixed by treating `\n` and `\t` the same as space:

```css
.custom-font {
  font-family: theme(
    fontFamily.unknown,
    Helvetica Neue,
    Helvetica,
    sans-serif
  );
}
```

## Test plan

Added tests, but also tried it in the Vite example:

<img width="1995" alt="Screenshot 2024-11-08 at 13 46 09"
src="https://github.com/user-attachments/assets/f9bf94b0-3f9b-4334-8911-9190987e2df5">
2024-11-08 10:14:11 -05:00
..
src Allow newlines and tabs in the argument list of the theme() function (#14917) 2024-11-08 10:14:11 -05:00
tests Rename --font-size-* variables to --text-* (#14909) 2024-11-07 14:08:06 -05:00
index.css introduce v4 codebase 2024-03-05 14:29:15 +01:00
package.json Prepare v4.0.0-alpha.31 release (#14823) 2024-10-30 07:53:51 -04:00
playwright.config.ts Only apply hover on devices that support hover (#14500) 2024-09-24 11:43:57 -04:00
preflight.css Prepare preflight for border compatibility (#14745) 2024-10-22 16:18:13 +00:00
README.md Copy README file to every package (#13096) 2024-03-06 08:49:31 -05:00
theme.css Rename --font-size-* variables to --text-* (#14909) 2024-11-07 14:08:06 -05:00
tsconfig.json introduce v4 codebase 2024-03-05 14:29:15 +01:00
tsup.config.ts Throw a useful error when tailwindcss is used as a PostCSS plugin (#14378) 2024-09-11 17:02:24 +02: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.