36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
|
|
import type { Config } from 'tailwindcss';
|
||
|
|
|
||
|
|
export default {
|
||
|
|
darkMode: 'class',
|
||
|
|
content: ['./index.html', './src/**/*.{ts,tsx}'],
|
||
|
|
theme: {
|
||
|
|
extend: {
|
||
|
|
colors: {
|
||
|
|
// Map CSS custom properties → Tailwind utilities
|
||
|
|
bg: 'var(--color-bg)',
|
||
|
|
surface: 'var(--color-surface)',
|
||
|
|
border: 'var(--color-border)',
|
||
|
|
'text-primary': 'var(--color-text-primary)',
|
||
|
|
'text-secondary': 'var(--color-text-secondary)',
|
||
|
|
accent: 'var(--color-accent)',
|
||
|
|
'accent-light': 'var(--color-accent-light)',
|
||
|
|
},
|
||
|
|
fontFamily: {
|
||
|
|
sans: ['Inter', 'system-ui', 'sans-serif'],
|
||
|
|
},
|
||
|
|
transitionProperty: {
|
||
|
|
theme: 'background-color, color, border-color, fill, stroke',
|
||
|
|
},
|
||
|
|
animation: {
|
||
|
|
'fade-in': 'fadeIn 0.3s ease-out',
|
||
|
|
'slide-up': 'slideUp 0.3s ease-out',
|
||
|
|
},
|
||
|
|
keyframes: {
|
||
|
|
fadeIn: { '0%': { opacity: '0' }, '100%': { opacity: '1' } },
|
||
|
|
slideUp: { '0%': { opacity: '0', transform: 'translateY(8px)' }, '100%': { opacity: '1', transform: 'translateY(0)' } },
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
plugins: [],
|
||
|
|
} satisfies Config;
|