tailwindcss/integrations/postcss
Adam Wathan 7175605c61
Remove fallbacks from theme var(...) calls (#14881)
This PR changes how we render `var(...)` calls for theme values,
removing the fallback values we were previously including.

```diff
  .text-white {
-   color: var(--color-white, #fff);
+   color: var(--color-white);
  }
```

We previously included the fallbacks only so you could see the value in
dev tools but this feels like a bad reason to bloat the CSS. I'd rather
just convince the Chrome team to surface this stuff better in dev tools
in the first place.

---------

Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
2024-11-05 15:44:21 -05:00
..
config.test.ts Support loading config files via @config (#14239) 2024-09-02 18:03:16 +02:00
core-as-postcss-plugin.test.ts Throw a useful error when tailwindcss is used as a PostCSS plugin (#14378) 2024-09-11 17:02:24 +02:00
index.test.ts Remove fallbacks from theme var(...) calls (#14881) 2024-11-05 15:44:21 -05:00
multi-root.test.ts Add integration tests for multi-root builds (#14564) 2024-10-01 17:00:20 +02:00
next.test.ts Integration tests: Move all file writes into retry block (#14350) 2024-09-06 10:48:49 +02:00
plugins.test.ts Resolve third-party plugins with exports in their package.json (#14775) 2024-10-24 11:34:19 -04:00