Repository navigation
Expand file tree
/
Copy pathtailwind.config.js
More file actions
82 lines (81 loc) · 2.42 KB
/
Copy pathtailwind.config.js
File metadata and controls
82 lines (81 loc) · 2.42 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
import animate from "tailwindcss-animate"
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./app/**/*.{js,jsx}",
"./components/**/*.{js,jsx}",
"./lib/**/*.{js,jsx}",
],
theme: {
extend: {
// Secondary text never drops below 15–16px; body is 17px.
fontSize: {
xs: ["0.9375rem", { lineHeight: "1.375rem" }],
sm: ["1rem", { lineHeight: "1.5rem" }],
base: ["1.0625rem", { lineHeight: "1.65rem" }],
lg: ["1.1875rem", { lineHeight: "1.75rem" }],
xl: ["1.3125rem", { lineHeight: "1.85rem" }],
},
colors: {
border: "hsl(var(--border))",
input: "hsl(var(--input))",
ring: "hsl(var(--ring))",
background: "hsl(var(--background))",
foreground: {
DEFAULT: "hsl(var(--foreground))",
soft: "hsl(var(--foreground-soft))",
},
primary: {
DEFAULT: "hsl(var(--primary))",
hover: "hsl(var(--primary-hover))",
foreground: "hsl(var(--primary-foreground))",
soft: "hsl(var(--primary-soft))",
},
secondary: {
DEFAULT: "hsl(var(--secondary))",
foreground: "hsl(var(--secondary-foreground))",
},
destructive: {
DEFAULT: "hsl(var(--destructive))",
foreground: "hsl(var(--destructive-foreground))",
soft: "hsl(var(--destructive-soft))",
},
success: {
DEFAULT: "hsl(var(--success))",
soft: "hsl(var(--success-soft))",
},
muted: {
DEFAULT: "hsl(var(--muted))",
foreground: "hsl(var(--muted-foreground))",
},
accent: {
DEFAULT: "hsl(var(--accent))",
foreground: "hsl(var(--accent-foreground))",
},
popover: {
DEFAULT: "hsl(var(--popover))",
foreground: "hsl(var(--popover-foreground))",
},
card: {
DEFAULT: "hsl(var(--card))",
foreground: "hsl(var(--card-foreground))",
},
},
borderRadius: {
lg: "calc(var(--radius) + 2px)",
md: "var(--radius)",
sm: "calc(var(--radius) - 2px)",
},
boxShadow: {
raised: "0 1px 2px rgb(18 21 28 / 0.04), 0 8px 24px rgb(18 21 28 / 0.06)",
},
fontFamily: {
sans: ["var(--font-sans)", "system-ui", "sans-serif"],
},
maxWidth: {
page: "75rem",
},
},
},
plugins: [animate],
}