dart/tailwind.config.ts

81 lines
2.1 KiB
TypeScript
Raw Normal View History

2024-06-24 09:30:01 +00:00
import type { Config } from 'tailwindcss'
2024-06-22 17:48:39 +00:00
const config = {
2024-06-24 09:30:01 +00:00
darkMode: ['class'],
2024-06-22 17:48:39 +00:00
content: [
'./pages/**/*.{ts,tsx}',
'./components/**/*.{ts,tsx}',
'./app/**/*.{ts,tsx}',
'./src/**/*.{ts,tsx}',
2024-06-24 09:30:01 +00:00
],
prefix: '',
2024-06-22 17:48:39 +00:00
theme: {
container: {
center: true,
2024-06-24 09:30:01 +00:00
padding: '2rem',
2024-06-22 17:48:39 +00:00
screens: {
2024-06-24 09:30:01 +00:00
'2xl': '1400px',
2024-06-22 17:48:39 +00:00
},
},
extend: {
colors: {
2024-06-24 09:30:01 +00:00
border: 'hsl(var(--border))',
input: 'hsl(var(--input))',
ring: 'hsl(var(--ring))',
background: 'hsl(var(--background))',
foreground: 'hsl(var(--foreground))',
2024-06-22 17:48:39 +00:00
primary: {
2024-06-24 09:30:01 +00:00
DEFAULT: 'hsl(var(--primary))',
foreground: 'hsl(var(--primary-foreground))',
2024-06-22 17:48:39 +00:00
},
secondary: {
2024-06-24 09:30:01 +00:00
DEFAULT: 'hsl(var(--secondary))',
foreground: 'hsl(var(--secondary-foreground))',
2024-06-22 17:48:39 +00:00
},
destructive: {
2024-06-24 09:30:01 +00:00
DEFAULT: 'hsl(var(--destructive))',
foreground: 'hsl(var(--destructive-foreground))',
2024-06-22 17:48:39 +00:00
},
muted: {
2024-06-24 09:30:01 +00:00
DEFAULT: 'hsl(var(--muted))',
foreground: 'hsl(var(--muted-foreground))',
2024-06-22 17:48:39 +00:00
},
accent: {
2024-06-24 09:30:01 +00:00
DEFAULT: 'hsl(var(--accent))',
foreground: 'hsl(var(--accent-foreground))',
2024-06-22 17:48:39 +00:00
},
popover: {
2024-06-24 09:30:01 +00:00
DEFAULT: 'hsl(var(--popover))',
foreground: 'hsl(var(--popover-foreground))',
2024-06-22 17:48:39 +00:00
},
card: {
2024-06-24 09:30:01 +00:00
DEFAULT: 'hsl(var(--card))',
foreground: 'hsl(var(--card-foreground))',
2024-06-22 17:48:39 +00:00
},
},
borderRadius: {
2024-06-24 09:30:01 +00:00
lg: 'var(--radius)',
md: 'calc(var(--radius) - 2px)',
sm: 'calc(var(--radius) - 4px)',
2024-06-22 17:48:39 +00:00
},
keyframes: {
2024-06-24 09:30:01 +00:00
'accordion-down': {
from: { height: '0' },
to: { height: 'var(--radix-accordion-content-height)' },
2024-06-22 17:48:39 +00:00
},
2024-06-24 09:30:01 +00:00
'accordion-up': {
from: { height: 'var(--radix-accordion-content-height)' },
to: { height: '0' },
2024-06-22 17:48:39 +00:00
},
},
animation: {
2024-06-24 09:30:01 +00:00
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out',
2024-06-22 17:48:39 +00:00
},
},
},
2024-06-24 09:30:01 +00:00
plugins: [require('tailwindcss-animate')],
2024-06-22 17:48:39 +00:00
} satisfies Config
2024-06-24 09:30:01 +00:00
export default config