6975e38f79
- 更新 components.json,修改 CSS 文件路径为 src/styles/shell.css。 - 移除 tailwind.config.js 中的冗余配置,改为导入 tailwind.shell.config.js。 - 新增 tailwind.pages.config.js 和 tailwind.shared.js,集中管理主题和样式配置。 - 更新多个组件以使用新的样式类和配置,提升代码一致性和可维护性。
30 lines
1.0 KiB
JavaScript
30 lines
1.0 KiB
JavaScript
/** @type {import('tailwindcss').Config['theme']} */
|
|
export const sharedTheme = {
|
|
extend: {
|
|
colors: {
|
|
background: 'hsl(var(--background))',
|
|
foreground: 'hsl(var(--foreground))',
|
|
card: 'hsl(var(--card))',
|
|
'card-foreground': 'hsl(var(--card-foreground))',
|
|
popover: 'hsl(var(--popover))',
|
|
'popover-foreground': 'hsl(var(--popover-foreground))',
|
|
primary: 'hsl(var(--primary))',
|
|
'primary-foreground': 'hsl(var(--primary-foreground))',
|
|
secondary: 'hsl(var(--secondary))',
|
|
'secondary-foreground': 'hsl(var(--secondary-foreground))',
|
|
muted: 'hsl(var(--muted))',
|
|
'muted-foreground': 'hsl(var(--muted-foreground))',
|
|
accent: 'hsl(var(--accent))',
|
|
'accent-foreground': 'hsl(var(--accent-foreground))',
|
|
destructive: 'hsl(var(--destructive))',
|
|
'destructive-foreground': 'hsl(var(--destructive-foreground))',
|
|
border: 'hsl(var(--border))',
|
|
input: 'hsl(var(--input))',
|
|
ring: 'hsl(var(--ring))',
|
|
},
|
|
borderRadius: {
|
|
DEFAULT: 'var(--radius)',
|
|
},
|
|
},
|
|
};
|