refansa.my.id/tailwind.config.ts

82 lines
2.2 KiB
TypeScript
Raw Permalink Normal View History

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