-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.mjs
More file actions
116 lines (115 loc) · 3.77 KB
/
Copy pathtailwind.config.mjs
File metadata and controls
116 lines (115 loc) · 3.77 KB
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
import typography from "@tailwindcss/typography";
/** @type {import('tailwindcss').Config} */
export default {
content: ["./src/**/*.{html,js,svelte,ts}"],
darkMode: "class",
safelist: [
{
pattern:
/^(bg|text|border|ring)-(cobalt|tanzanite|malachite|gold|terracotta)(-container|-on-container)?$/,
},
],
theme: {
extend: {
colors: {
cobalt: {
DEFAULT: "var(--color-cobalt)",
container: "var(--color-cobalt-container)",
"on-container": "var(--color-cobalt-on-container)",
},
tanzanite: {
DEFAULT: "var(--color-tanzanite)",
container: "var(--color-tanzanite-container)",
"on-container": "var(--color-tanzanite-on-container)",
},
malachite: {
DEFAULT: "var(--color-malachite)",
container: "var(--color-malachite-container)",
"on-container": "var(--color-malachite-on-container)",
},
gold: {
DEFAULT: "var(--color-gold)",
container: "var(--color-gold-container)",
"on-container": "var(--color-gold-on-container)",
},
terracotta: {
DEFAULT: "var(--color-terracotta)",
container: "var(--color-terracotta-container)",
"on-container": "var(--color-terracotta-on-container)",
},
background: "var(--background)",
foreground: "var(--foreground)",
canvas: "var(--canvas)",
ink: "var(--ink)",
primary: {
DEFAULT: "var(--primary)",
foreground: "var(--primary-foreground)",
},
secondary: {
DEFAULT: "var(--secondary)",
foreground: "var(--secondary-foreground)",
},
muted: {
DEFAULT: "var(--muted)",
foreground: "var(--muted-foreground)",
},
accent: {
DEFAULT: "var(--accent)",
foreground: "var(--accent-foreground)",
},
card: {
DEFAULT: "var(--card)",
foreground: "var(--card-foreground)",
},
border: "var(--border)",
input: "var(--input)",
ring: "var(--ring)",
},
fontFamily: {
sans: ['"Noto Sans"', "system-ui", "sans-serif"],
serif: ['"Noto Serif"', "Georgia", "serif"],
mono: ['"JetBrains Mono"', "ui-monospace", "monospace"],
},
fontSize: {
display: [
"clamp(2.5rem, 5vw + 1rem, 4.5rem)",
{ lineHeight: "1.1", letterSpacing: "-0.025em", fontWeight: "700" },
],
"display-sm": [
"clamp(2.25rem, 4vw + 1rem, 3.75rem)",
{ lineHeight: "1.1", letterSpacing: "-0.02em", fontWeight: "700" },
],
h1: [
"clamp(2rem, 3vw + 1rem, 3rem)",
{ lineHeight: "1.15", letterSpacing: "-0.02em", fontWeight: "700" },
],
h2: [
"clamp(1.75rem, 2vw + 1rem, 2.25rem)",
{ lineHeight: "1.2", letterSpacing: "-0.015em", fontWeight: "600" },
],
h3: [
"clamp(1.5rem, 1.5vw + 1rem, 1.875rem)",
{ lineHeight: "1.25", letterSpacing: "-0.01em", fontWeight: "600" },
],
h4: [
"1.5rem",
{ lineHeight: "1.3", letterSpacing: "-0.005em", fontWeight: "600" },
],
h5: ["1.25rem", { lineHeight: "1.4", fontWeight: "600" }],
h6: ["1rem", { lineHeight: "1.4", fontWeight: "600" }],
"body-lg": ["1.125rem", { lineHeight: "1.6" }],
body: ["1rem", { lineHeight: "1.6" }],
"body-sm": ["0.875rem", { lineHeight: "1.5" }],
caption: ["0.75rem", { lineHeight: "1.5", letterSpacing: "0.02em" }],
},
maxWidth: {
prose: "65ch",
narrow: "42rem",
},
transitionTimingFunction: {
soft: "cubic-bezier(0.4, 0, 0.2, 1)",
},
},
},
plugins: [typography],
};