Tech_Tracker_Web/tailwind.config.ts

85 lines
2.3 KiB
TypeScript
Raw Normal View History

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