2024-05-29 16:40:18 +00:00
|
|
|
import type { Config } from 'tailwindcss';
|
2023-11-02 13:02:33 +00:00
|
|
|
import { fontFamily } from 'tailwindcss/defaultTheme';
|
|
|
|
|
2024-05-29 16:40:18 +00:00
|
|
|
export default {
|
2023-12-19 09:51:11 +00:00
|
|
|
darkMode: ['class'],
|
|
|
|
content: ['./src/**/*.{html,js,svelte,ts}'],
|
|
|
|
safelist: ['dark'],
|
2023-11-02 13:02:33 +00:00
|
|
|
theme: {
|
|
|
|
container: {
|
|
|
|
center: true,
|
|
|
|
padding: '2rem',
|
|
|
|
screens: {
|
2023-12-19 09:51:11 +00:00
|
|
|
'2xl': '1400px',
|
|
|
|
},
|
2023-11-02 13:02:33 +00:00
|
|
|
},
|
|
|
|
extend: {
|
|
|
|
colors: {
|
|
|
|
border: 'hsl(var(--border) / <alpha-value>)',
|
|
|
|
input: 'hsl(var(--input) / <alpha-value>)',
|
|
|
|
ring: 'hsl(var(--ring) / <alpha-value>)',
|
|
|
|
background: 'hsl(var(--background) / <alpha-value>)',
|
|
|
|
foreground: 'hsl(var(--foreground) / <alpha-value>)',
|
|
|
|
primary: {
|
|
|
|
DEFAULT: 'hsl(var(--primary) / <alpha-value>)',
|
2023-12-19 09:51:11 +00:00
|
|
|
foreground: 'hsl(var(--primary-foreground) / <alpha-value>)',
|
2023-11-02 13:02:33 +00:00
|
|
|
},
|
|
|
|
secondary: {
|
|
|
|
DEFAULT: 'hsl(var(--secondary) / <alpha-value>)',
|
2023-12-19 09:51:11 +00:00
|
|
|
foreground: 'hsl(var(--secondary-foreground) / <alpha-value>)',
|
2023-11-02 13:02:33 +00:00
|
|
|
},
|
|
|
|
destructive: {
|
|
|
|
DEFAULT: 'hsl(var(--destructive) / <alpha-value>)',
|
2023-12-19 09:51:11 +00:00
|
|
|
foreground: 'hsl(var(--destructive-foreground) / <alpha-value>)',
|
2023-11-02 13:02:33 +00:00
|
|
|
},
|
|
|
|
muted: {
|
|
|
|
DEFAULT: 'hsl(var(--muted) / <alpha-value>)',
|
2023-12-19 09:51:11 +00:00
|
|
|
foreground: 'hsl(var(--muted-foreground) / <alpha-value>)',
|
2023-11-02 13:02:33 +00:00
|
|
|
},
|
|
|
|
accent: {
|
|
|
|
DEFAULT: 'hsl(var(--accent) / <alpha-value>)',
|
2023-12-19 09:51:11 +00:00
|
|
|
foreground: 'hsl(var(--accent-foreground) / <alpha-value>)',
|
2023-11-02 13:02:33 +00:00
|
|
|
},
|
|
|
|
popover: {
|
|
|
|
DEFAULT: 'hsl(var(--popover) / <alpha-value>)',
|
2023-12-19 09:51:11 +00:00
|
|
|
foreground: 'hsl(var(--popover-foreground) / <alpha-value>)',
|
2023-11-02 13:02:33 +00:00
|
|
|
},
|
|
|
|
card: {
|
|
|
|
DEFAULT: 'hsl(var(--card) / <alpha-value>)',
|
2023-12-19 09:51:11 +00:00
|
|
|
foreground: 'hsl(var(--card-foreground) / <alpha-value>)',
|
|
|
|
},
|
2023-11-02 13:02:33 +00:00
|
|
|
},
|
|
|
|
borderRadius: {
|
|
|
|
lg: 'var(--radius)',
|
|
|
|
md: 'calc(var(--radius) - 2px)',
|
2023-12-19 09:51:11 +00:00
|
|
|
sm: 'calc(var(--radius) - 4px)',
|
2023-11-02 13:02:33 +00:00
|
|
|
},
|
|
|
|
fontFamily: {
|
2023-12-19 09:51:11 +00:00
|
|
|
sans: [...fontFamily.sans],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-05-29 16:40:18 +00:00
|
|
|
} satisfies Config;
|