mirror of
https://github.com/supabase/supabase.git
synced 2026-05-06 22:18:00 +08:00
feat(design-system): migrate tailwind config to CSS-first
Replace per-app tailwind.config.cjs with @source/@theme directives in styles/globals.css, importing the shared config/tailwind.config.css. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,11 +1,16 @@
|
|||||||
@import 'tailwindcss';
|
@import 'config/tailwind.config.css';
|
||||||
|
|
||||||
@import './../../../packages/ui/build/css/source/global.css';
|
|
||||||
@import './../../../packages/ui/build/css/themes/dark.css';
|
|
||||||
@import './../../../packages/ui/build/css/themes/classic-dark.css';
|
@import './../../../packages/ui/build/css/themes/classic-dark.css';
|
||||||
@import './../../../packages/ui/build/css/themes/light.css';
|
|
||||||
|
|
||||||
@config '../tailwind.config.js';
|
@source '../app/**/*.{js,ts,jsx,tsx}';
|
||||||
|
@source '../components/**/*.{js,ts,jsx,tsx}';
|
||||||
|
@source '../registry/**/*.{js,ts,jsx,tsx}';
|
||||||
|
@source '../content/**/*.mdx';
|
||||||
|
@source './../../../packages/ui/src/**/*.{tsx,ts,js}';
|
||||||
|
@source './../../../packages/ui-patterns/src/**/*.{tsx,ts,js}';
|
||||||
|
|
||||||
|
@theme {
|
||||||
|
--max-w-site: 128rem;
|
||||||
|
}
|
||||||
|
|
||||||
@import 'config/typography.css';
|
@import 'config/typography.css';
|
||||||
|
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
const config = require('config/tailwind.config')
|
|
||||||
|
|
||||||
module.exports = config({
|
|
||||||
content: [
|
|
||||||
'./app/**/*.{js,ts,jsx,tsx}',
|
|
||||||
'./components/**/*.{js,ts,jsx,tsx}',
|
|
||||||
'./registry/**/*.{js,ts,jsx,tsx}',
|
|
||||||
'./content/**/*.mdx',
|
|
||||||
// purge styles from grid library
|
|
||||||
//
|
|
||||||
'./../../packages/ui/src/**/*.{tsx,ts,js}',
|
|
||||||
'./../../packages/ui-patterns/src/**/*.{tsx,ts,js}',
|
|
||||||
],
|
|
||||||
theme: {
|
|
||||||
extend: {
|
|
||||||
maxWidth: {
|
|
||||||
site: '128rem',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
Reference in New Issue
Block a user