forked from ocaml/ocaml.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
169 lines (157 loc) · 4.17 KB
/
tailwind.config.js
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
const defaultTheme = require("tailwindcss/defaultTheme")
module.exports = {
content: ["**/*.eml"],
darkMode: 'class',
theme: {
screens: {
'sm': '40em',
'md': '48em',
'lg': '64em',
'xl': '80em',
},
extend: {
typography: {
DEFAULT: {
css: [{
'code::before': {
content: '""',
},
'code::after': {
content: '""',
},
},{
h1: {
fontWeight: 700,
},
code: {
fontSize: "1em",
},
'h2 code': {
fontSize: "1em",
},
'h3 code': {
fontSize: "1em",
},
a: {
color: "#EE6A1A",
textDecoration: "none",
},
'a:hover': {
textDecoration: "underline",
}
}]
},
},
maxWidth: {
'8xl': '90rem',
},
fontFamily: {
sans: ["Inter var", ...defaultTheme.fontFamily.sans],
mono: ["Roboto Mono", ...defaultTheme.fontFamily.mono]
},
outline: {
primary: "2px solid #EE6A1A"
},
colors: {
primary: {
800: "#CD4E00",
700: "#DC5402",
600: "#EE6A1A",
300: "rgba(238, 106, 26, 0.48)",
200: "rgba(238, 106, 26, 0.15)",
100: "rgba(238, 106, 26, 0.1)",
},
code: {
blue: "rgba(86, 156, 214, 1)",
yellow: "rgba(220, 220, 170, 1)",
comment: "rgba(255, 255, 255, 0.6)",
red: "rgba(252, 129, 129, 1)",
background: "rgba(30, 30, 30, 1)",
},
sucess: {
100: "rgba(142, 233, 60, 0.1)",
600: "rgba(142, 233, 60, 1)",
},
global: {
default: "rgba(250, 248, 243, 1)",
},
divider: {
8: "rgba(26, 32, 44, 0.08)",
12: "rgba(26, 32, 44, 0.12)",
16: "rgba(26, 32, 44, 0.16)",
},
},
textColor: {
// Light mode
default: "#1A202C",
"lighter": "#4b5563",
// Dark mode
dark: {
"default": "#666",
/* TODO: add dark mode colors here when new ones are needed, should
usually correspond closely to the light mode color names, but not
necessarily always */
},
},
backgroundColor: {
default: "white",
"mild-contrast": "#FAF8F3",
"contrast": "#14294b", // one of the colors from the dark blue contrast patterned background used in various parts of the site
"search-keyboard-cursor": "#0C3B8C", // background for cursor highlighting in keyboard navigable areas (e.g. package search dropdown)
"search-term-highlight": "rgb(221, 232, 251)",
"learn-area-orange": "#C34711",
"learn-area-light-blue": "rgba(211, 213, 249, 0.60)",
"text-title": "#111827",
transparent: "transparent",
avatar: {
0: "#bb452a",
1: "#a35829",
2: "#926229",
3: "#746e29",
4: "#367a28",
5: "#2a7a54",
6: "#2c786d",
7: "#2e7587",
8: "#336db7",
9: "#6855e3",
10: "#ad35bc",
11: "#c62d69"
},
code: {
background: "rgba(30, 30, 30, 1)",
},
// Dark mode
dark: {
default: "#222",
"mild-contrast": "#171717",
/* TODO: add dark mode colors here when new ones are needed, should
usually correspond closely to the light mode color names, but not
necessarily always */
},
// FIXME: remove everything below here when it has been replaced
body: {
600: "#1A202C",
},
},
},
},
plugins: [
require("@tailwindcss/forms"),
require("@tailwindcss/typography"),
require("@tailwindcss/aspect-ratio"),
],
safelist: [
'bg-avatar-0',
'bg-avatar-1',
'bg-avatar-2',
'bg-avatar-3',
'bg-avatar-4',
'bg-avatar-5',
'bg-avatar-6',
'bg-avatar-7',
'bg-avatar-8',
'bg-avatar-9',
'bg-avatar-10',
'bg-avatar-11',
]
};