tasko/tailwind.config.ts

91 lines
2.4 KiB
TypeScript
Raw Permalink Normal View History

import fluid, { extract, screens, fontSize } from 'fluid-tailwind';
2024-02-16 01:49:19 +00:00
import type { Config } from 'tailwindcss';
2024-02-15 02:30:10 +00:00
const config = {
darkMode: ['selector'],
content: {
files: [
'./pages/**/*.{ts,tsx,md,mdx}',
'./components/**/*.{ts,tsx,md,mdx}',
'./app/**/*.{ts,tsx,md,mdx}',
'./src/**/*.{ts,tsx,md,mdx}',
],
extract,
},
2024-02-16 01:49:19 +00:00
prefix: '',
2024-02-15 02:30:10 +00:00
theme: {
screens,
fontSize,
2024-02-15 02:30:10 +00:00
container: {
center: true,
2024-02-16 01:49:19 +00:00
padding: '2rem',
2024-02-15 02:30:10 +00:00
screens: {
'2xl': '84rem',
2024-02-15 02:30:10 +00:00
},
},
extend: {
colors: {
2024-02-16 01:49:19 +00:00
border: 'hsl(var(--border))',
input: 'hsl(var(--input))',
ring: 'hsl(var(--ring))',
background: 'hsl(var(--background))',
foreground: 'hsl(var(--foreground))',
2024-02-15 02:30:10 +00:00
primary: {
2024-02-16 01:49:19 +00:00
DEFAULT: 'hsl(var(--primary))',
foreground: 'hsl(var(--primary-foreground))',
2024-02-15 02:30:10 +00:00
},
secondary: {
2024-02-16 01:49:19 +00:00
DEFAULT: 'hsl(var(--secondary))',
foreground: 'hsl(var(--secondary-foreground))',
2024-02-15 02:30:10 +00:00
},
destructive: {
2024-02-16 01:49:19 +00:00
DEFAULT: 'hsl(var(--destructive))',
foreground: 'hsl(var(--destructive-foreground))',
2024-02-15 02:30:10 +00:00
},
muted: {
2024-02-16 01:49:19 +00:00
DEFAULT: 'hsl(var(--muted))',
foreground: 'hsl(var(--muted-foreground))',
2024-02-15 02:30:10 +00:00
},
accent: {
2024-02-16 01:49:19 +00:00
DEFAULT: 'hsl(var(--accent))',
foreground: 'hsl(var(--accent-foreground))',
2024-02-15 02:30:10 +00:00
},
popover: {
2024-02-16 01:49:19 +00:00
DEFAULT: 'hsl(var(--popover))',
foreground: 'hsl(var(--popover-foreground))',
2024-02-15 02:30:10 +00:00
},
card: {
2024-02-16 01:49:19 +00:00
DEFAULT: 'hsl(var(--card))',
foreground: 'hsl(var(--card-foreground))',
2024-02-15 02:30:10 +00:00
},
},
borderRadius: {
2024-02-16 01:49:19 +00:00
lg: 'var(--radius)',
md: 'calc(var(--radius) - 2px)',
sm: 'calc(var(--radius) - 4px)',
2024-02-15 02:30:10 +00:00
},
keyframes: {
2024-02-16 01:49:19 +00:00
'accordion-down': {
from: { height: '0' },
to: { height: 'var(--radix-accordion-content-height)' },
2024-02-15 02:30:10 +00:00
},
2024-02-16 01:49:19 +00:00
'accordion-up': {
from: { height: 'var(--radix-accordion-content-height)' },
to: { height: '0' },
2024-02-15 02:30:10 +00:00
},
},
animation: {
2024-02-16 01:49:19 +00:00
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out',
2024-02-15 02:30:10 +00:00
},
},
},
2024-12-07 19:37:44 +00:00
plugins: [
require('tailwindcss-animate'),
require('@tailwindcss/typography'),
fluid,
],
2024-02-16 01:49:19 +00:00
} satisfies Config;
2024-02-15 02:30:10 +00:00
2024-02-16 01:49:19 +00:00
export default config;