-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtailwind.config.js
102 lines (94 loc) · 2.62 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
const defaultTheme = require("tailwindcss/defaultTheme");
const colors = require("tailwindcss/colors");
module.exports = {
darkMode: "class",
content: [
"./layouts/**/*.{js,ts,jsx,tsx}",
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
fontFamily: {
sans: ["Inter", ...defaultTheme.fontFamily.sans],
},
colors: {
gray: colors.zinc,
brand: {
light: "#F98576",
DEFAULT: "#E95744",
dark: "#B83D2D",
},
beige: {
light: "#FFFBF5",
DEFAULT: "#EEE6DA",
dark: "#DACFBF",
},
code: {
DEFAULT: "#E95744",
background: "rgba(135,131,120,0.15)",
},
},
typography: (theme) => {
return {
DEFAULT: {
css: {
lineHeight: 1.5,
a: {
color: theme("colors.brand"),
"&:hover": {
color: theme("colors.brand.dark"),
},
},
code: {
backgroundColor: "rgba(135,131,120,0.15)",
color: "#E95744", // TODO SS: now working through the theme helper
fontWeight: 400,
fontSize: "0.85rem",
borderRadius: 3,
},
// Break out display + padding for code within paragraphs.
"p code": {
display: "inline-block",
padding: "0em 0.4em",
},
// Break out display + padding for code within lists.
"li code": {
display: "inline",
padding: "0.2em 0.4em",
},
// Need to separate these out otherwise typography plugin will override props placed in code {} above
"code::before": {
content: '""',
},
"code::after": {
content: '""',
},
pre: {
marginTop: 0,
marginBottom: 0,
borderRadius: 0,
},
},
},
sm: {
css: {
a: {
color: theme("colors.brand"),
"&:hover": {
color: theme("colors.brand.dark"),
},
},
pre: {
marginTop: 0,
marginBottom: 0,
borderRadius: 0,
},
},
},
};
},
},
},
plugins: [require("@tailwindcss/typography"), require("tailwindcss-radix")()],
};