@import "tailwindcss";
@import "tw-animate-css";
@import "tw-shimmer";
keyframes);不 @source 其 dist,justify-end 等只在 streamdown 内出现的
工具类不会生成——表格头部按钮组会错落到表格左上角贴住侧栏 */
@source "../node_modules/streamdown/dist";
@custom-variant dark (&:is(.dark *));
:root {
--radius: 0.625rem;
--background: #fcfcfb;
--foreground: #52514e;
--card: #ffffff;
--card-foreground: #52514e;
--popover: #ffffff;
--popover-foreground: #52514e;
--primary: #c31d20;
--primary-foreground: #ffffff;
--secondary: #f3f2ee;
--secondary-foreground: #52514e;
--muted: #f3f2ee;
--muted-foreground: #898781;
--accent: #f3f2ee;
--accent-foreground: #52514e;
--destructive: #c31d20;
--destructive-foreground: #ffffff;
--border: #e6e5df;
--input: #e6e5df;
--ring: #c31d20;
--sidebar: #f7f6f3;
--sidebar-foreground: #52514e;
--sidebar-primary: #c31d20;
--sidebar-primary-foreground: #ffffff;
--sidebar-accent: #f3f2ee;
--sidebar-accent-foreground: #52514e;
--sidebar-border: #e6e5df;
--sidebar-ring: #c31d20;
}
@theme inline {
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
--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);
--color-sidebar-ring: var(--sidebar-ring);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar: var(--sidebar);
@keyframes collapsible-down {
from {
height: 0;
}
to {
height: var(
--radix-collapsible-content-height,
var(--collapsible-panel-height, auto)
);
}
}
@keyframes collapsible-up {
from {
height: var(
--radix-collapsible-content-height,
var(--collapsible-panel-height, auto)
);
}
to {
height: 0;
}
}
}
currentColor,Card 等只有 border 宽度类的组件会渲染成深色实线),这层把
全部边框/轮廓接到 --border 主题 token */
@layer base {
* {
@apply border-border outline-border/50;
}
body {
@apply bg-background text-foreground;
}
}
@custom-variant data-open (&:where([data-state="open"], [data-open]:not([data-open="false"])));
@custom-variant data-closed (&:where([data-state="closed"], [data-closed]:not([data-closed="false"])));
.dark {
--sidebar: hsl(240 5.9% 10%);
--sidebar-foreground: hsl(240 4.8% 95.9%);
--sidebar-primary: hsl(224.3 76.3% 48%);
--sidebar-primary-foreground: hsl(0 0% 100%);
--sidebar-accent: hsl(240 3.7% 15.9%);
--sidebar-accent-foreground: hsl(240 4.8% 95.9%);
--sidebar-border: hsl(240 3.7% 15.9%);
--sidebar-ring: hsl(217.2 91.2% 59.8%);
}