|
| 1 | +const colors = require('tailwindcss/colors'); |
| 2 | + |
| 3 | +/** @type {import('tailwindcss').Config} */ |
| 4 | +module.exports = { |
| 5 | + content: ['./src/**/*.{html,njk,md,svg,js}'], |
| 6 | + safelist: [ |
| 7 | + 'w-4', |
| 8 | + 'h-4', |
| 9 | + 'w-5', |
| 10 | + 'h-5', |
| 11 | + 'mt-8', |
| 12 | + 'rounded', |
| 13 | + 'rounded-lg', |
| 14 | + 'text-3xl', |
| 15 | + 'sm:text-4xl', |
| 16 | + 'font-extrabold', |
| 17 | + 'text-slate-900', |
| 18 | + 'tracking-tight', |
| 19 | + 'dark:text-slate-200', |
| 20 | + 'group', |
| 21 | + 'flex', |
| 22 | + 'whitespace-pre-wrap', |
| 23 | + '-ml-4', |
| 24 | + 'pl-4', |
| 25 | + 'absolute', |
| 26 | + '-ml-7', |
| 27 | + 'flex', |
| 28 | + 'items-center', |
| 29 | + 'opacity-0', |
| 30 | + 'border-0', |
| 31 | + 'group-hover:opacity-100', |
| 32 | + 'text-blue-400', |
| 33 | + 'hover:text-blue-800', |
| 34 | + 'transition-colors', |
| 35 | + 'no-underline', |
| 36 | + 'bg-slate-200', |
| 37 | + 'py-1', |
| 38 | + '-my-1', |
| 39 | + 'border-b', |
| 40 | + 'hover:text-slate-900', |
| 41 | + 'dark:hover:text-slate-400', |
| 42 | + 'text-sky-500', |
| 43 | + 'hover:text-sky-600', |
| 44 | + 'overflow-hidden', |
| 45 | + 'relative', |
| 46 | + 'w-full', |
| 47 | + 'rounded-lg', |
| 48 | + 'border', |
| 49 | + 'p-4', |
| 50 | + '[&>svg]:absolute', |
| 51 | + '[&>svg]:text-foreground', |
| 52 | + '[&>svg]:left-4', |
| 53 | + '[&>svg]:top-4', |
| 54 | + '[&>svg+div]:translate-y-[-3px]', |
| 55 | + '[&:has(svg)]:pl-11', |
| 56 | + 'bg-background', |
| 57 | + 'text-foreground', |
| 58 | + 'mb-1', |
| 59 | + 'font-medium', |
| 60 | + 'leading-none', |
| 61 | + 'tracking-tight', |
| 62 | + 'text-sm', |
| 63 | + '[&_p]:leading-relaxed', |
| 64 | + 'mt-0', |
| 65 | + 'bg-slate-900/80', |
| 66 | + ], |
| 67 | + theme: { |
| 68 | + container: { |
| 69 | + center: true, |
| 70 | + padding: '2rem', |
| 71 | + screens: { |
| 72 | + '2xl': '1400px', |
| 73 | + }, |
| 74 | + }, |
| 75 | + extend: { |
| 76 | + colors: { |
| 77 | + slate: colors.slate, |
| 78 | + sky: colors.sky, |
| 79 | + border: 'hsl(var(--border))', |
| 80 | + input: 'hsl(var(--input))', |
| 81 | + ring: 'hsl(var(--ring))', |
| 82 | + background: 'hsl(var(--background))', |
| 83 | + foreground: 'hsl(var(--foreground))', |
| 84 | + primary: { |
| 85 | + DEFAULT: 'hsl(var(--primary))', |
| 86 | + foreground: 'hsl(var(--primary-foreground))', |
| 87 | + }, |
| 88 | + secondary: { |
| 89 | + DEFAULT: 'hsl(var(--secondary))', |
| 90 | + foreground: 'hsl(var(--secondary-foreground))', |
| 91 | + }, |
| 92 | + destructive: { |
| 93 | + DEFAULT: 'hsl(var(--destructive))', |
| 94 | + foreground: 'hsl(var(--destructive-foreground))', |
| 95 | + }, |
| 96 | + muted: { |
| 97 | + DEFAULT: 'hsl(var(--muted))', |
| 98 | + foreground: 'hsl(var(--muted-foreground))', |
| 99 | + }, |
| 100 | + accent: { |
| 101 | + DEFAULT: 'hsl(var(--accent))', |
| 102 | + foreground: 'hsl(var(--accent-foreground))', |
| 103 | + }, |
| 104 | + popover: { |
| 105 | + DEFAULT: 'hsl(var(--popover))', |
| 106 | + foreground: 'hsl(var(--popover-foreground))', |
| 107 | + }, |
| 108 | + card: { |
| 109 | + DEFAULT: 'hsl(var(--card))', |
| 110 | + foreground: 'hsl(var(--card-foreground))', |
| 111 | + }, |
| 112 | + }, |
| 113 | + borderRadius: { |
| 114 | + lg: 'var(--radius)', |
| 115 | + md: 'calc(var(--radius) - 2px)', |
| 116 | + sm: 'calc(var(--radius) - 4px)', |
| 117 | + }, |
| 118 | + keyframes: { |
| 119 | + 'accordion-down': { |
| 120 | + from: { height: 0 }, |
| 121 | + to: { height: 'var(--radix-accordion-content-height)' }, |
| 122 | + }, |
| 123 | + 'accordion-up': { |
| 124 | + from: { height: 'var(--radix-accordion-content-height)' }, |
| 125 | + to: { height: 0 }, |
| 126 | + }, |
| 127 | + }, |
| 128 | + animation: { |
| 129 | + 'accordion-down': 'accordion-down 0.2s ease-out', |
| 130 | + 'accordion-up': 'accordion-up 0.2s ease-out', |
| 131 | + }, |
| 132 | + }, |
| 133 | + }, |
| 134 | + plugins: [ |
| 135 | + require('tailwindcss-animated'), |
| 136 | + require('tailwindcss-animate'), |
| 137 | + require('@tailwindcss/typography'), |
| 138 | + ], |
| 139 | +}; |
0 commit comments