tailwindcss/integrations
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
..
cli Remove fallbacks from theme var(...) calls (#14881) 2024-11-05 15:44:21 -05:00
postcss Remove fallbacks from theme var(...) calls (#14881) 2024-11-05 15:44:21 -05:00
upgrade Replace default explicit spacing scale with multiplier system (#14857) 2024-11-05 15:22:50 -05:00
vite Remove fallbacks from theme var(...) calls (#14881) 2024-11-05 15:44:21 -05:00
package.json Add integration test setup and tests for the Vite integration (#14089) 2024-08-02 11:50:49 +02:00
utils.ts Fix macOS test flakiness (#14869) 2024-11-04 13:07:25 -05:00