-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
49 lines (47 loc) · 1.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
/** @type {import('tailwindcss').Config} */
const pxToRem = (pxValue, base = 16) => `${pxValue / base}rem`;
module.exports = {
content: [
"./app/**/*.{ts,tsx}",
"./components/**/*.{ts,tsx}",
"./content/**/*.{md,mdx}",
],
darkMode: ["class"],
theme: {
colors: {
black: "#121212",
white: "#ffffff",
green: "#1ed760",
"gray-100": "#f3f3f6",
"gray-200": "#eaebef",
"gray-300": "#dfe1e5",
"gray-400": "#cfd4da",
"gray-500": "#afb6bd",
"gray-600": "#888d96",
"gray-700": "#4b5057",
"gray-800": "#353a40",
"gray-900": "#222529",
},
extend: {
spacing: {
...(() => {
const values = {};
for (let i = 1; i <= 500; i++) {
values[`${i}pxr`] = pxToRem(i);
}
return values;
})(),
},
typography: (theme) => ({
DEFAULT: {
css: {
"--tw-prose-headings": theme("colors.black"),
"--tw-prose-body": theme("colors.gray.900"),
"--tw-prose-invert-body": theme("colors.gray.100"),
},
},
}),
},
},
plugins: [require("@tailwindcss/typography")],
};