1
1
/** @type {import('tailwindcss').Config } */
2
2
const defaultTheme = require ( "tailwindcss/defaultTheme" ) ;
3
3
module . exports = {
4
+ darkMode : [ "class" ] ,
4
5
content : [ "./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}" ] ,
5
6
theme : {
7
+ container : {
8
+ center : true ,
9
+ padding : "2rem" ,
10
+ screens : {
11
+ "2xl" : "1400px" ,
12
+ } ,
13
+ } ,
6
14
extend : {
7
15
fontFamily : {
8
16
sans : [
@@ -12,6 +20,60 @@ module.exports = {
12
20
...defaultTheme . fontFamily . sans ,
13
21
] ,
14
22
} ,
23
+ colors : {
24
+ border : "hsl(var(--border))" ,
25
+ input : "hsl(var(--input))" ,
26
+ ring : "hsl(var(--ring))" ,
27
+ background : "hsl(var(--background))" ,
28
+ foreground : "hsl(var(--foreground))" ,
29
+ primary : {
30
+ DEFAULT : "hsl(var(--primary))" ,
31
+ foreground : "hsl(var(--primary-foreground))" ,
32
+ } ,
33
+ secondary : {
34
+ DEFAULT : "hsl(var(--secondary))" ,
35
+ foreground : "hsl(var(--secondary-foreground))" ,
36
+ } ,
37
+ destructive : {
38
+ DEFAULT : "hsl(var(--destructive))" ,
39
+ foreground : "hsl(var(--destructive-foreground))" ,
40
+ } ,
41
+ muted : {
42
+ DEFAULT : "hsl(var(--muted))" ,
43
+ foreground : "hsl(var(--muted-foreground))" ,
44
+ } ,
45
+ accent : {
46
+ DEFAULT : "hsl(var(--accent))" ,
47
+ foreground : "hsl(var(--accent-foreground))" ,
48
+ } ,
49
+ popover : {
50
+ DEFAULT : "hsl(var(--popover))" ,
51
+ foreground : "hsl(var(--popover-foreground))" ,
52
+ } ,
53
+ card : {
54
+ DEFAULT : "hsl(var(--card))" ,
55
+ foreground : "hsl(var(--card-foreground))" ,
56
+ } ,
57
+ } ,
58
+ borderRadius : {
59
+ lg : "var(--radius)" ,
60
+ md : "calc(var(--radius) - 2px)" ,
61
+ sm : "calc(var(--radius) - 4px)" ,
62
+ } ,
63
+ keyframes : {
64
+ "accordion-down" : {
65
+ from : { height : "0" } ,
66
+ to : { height : "var(--radix-accordion-content-height)" } ,
67
+ } ,
68
+ "accordion-up" : {
69
+ from : { height : "var(--radix-accordion-content-height)" } ,
70
+ to : { height : "0" } ,
71
+ } ,
72
+ } ,
73
+ animation : {
74
+ "accordion-down" : "accordion-down 0.2s ease-out" ,
75
+ "accordion-up" : "accordion-up 0.2s ease-out" ,
76
+ } ,
15
77
} ,
16
78
} ,
17
79
plugins : [ require ( "@tailwindcss/typography" ) ] ,
0 commit comments