tailwindcss/packages
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
..
@tailwindcss-cli Fix macOS test flakiness (#14869) 2024-11-04 13:07:25 -05:00
@tailwindcss-node Prepare v4.0.0-alpha.31 release (#14823) 2024-10-30 07:53:51 -04:00
@tailwindcss-postcss Remove fallbacks from theme var(...) calls (#14881) 2024-11-05 15:44:21 -05:00
@tailwindcss-standalone Prepare v4.0.0-alpha.31 release (#14823) 2024-10-30 07:53:51 -04:00
@tailwindcss-upgrade Replace default explicit spacing scale with multiplier system (#14857) 2024-11-05 15:22:50 -05:00
@tailwindcss-vite Support migrating projects with multiple config files (#14863) 2024-11-04 16:52:11 +00:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
tailwindcss Remove fallbacks from theme var(...) calls (#14881) 2024-11-05 15:44:21 -05:00
tsconfig.base.json introduce v4 codebase 2024-03-05 14:29:15 +01:00