-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.mjs
98 lines (98 loc) · 2.54 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/** @type {import('tailwindcss').Config} */
export default {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
extend: {
colors: {
brand: "#8B1717",
},
animation: {
"fade-in-up": "fade-in-up 0.3s ease-in forwards",
"fade-in": "fade-in 0.3s ease-in forwards",
},
screens: {
notouch: { raw: "(hover: hover)" },
'xxxs': "300px",
'xxs': "350px",
'xs': '480px',
"2xl": "1440px",
},
keyframes: {
"fade-in-up": {
"0%": {
opacity: "0",
transform: "translateY(5rem)",
},
"100%": {
opacity: "1",
transform: "translateY(0)",
},
},
"fade-in": {
"0%": {
opacity: "0",
},
"100%": {
opacity: "1",
},
},
},
fontFamily: {
sans: ["Schibsted Grotesk", "sans-serif"],
serif: ["Playfair Display", "serif"],
},
typography: (theme) => ({
DEFAULT: {
css: {
"--tw-prose-links": theme("colors.brand"),
fontFamily: theme("fontFamily.sans").join(","),
color: theme("colors.gray.700"),
maxWidth: "100%",
width: "70ch",
a: {
textDecoration: "underline",
textUnderlineOffset: "3px",
color: theme("colors.brand"),
"&:hover": {
textDecoration: "underline",
},
},
"h1,h2,h3,h4": {
fontFamily: theme("fontFamily.serif").join(","),
fontWeight: "600",
},
h1: {
fontSize: theme("fontSize.4xl"),
},
h2: {
fontSize: theme("fontSize.4xl"),
marginTop: theme("spacing.10"),
marginBottom: theme("spacing.3"),
},
h3: {
fontSize: theme("fontSize.2xl"),
},
strong: {
fontWeight: "800",
},
},
},
lg: {
css: {
h1: {},
h2: {
fontSize: theme("fontSize.5xl"),
marginTop: theme("spacing.10"),
marginBottom: theme("spacing.3"),
},
h3: {
marginTop: theme("spacing.6"),
marginBottom: theme("spacing.3"),
},
},
},
}),
},
},
plugins: [require("@tailwindcss/typography")],
};