Files
cozsweet-frontend-nextjs/src/app/globals.css
T
admin 763bec4e74 refactor(design-tokens): move @theme declarations to individual token files
Consolidate the design system registration by removing the centralized
`@theme inline` block and all design token imports from globals.css.
Each token file now declares its own `@theme` rules directly, allowing
Tailwind 4 to auto-collect them and generate utility classes (e.g.
`bg-accent`, `p-md`, `rounded-lg`) without redundant re-mapping.

This simplifies globals.css, removes a layer of indirection, and keeps
the design token definitions co-located with their `@theme` exposure.
2026-06-09 16:28:06 +08:00

27 lines
900 B
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@import "tailwindcss";
/* ============================================================
* 设计系统 - 集中导入所有 token
* 每个 token 文件用 `@theme` 直接声明,Tailwind 4 自动收集
* 并生成 utility 类(如 `bg-accent` / `p-md` / `rounded-lg`
* ============================================================ */
@import "../tokens/colors.css";
@import "../tokens/spacing.css";
@import "../tokens/typography.css";
@import "../tokens/radius.css";
@import "../tokens/border-widths.css";
@import "../tokens/icon-sizes.css";
@import "../tokens/breakpoints.css";
@import "../tokens/dimensions.css";
/* ============================================================
* 基础样式
* ============================================================ */
body {
background: var(--color-page-background);
color: var(--color-text-foreground);
font-family: var(--font-system);
}