tailwindcss/integrations/vite
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
..
astro.test.ts Revert "Fix Astro integration test by pinning zod-to-json-schema" (#14792) 2024-10-25 11:31:34 +02:00
config.test.ts Integration tests: Move all file writes into retry block (#14350) 2024-09-06 10:48:49 +02:00
css-modules.test.ts Don't assert on mangled CSS names (#14397) 2024-09-11 17:37:36 +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
nuxt.test.ts Integration tests: Move all file writes into retry block (#14350) 2024-09-06 10:48:49 +02:00
vue.test.ts Vite: Support Tailwind in Vue <style> blocks (#14158) 2024-08-09 12:41:58 +02:00