-
Notifications
You must be signed in to change notification settings - Fork 125
/
tailwind.config.js
183 lines (182 loc) · 4.75 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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
const round = (num) =>
num
.toFixed(7)
.replace(/(\.[0-9]+?)0+$/, "$1")
.replace(/\.0$/, "");
// const rem = (px) => `${round(px / 16)}rem`
const em = (px, base) => `${round(px / base)}em`;
module.exports = {
mode: "jit",
content: [
"./src/components/**/*.{js,ts,jsx,tsx}",
"./src/pages/**/*.{js,ts,jsx,tsx}",
"./src/theme/**/*.{js,ts,jsx,tsx}",
],
/* Hotfix: Disable Tailwind's preflight to resolve clipboard functionality issues in Safari */
corePlugins: {
preflight: false, // to use Docusaurus base styles
// container: false, // use container style from docusaurus
},
// important: "#tailwind", // incrementally adopt Tailwind by wrapping pages with <div id="tailwind"> </div>
theme: {
extend: {
typography: {
DEFAULT: {
css: {
color: "var(--ifm-color)",
h1: {
color: "var(--ifm-color)",
},
h2: {
color: "var(--ifm-color)",
},
h3: {
color: "var(--ifm-color)",
},
h4: {
color: "var(--ifm-color)",
},
li: {
color: "var(--ifm-color)",
},
strong: {
color: "var(--ifm-color)",
},
table: {
thead: {
color: "var(--ifm-color)",
},
"thead th:first-child": {
paddingLeft: em(8, 14),
},
"tbody td:first-child": {
paddingLeft: em(8, 14),
},
"tbody td:last-child": {
paddingRight: em(8, 14),
},
"tbody td": {
paddingTop: em(2, 14),
paddingBottom: em(2, 14),
},
},
blockquote: {
// border: "none",
color: "var(--ifm-color)",
// backgroundColor: "transparent",
fontSize: "inherit",
fontStyle: "inherit",
fontWeight: "medium",
},
"blockquote p:first-of-type::before": {
content: "",
},
"blockquote p:last-of-type::after": {
content: "",
},
img: {
borderRadius: "0.5rem",
display: "inline",
},
"code::before": false,
"code::after": false,
code: {
color: "var(--ifm-color)",
"border-radius": "0.25rem",
padding: "0.15rem 0.3rem",
},
pre: {
borderWidth: "2px",
},
a: {
color: "#E67643",
"&:hover": {
color: "#C95919",
},
},
},
},
},
transitionDelay: {
3000: "3000ms",
},
fontFamily: {
light: ["Roboto Light", "sans"],
/* Disable Roboto Bold to prevent fallback to Times font for highlighted text in the right article index sidebar and h3 elements on the homepage */
// bold: ["Roboto Bold", "sans"],
},
keyframes: {
"fade-in-down": {
"0%": {
opacity: "0",
transform: "translateY(-10px)",
},
"100%": {
opacity: "1",
transform: "translateY(0)",
},
},
},
animation: {
"fade-in-down": "fade-in-down 0.5s ease-out",
},
colors: {
offwhite: "#F2F2F2",
keployblue: "#B2E7EA",
keploybrightblue: "#127AE5",
keploypurple: "#B8B4DC",
keploybrightpurple: "#8F86DA",
spaceblack: "#141414",
green1: "#9EE587",
green2: "#32D67B",
orange1: "#FFA280",
orange2: "#FF7065",
gray5: "#E0E0E0",
lightgray: "rgba(242,242,242,0.5)",
lightteal: "#C7EDEF",
},
boxShadow: {
keployblue: "0 25px 50px -12px rgba(178, 231, 234, 0.1)",
},
gridTemplateColumns: {
usecases: "200px minmax(0, 1fr)",
},
maxWidth: {
700: "700px",
},
width: {
200: "200px",
300: "300px",
700: "700px",
800: "800px",
"3/1": "300%",
},
height: {
60: "60px",
200: "200px",
300: "300px",
400: "400px",
700: "700px",
800: "800px",
"3/1": "300%",
},
fontSize: {
17: "17px",
60: "60px",
144: "144px",
},
lineHeight: {
25: "25px",
36: "36px",
48: "48px",
60: "60px",
72: "72px",
144: "144px",
},
zIndex: {
"-1": "-1",
},
},
},
plugins: [require("@tailwindcss/typography")],
};