-
Notifications
You must be signed in to change notification settings - Fork 7
/
tailwind.config.js
67 lines (66 loc) · 2.13 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
/* eslint-disable @typescript-eslint/no-var-requires */
const { fontFamily } = require("tailwindcss/defaultTheme");
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
darkMode: "class",
theme: {
extend: {
colors: {
black: "rgb(var(--color-black) / <alpha-value>)",
white: "rgb(var(--color-white) / <alpha-value>)",
gray: {
50: "rgb(var(--color-gray-50) / <alpha-value>)",
100: "rgb(var(--color-gray-100) / <alpha-value>)",
200: "rgb(var(--color-gray-200) / <alpha-value>)",
300: "rgb(var(--color-gray-300) / <alpha-value>)",
400: "rgb(var(--color-gray-400) / <alpha-value>)",
500: "rgb(var(--color-gray-500) / <alpha-value>)",
600: "rgb(var(--color-gray-600) / <alpha-value>)",
700: "rgb(var(--color-gray-700) / <alpha-value>)",
800: "rgb(var(--color-gray-800) / <alpha-value>)",
900: "rgb(var(--color-gray-900) / <alpha-value>)",
},
},
fontFamily: {
sans: ["Inter var", ...fontFamily.sans],
},
typography: (theme) => ({
DEFAULT: {
css: {
a: {
color: theme("colors.blue.600"),
"&:hover": {
color: theme("colors.blue.700"),
},
code: { color: theme("colors.blue.600") },
},
":not(pre) > code": {
color: theme("colors.pink.600"),
},
"blockquote p": { color: theme("colors.gray.500") },
"blockquote p:first-of-type::before": false,
"blockquote p:last-of-type::after": false,
},
},
dark: {
css: {
a: {
color: theme("colors.blue.500"),
"&:hover": {
color: theme("colors.blue.600"),
},
code: { color: theme("colors.blue.500") },
},
":not(pre) > code": {
color: theme("colors.pink.500"),
},
},
},
}),
},
},
plugins: [require("@tailwindcss/typography")],
};