Files
supabase/packages/config/tailwind.config.css
T
Ivan Vasilov 0abe792889 chore: Migrate the main Tailwind JS config to CSS (#45686)
This PR migrates the JS config for Tailwind into a CSS config. As such,
all variables have been defined as CSS variables and they're using the
specialized Tailwind syntax for generating utility classes.

Beside the migration, these changes were also added:
- Added `tailwind.config.css` to few packages to make the Tailwind
Intellisense work.
- Migrated away from Radix style color classes to our defined classes,
the values will remain the same.
- Most of the CSS is generated by scripts, they'll be removed in next
PRs.
* Removed redundant `border-light` classes from several components since
it was undefined.
* Removed redundant `text-strong` classes from several components since
it was undefined.

How to test:
- Open all apps, compare the UI (mainly colors) to builds from #45417
and try to find a difference.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Style**
* Harmonized color variable usages and updated UI color references
(affects palettes, charts, gradients, hero illustrations, and
scrollbars).
  * Tweaked border, tab, and selection visuals across components.

* **New Features**
* Added a suite of theme animations and refined typography presets used
by site prose and docs.

* **Refactor**
* Overhauled Tailwind/theme configuration and color token generation for
more consistent theming.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-05-13 13:14:58 +02:00

42 lines
1.6 KiB
CSS

@import 'tailwindcss';
/* JS plugins. Tailwind v4 supports `@plugin` for both v3-style JS plugins and
* v4-native packages. The two local plugins use theme('spacing') /
* theme('transitionDuration') which resolve from v4's @theme tokens. */
@plugin "@tailwindcss/typography";
@plugin "@tailwindcss/forms";
@plugin "tailwindcss-animate";
@plugin "./tailwind-plugins/hit-area";
@plugin "./tailwind-plugins/motion-safe-transition";
/* Raw color values + per-theme overrides. Must come before colors.css so the
* --colors-* references resolve to a value. */
@import './css/radix-vars.css';
@import './css/brand-vars.css';
@import '../ui/build/css/source/global.css';
@import '../ui/build/css/themes/dark.css';
@import '../ui/build/css/themes/light.css';
/* Reset Tailwind's built-in color tokens before re-defining our own, so e.g.
* --color-amber-* doesn't ship a default Tailwind value alongside the Radix
* one. */
@import './unset-tw-colors.css';
/* Theme tokens + utilities + variants + base layer. colors.css declares the
* Radix/scale CSS variables in :root; theme.css consumes them from
* @theme inline so Tailwind generates the utilities. */
@import './css/colors.css';
@import './css/theme.css';
@import './css/animations.css';
@import './css/utilities.css';
@import './css/variants.css';
@import './css/base.css';
/*
* Typography prose / prose-toc / prose-docs overrides live in a focused JS
* config because @tailwindcss/typography reads its theme.typography options
* from the JS config — not from CSS @theme tokens. See:
* https://github.com/tailwindlabs/tailwindcss-typography#customizing-the-css
*/
@config './typography.config.js';