forked from ethereum/ethereum-org-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
129 lines (127 loc) · 4.15 KB
/
tailwind.config.ts
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
import type { Config } from "tailwindcss"
const config = {
darkMode: ["class"],
content: [
"./src/**/*.{ts,tsx}",
// TODO: remove after migration
"./tailwind/**/*.tsx",
],
prefix: "",
theme: {
extend: {
fontFamily: {
heading: "var(--font-inter)",
body: "var(--font-inter)",
monospace: "var(--font-mono)",
},
fontSize: {
"6xl": ["3.75rem", "1.2"], // [6xl, 4xs]
"5xl": ["3rem", "1.2"], // [5xl, 4xs]
"4xl": ["2.25rem", "1.2"], // [4xl, 4xs]
"3xl": ["1.875rem", "1.3"], // [3xl, 2xs]
"2xl": ["1.5rem", "1.3"], // [2xl, 2xs]
xl: ["1.25rem", "1.4"], // [xl, xs]
lg: ["1.125rem", "1.6"], // [lg, base]
md: ["1rem", "1.6"], // [md, base]
sm: ["0.875rem", "1.6"], // [sm, base]
xs: ["0.75rem", "1.6"], // [xs, base]
},
lineHeight: {
"6xs": "1.1",
"5xs": "1.15",
"4xs": "1.2",
"3xs": "1.25",
"2xs": "1.3",
xs: "1.4",
sm: "1.5",
base: "1.6",
},
colors: {
primary: {
DEFAULT: "var(--primary)",
"high-contrast": "var(--primary-high-contrast)",
"low-contrast": "var(--primary-low-contrast)",
hover: "var(--primary-hover)",
visited: "var(--primary-visited)",
light: "var(--primary-light)",
dark: "var(--primary-dark)",
pressed: "var(--primary-pressed)",
},
body: {
DEFAULT: "var(--body)",
medium: "var(--body-medium)",
light: "var(--body-light)",
inverted: "var(--body-inverted)",
},
background: {
DEFAULT: "var(--background)",
highlight: "var(--background-highlight)",
},
disabled: "var(--disabled)",
neutral: "var(--neutral)",
"tooltip-shadow": "var(--tooltip-shadow)",
"switch-background": "var(--switch-background)",
"hub-hero-content-bg": "var(--hub-hero-content-bg)",
attention: {
DEFAULT: "var(--attention)",
light: "var(--attention-light)",
outline: "var(--attention-outline)",
},
error: {
DEFAULT: "var(--error)",
light: "var(--error-light)",
outline: "var(--error-outline)",
neutral: "var(--error-neutral)",
},
success: {
DEFAULT: "var(--success)",
light: "var(--success-light)",
outline: "var(--success-outline)",
neutral: "var(--success-neutral)",
},
},
backgroundImage: {
"bg-main-gradient": "var(--bg-main-gradient)",
},
boxShadow: {
"table-box": "var(--table-box-shadow)",
table:
"0 14px 66px rgba(0,0,0,.07), 0 10px 17px rgba(0,0,0,.03), 0 4px 7px rgba(0,0,0,.05)",
drop: "0 4px 17px 0 rgba(0,0,0,0.08)",
"table-box-hover": "0px 8px 17px rgba(0, 0, 0, 0.15)",
"table-item-box": "var(--table-item-box-shadow)",
"table-item-box-hover": "0 0 1px var(--primary)",
"grid-yellow-box-shadow": "8px 8px 0px 0px #ffe78e",
"grid-blue-box-shadow": "8px 8px 0px 0px #a7d0f4",
// Part of new DS
"menu-accordion":
"0px 2px 2px 0px rgba(0, 0, 0, 0.12) inset, 0px -3px 2px 0px rgba(0, 0, 0, 0.14) inset",
// TODO: From current theme. Deprecate for 'button-hover'
primary: "4px 4px 0px 0px var(--primary)",
"button-hover": "4px 4px 0 0 var(--primary-low-contrast)",
tooltip: "0 0 16px var(--tooltip-shadow)",
},
spacing: {
7.5: "1.875rem",
10.5: "2.625rem",
19: "4.75rem", // Nav height
},
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" },
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
},
},
},
plugins: [require("tailwindcss-animate")],
} satisfies Config
export default config