de7da9f1db
- 在 tailwind.config.js 中启用 darkMode: 'class' 并扩展语义化颜色变量 - 将全项目硬编码颜色(bg-white、text-gray-*、border-gray-* 等)替换为语义化类名 - 修复 popup/index.html 硬编码浅色背景色 - 同步更新相关单元测试中的类名断言
42 lines
1.4 KiB
JavaScript
42 lines
1.4 KiB
JavaScript
/** @type {import('tailwindcss').Config} */
|
|
export default {
|
|
darkMode: 'class',
|
|
content: [
|
|
'./entrypoints/**/*.{js,ts,jsx,tsx}',
|
|
'./components/**/*.{js,ts,jsx,tsx}',
|
|
'./pages/**/*.{js,ts,jsx,tsx}',
|
|
'./providers/**/*.{js,ts,jsx,tsx}',
|
|
'./utils/**/*.{js,ts,jsx,tsx}',
|
|
'./config/**/*.{js,ts,jsx,tsx}',
|
|
],
|
|
theme: {
|
|
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)',
|
|
},
|
|
},
|
|
},
|
|
plugins: [],
|
|
};
|