/** @type {import('tailwindcss').Config} */ export default { content: [ './index.html', './src/**/*.{js,ts,jsx,tsx}', '../ui/src/**/*.{js,ts,jsx,tsx}', ], darkMode: 'class', theme: { extend: { colors: { // 语义化颜色 (引用 CSS 变量) surface: { base: 'rgb(var(--color-bg-base) / )', subtle: 'rgb(var(--color-bg-subtle) / )', muted: 'rgb(var(--color-bg-muted) / )', emphasis: 'rgb(var(--color-bg-emphasis) / )', }, fg: { DEFAULT: 'rgb(var(--color-text-primary) / )', secondary: 'rgb(var(--color-text-secondary) / )', muted: 'rgb(var(--color-text-muted) / )', subtle: 'rgb(var(--color-text-subtle) / )', }, line: { DEFAULT: 'rgb(var(--color-border-default) / )', muted: 'rgb(var(--color-border-muted) / )', }, // 代码块背景 code: 'rgb(var(--color-code-bg) / )', // 保留现有 primary 色板 primary: { 50: '#f0f9ff', 100: '#e0f2fe', 200: '#bae6fd', 300: '#7dd3fc', 400: '#38bdf8', 500: '#0ea5e9', 600: '#0284c7', 700: '#0369a1', 800: '#075985', 900: '#0c4a6e', 950: '#082f49', }, }, keyframes: { 'accordion-down': { from: { height: '0' }, to: { height: 'var(--radix-accordion-content-height)' }, }, 'accordion-up': { from: { height: 'var(--radix-accordion-content-height)' }, to: { height: '0' }, }, }, animation: { 'accordion-down': 'accordion-down 0.2s ease-out', 'accordion-up': 'accordion-up 0.2s ease-out', }, }, }, plugins: [require('tailwindcss-animate')], };