Files
stock/frontend/tailwind.config.ts
T
2026-07-03 23:40:33 +08:00

41 lines
1.4 KiB
TypeScript

import type { Config } from 'tailwindcss'
import animate from 'tailwindcss-animate'
export default {
darkMode: ['class'],
content: ['./index.html', './src/**/*.{ts,tsx}'],
theme: {
container: { center: true, padding: '1rem' },
extend: {
colors: {
base: 'hsl(var(--base) / <alpha-value>)',
surface: 'hsl(var(--surface) / <alpha-value>)',
elevated: 'hsl(var(--elevated) / <alpha-value>)',
border: 'hsl(var(--border) / <alpha-value>)',
foreground: 'hsl(var(--fg-primary) / <alpha-value>)',
secondary: 'hsl(var(--fg-secondary) / <alpha-value>)',
muted: 'hsl(var(--fg-muted) / <alpha-value>)',
accent: 'hsl(var(--accent) / <alpha-value>)',
bull: 'hsl(var(--bull) / <alpha-value>)',
bear: 'hsl(var(--bear) / <alpha-value>)',
warning: 'hsl(var(--warning) / <alpha-value>)',
danger: 'hsl(var(--danger) / <alpha-value>)',
},
fontFamily: {
sans: ['Inter', '"HarmonyOS Sans SC"', '"PingFang SC"', 'system-ui', 'sans-serif'],
mono: ['"JetBrains Mono"', '"IBM Plex Mono"', 'ui-monospace', 'monospace'],
},
borderRadius: {
card: '8px',
btn: '6px',
input: '4px',
dialog: '12px',
},
transitionTimingFunction: {
smooth: 'cubic-bezier(0.16, 1, 0.3, 1)',
},
},
},
plugins: [animate],
} satisfies Config