Skip to content

Open-source, local-first AI agent for real work.

1.4 KB
Raw Blame
/* 导入 theme 层 + utilities 层(不要 preflight,避免 reset 污染宿主全局)。
   只 @import utilities 会漏掉依赖 theme 变量的工具类(spacing/radius:h-7 / gap-1.5 /
   rounded-lg …生成不出来),故 theme 层必须一并导入。 */
@layer theme, base, components, utilities;
@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/utilities.css" layer(utilities);

/* 把宿主 CSS 变量接到 Tailwind 色板,使 text-muted-foreground / bg-primary 等
   在本插件 style.css 内可生成,并随宿主明暗主题变化。 */
@theme inline {
	--color-background: var(--background);
	--color-foreground: var(--foreground);
	--color-card: var(--card);
	--color-card-foreground: var(--card-foreground);
	--color-popover: var(--popover);
	--color-popover-foreground: var(--popover-foreground);
	--color-primary: var(--primary);
	--color-primary-foreground: var(--primary-foreground);
	--color-secondary: var(--secondary);
	--color-secondary-foreground: var(--secondary-foreground);
	--color-muted: var(--muted);
	--color-muted-foreground: var(--muted-foreground);
	--color-accent: var(--accent);
	--color-accent-foreground: var(--accent-foreground);
	--color-destructive: var(--destructive);
	--color-destructive-foreground: var(--destructive-foreground);
	--color-border: var(--border);
	--color-input: var(--input);
	--color-ring: var(--ring);
}