-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
71 lines (70 loc) · 1.43 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
const defaultConfig = require("tailwindcss/defaultConfig.js");
module.exports = {
content: ["./src/**/*.hbs", "./src/**/*.md", "./src/static/js/**/*.js"],
theme: {
extend: {
fontFamily: {
header: [
"Raleway",
"system-ui",
"-apple-system",
"'Segoe UI'",
"Roboto",
"Helvetica",
"sans-serif",
],
content: [
"Lato",
"system-ui",
"-apple-system",
"'Segoe UI'",
"Roboto",
"Helvetica",
"sans-serif",
],
},
listStyleType: {
latin: "lower-latin",
},
scale: {
85: "0.85",
115: "1.15",
120: "1.20",
},
translate: (theme, { negative }) => ({
...theme("spacing"),
...negative(theme("spacing")),
"-full": "-100%",
"-1/2": "-50%",
"-1/4": "-25%",
"1/4": "25%",
"1/2": "50%",
full: "100%",
}),
maxWidth: {
"7xl": "80rem",
"8xl": "88rem",
"9xl": "96rem",
"10xl": "104rem",
},
spacing: {
13: "3.25rem",
15: "3.75rem",
17: "4.25rem",
18: "4.5rem",
19: "4.75rem",
},
},
screens: {
// cannot use 'extend' as `xs` would override other screens
// since it would be added to the bottom of the css file
xs: "480px",
...defaultConfig.theme.screens,
// navbar has to be behind lg to override it
navbar: "1100px",
// xl and more are heavier than 'navbar'
xl: defaultConfig.theme.screens.xl,
"2xl": defaultConfig.theme.screens["2xl"],
},
},
};