-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathtailwind.config.cjs
131 lines (124 loc) · 4.21 KB
/
tailwind.config.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
const { fontFamily } = require("tailwindcss/defaultTheme");
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: ["class"],
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
extend: {
screens: {
"3xl": "1660px",
slg: "1100px",
},
fontSize: {
"2xs": ".625rem",
"3xs": ".5rem",
"2lg": "32px",
"3lg": "40px",
},
typography(theme) {
return {
DEFAULT: {
css: {
"code::before": {
content: "none", // don’t generate the pseudo-element
// content: '""', // this is an alternative: generate pseudo element using an empty string
},
"code::after": {
content: "none",
},
code: {
color: "hsl(var(--foreground))",
backgroundColor: "hsl(var(--badge-color))",
border: "1px solid hsl(var(--default-border))",
fontWeight: "400",
borderRadius: "8px",
paddingLeft: theme("spacing[1.5]"),
paddingRight: theme("spacing[1.5]"),
paddingTop: theme("spacing.1"),
paddingBottom: theme("spacing.1"),
wordBreak: "break-word",
},
strong: {
color: "hsl(var(--foreground))",
},
h4: {
color: "hsl(var(--foreground))",
},
td: {
backgroundColor: "hsl(var(--background2))",
},
},
},
};
},
backgroundImage: {
"line-dashed": "url('/images/line-dashed.svg')",
"line-dashed-dark": "url('/images/line-dashed-dark.svg')",
},
colors: {
background: "hsl(var(--background))",
background2: "hsl(var(--background2))",
"background-muted": "hsl(var(--background-muted))",
foreground: "hsl(var(--foreground))",
para: "hsl(var(--para))",
cardGray: "hsl(var(--card-gray))",
textGray: "hsl(var(--text-gray))",
border: "hsl(var(--border))",
paraDark: "hsl(var(--para-dark))",
lightForeground: "hsl(var(--light-foreground))",
sortText: "hsl(var(--sort-text))",
darkGray: "hsl(var(--dark-gray))",
darkText: "var(--dark-text)",
badgeColor: "hsl(var(--badge-color))",
iconText: "hsl(var(--icon-text))",
linkText: "hsl(var(--link-text))",
defaultBorder: "hsl(var(--default-border))",
primary: {
DEFAULT: "#ff414c",
foreground: "hsl(var(--primary-foreground))",
},
"success-light": "#D1FAE5",
"success-dark": "#065F46",
secondary: {
DEFAULT: "hsl(var(--secondary))",
rose: "hsl(var(--secondary-rose))",
lemon: "hsl(var(--secondary-lemon))",
lemonDark: "hsl(var(--secondary-lemon-dark))",
gray: "hsl(var(--secondary-gray))",
lavender: "hsl(var(--secondary-lavender))",
mint: "hsl(var(--secondary-mint))",
red: "hsl(var(--secondary-red))",
},
},
fontFamily: {
sans: ["Inter", ...fontFamily.sans],
instrument: ["Instrument Serif", ...fontFamily.serif],
},
keyframes: {
"accordion-down": {
from: { height: 0 },
to: { height: "var(--radix-accordion-content-height)" },
},
"accordion-up": {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: 0 },
},
marquee: {
"0%": { transform: "translateX(0%)" },
"100%": { transform: "translateX(-100%)" },
},
marquee2: {
"0%": { transform: "translateX(100%)" },
"100%": { transform: "translateX(0%)" },
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
marquee: "marquee 250s linear infinite reverse",
marquee2: "marquee2 250s linear infinite reverse",
},
},
},
plugins: [require("@tailwindcss/typography"), require("tailwindcss-animate")],
};