-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.mjs
77 lines (77 loc) · 2.06 KB
/
tailwind.config.mjs
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
/** @type {import('tailwindcss').Config} */
const defaultTheme = require("tailwindcss/defaultTheme");
export default {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
extend: {
fontSize: {
sm: "clamp(0.8rem, 0.17vi + 0.76rem, 0.89rem)",
base: "clamp(1rem, 0.34vi + 0.91rem, 1.19rem)",
lg: "clamp(1.25rem, 0.61vi + 1.1rem, 1.58rem)",
xl: "clamp(1.56rem, 1vi + 1.31rem, 2.11rem)",
"2xl": "clamp(1.95rem, 1.56vi + 1.56rem, 2.81rem)",
"3xl": "clamp(2.44rem, 2.38vi + 1.85rem, 3.75rem)",
"4xl": "clamp(3.05rem, 3.54vi + 2.17rem, 5rem)",
"5xl": "clamp(3.81rem, 5.18vi + 2.52rem, 6.66rem)",
},
fontFamily: {
display: ["Silkscreen", defaultTheme.fontFamily.serif],
body: ["Geist", defaultTheme.fontFamily.sans],
mono: ["Geist-Mono", defaultTheme.fontFamily.mono],
},
animation: {
marquee1: "marquee1 20s linear infinite",
marquee2: "marquee2 20s linear infinite",
},
keyframes: {
marquee1: {
"0%": { transform: "translateX(100%)" },
"100%": { transform: "translateX(0%)" },
},
marquee2: {
"0%": { transform: "translateX(0%)" },
"100%": { transform: "translateX(-100%)" },
},
},
colors: {
primary: "hsl(8.5,82.4%,53.1%)",
},
typography: (theme) => ({
DEFAULT: {
css: {
"code::before": {
content: '""',
},
"code::after": {
content: '""',
},
":not(pre) > code": {
border: "1px solid",
padding: "0.250rem 0.4rem",
borderRadius: "0.250rem",
fontWeight: "400",
},
":not(pre) > a > code": {
transition: "color 0.2s ease-in-out",
},
},
},
invert: {
css: {
":not(pre) > code": {
backgroundColor: theme("colors.neutral.800"),
borderColor: theme("colors.zinc.700"),
},
":not(pre) > a > code": {
color: theme("colors.neutral.300"),
},
":not(pre) > a > code:hover": {
color: theme("colors.white"),
},
},
},
}),
},
},
plugins: [require("@tailwindcss/typography")],
};