-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.js
84 lines (79 loc) · 2.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
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
const plugin = require("tailwindcss/plugin");
const palette = require("tailwindcss/colors");
const colors = {
...palette,
accent: palette.teal[500],
"accent-red": palette.red[500],
"accent-yellow": palette.yellow[500],
primary: palette.trueGray[900],
secondary: palette.coolGray[400],
background: palette.trueGray[100],
foreground: palette.white,
};
const typographyPlugin = plugin(function ({ addComponents }) {
const types = {
".text-display": {
fontSize: "2.25rem",
fontWeight: "bold",
lineHeight: "2.5rem",
letterSpacing: "0",
textTransform: "none",
},
".text-title": {
fontSize: "1.5rem",
fontWeight: "bold",
lineHeight: "2rem",
letterSpacing: "0",
textTransform: "none",
},
".text-subtitle": {
fontSize: "0.875rem",
fontWeight: "normal",
lineHeight: "1.125rem",
letterSpacing: "0",
textTransform: "none",
},
".text-overline": {
fontSize: "0.75rem",
fontWeight: "normal",
lineHeight: "1rem",
letterSpacing: "0.025rem",
textTransform: "uppercase",
},
".text-body": {
fontSize: "0.875rem",
fontWeight: "normal",
lineHeight: "1.125rem",
letterSpacing: "0px",
textTransform: "none",
},
};
addComponents(types);
});
module.exports = {
theme: {
extend: {
colors: colors,
textColor: {
primary: colors.coolGray[700],
},
},
fontFamily: {
sans: ["Arial"],
},
screens: {
base: "0px",
md: "768px",
// => @media (min-width: 768px) { ... }
lg: "1024px",
// => @media (min-width: 1024px) { ... }
xl: "1280px",
// => @media (min-width: 1280px) { ... }
},
},
plugins: [
require("tailwindcss-debug-screens"),
require("@tailwindcss/custom-forms"),
typographyPlugin,
],
};