-
Notifications
You must be signed in to change notification settings - Fork 5
/
tailwind.config.js
41 lines (40 loc) · 1008 Bytes
/
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
const defaultTheme = require("tailwindcss/defaultTheme")
module.exports = {
purge: ["./pages/**/*.js", "./src/components/*.js"],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
fontFamily: {
sans: ["Inter var", ...defaultTheme.fontFamily.sans],
},
typography: (theme) => ({
DEFAULT: {
css: {
color: theme("colors.white"),
a: {
color: theme("colors.pink.400"),
textDecoration: "none",
"&:hover": {
textDecoration: "underline",
},
},
p: {
wordBreak: "break-word",
overflow: "hidden",
textOverflow: "ellipsis",
},
"pre code": {
whiteSpace: "pre-line",
},
},
},
}),
},
},
variants: {
extend: {
borderStyle: ["hover", "focus"],
},
},
plugins: [require("@tailwindcss/typography")],
}