Skyler Grey | 7177bbd | 2023-06-01 03:26:31 +0200 | [diff] [blame] | 1 | const { fontFamily } = require('tailwindcss/defaultTheme'); |
| 2 | /** @type {import('tailwindcss').Config} */ |
| 3 | module.exports = { |
| 4 | content: ['./src/**/*.{html,js,svelte,ts}', '../../packages/components/dist/**/*.{html,js,svelte,ts}'], |
| 5 | theme: { |
| 6 | container: { |
| 7 | center: true, |
| 8 | padding: '2rem', |
| 9 | screens: { |
| 10 | '2xl': '1400px' |
| 11 | } |
| 12 | }, |
| 13 | extend: { |
| 14 | colors: { |
| 15 | border: 'hsl(var(--border))', |
| 16 | input: 'hsl(var(--input))', |
| 17 | ring: 'hsl(var(--ring))', |
| 18 | background: 'hsl(var(--background))', |
| 19 | foreground: 'hsl(var(--foreground))', |
| 20 | primary: { |
| 21 | DEFAULT: 'hsl(var(--primary))', |
| 22 | foreground: 'hsl(var(--primary-foreground))' |
| 23 | }, |
| 24 | secondary: { |
| 25 | DEFAULT: 'hsl(var(--secondary))', |
| 26 | foreground: 'hsl(var(--secondary-foreground))' |
| 27 | }, |
| 28 | destructive: { |
| 29 | DEFAULT: 'hsl(var(--destructive))', |
| 30 | foreground: 'hsl(var(--destructive-foreground))' |
| 31 | }, |
| 32 | muted: { |
| 33 | DEFAULT: 'hsl(var(--muted))', |
| 34 | foreground: 'hsl(var(--muted-foreground))' |
| 35 | }, |
| 36 | accent: { |
| 37 | DEFAULT: 'hsl(var(--accent))', |
| 38 | foreground: 'hsl(var(--accent-foreground))' |
| 39 | }, |
| 40 | popover: { |
| 41 | DEFAULT: 'hsl(var(--popover))', |
| 42 | foreground: 'hsl(var(--popover-foreground))' |
| 43 | }, |
| 44 | card: { |
| 45 | DEFAULT: 'hsl(var(--card))', |
| 46 | foreground: 'hsl(var(--card-foreground))' |
| 47 | } |
| 48 | }, |
| 49 | borderRadius: { |
| 50 | lg: 'var(--radius)', |
| 51 | md: 'calc(var(--radius) - 2px)', |
| 52 | sm: 'calc(var(--radius) - 4px)' |
| 53 | }, |
| 54 | fontFamily: { |
| 55 | sans: [...fontFamily.sans] |
| 56 | } |
| 57 | } |
| 58 | }, |
| 59 | plugins: [require('tailwindcss-animate')] |
| 60 | }; |