feat: #21 Phase 5 — Tailwind v4 语法迁移 (globals.css + 删除 tailwind.config.js)

This commit is contained in:
gitadmin 2026-07-15 16:05:51 +08:00
parent 6da9b6e4c0
commit 43dedb2ffd
2 changed files with 4 additions and 11 deletions

View File

@ -1,5 +1,8 @@
@import "tailwindcss"; @import "tailwindcss";
@config "../../tailwind.config.js"; @custom-variant dark (&:where(.dark, .dark *));
@source "../../shared";
@source "../../src";
@import './tlyq-design-system.css' layer(base); @import './tlyq-design-system.css' layer(base);
@layer base { @layer base {
@ -8,9 +11,6 @@
color: var(--fg); color: var(--fg);
background-color: var(--bg); background-color: var(--bg);
} }
html.dark body {
@apply bg-slate-950 text-white;
}
} }
@layer components { @layer components {

View File

@ -1,7 +0,0 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: 'class',
content: ['./src/**/*.{js,ts,jsx,tsx,mdx}'],
theme: { extend: {} },
plugins: [],
}