-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.js
104 lines (103 loc) · 2.75 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
const colors = require("tailwindcss/colors");
const { opacity } = require("tailwindcss/defaultTheme");
module.exports = {
mode: "jit",
purge: ["./pages/**/*.{js,ts,jsx,tsx}", "./components/**/*.{js,ts,jsx,tsx}"],
darkMode: false, // or 'media' or 'class'
theme: {
fontFamily: {
display: ["Uncial Antiqua", "Open Sans", "system-ui", "sans-serif"],
sans: ["Open Sans", "system-ui", "sans-serif"],
},
extend: {
lineClamp: {
7: "7",
8: "8",
9: "9",
10: "10",
},
dropShadow: {
featured: " 0px 0px 8px 0px rgba(251,191,36,1)",
},
colors: {
primary: {
// TODO: Add light and dark versions
DEFAULT: "#FF3864",
dark: "#DB2B52",
info: "#12DDEA",
},
dark: {
DEFAULT: "#2D0D40",
darker: "#170422",
maron: "#4C1345",
},
transparent: "transparent",
white: colors.white,
current: "currentColor",
pinkPurple: "linear-gradient(270deg, #7C3AED 0%, #EC4899 100%)",
},
// refer to: https://github.com/tailwindlabs/tailwindcss-typography/blob/master/src/styles.js
typography: (theme) => ({
DEFAULT: {
css: {
color: theme("colors.white"),
fontSize: "1.25em",
p: {
opacity: 0.9,
},
blockquote: {
borderLeftColor: theme("colors.primary.DEFAULT"),
color: colors.gray[300],
fontWeight: "600",
},
a: {
color: theme("colors.primary.DEFAULT"),
"&:hover": {
color: theme("colors.pink[600]"),
cursor: "pointer",
},
},
code: {
color: colors.gray[300],
},
strong: {
color: theme("colors.white"),
},
"figure figcaption": {
color: theme("colors.gray.400"),
},
h1: {
color: theme("colors.white"),
},
h2: {
color: theme("colors.white"),
},
h3: {
color: theme("colors.white"),
},
h4: {
color: theme("colors.white"),
},
h5: {
color: theme("colors.white"),
},
h6: {
color: theme("colors.white"),
},
".lead": {
color: theme("colors.primary.DEFAULT"),
},
},
},
}),
},
},
variants: {
extend: {},
},
plugins: [
require("@tailwindcss/typography"),
require("@tailwindcss/line-clamp"),
require("@tailwindcss/aspect-ratio"),
],
};