-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy pathtailwind.config.ts
136 lines (134 loc) · 3.29 KB
/
tailwind.config.ts
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
import typographyPlugin from "@tailwindcss/typography";
import type { Config } from "tailwindcss";
import colors from "tailwindcss/colors";
import animatePlugin from "tailwindcss-animate";
import reactAriaComponentsPlugin from "tailwindcss-react-aria-components";
const config = {
content: [
"./app/**/*.@(ts|tsx)",
"./components/**/*.@(ts|tsx)",
"./config/**/*.@(ts|tsx)",
"./lib/**/*.@(ts|tsx)",
"./styles/**/*.css",
],
corePlugins: {
container: false,
},
plugins: [animatePlugin, reactAriaComponentsPlugin, typographyPlugin],
theme: {
extend: {
boxShadow: {
sm: "rgba(0, 0, 0, 0.08) 0px 2px 8px 0px",
md: "rgba(0, 0, 0, 0.08) 0px 5px 15px 0px",
lg: "rgba(0, 0, 0, 0.12) 0px 10px 35px 0px",
},
colors: {
error: colors.red,
success: colors.green,
warning: colors.yellow,
important: colors.blue,
neutral: colors.neutral,
brand: {
"50": "#f0f9ff",
"100": "#dff3ff",
"200": "#b9e7fe",
"300": "#7bd7fe",
"400": "#34c2fc",
"500": "#0aaced",
"600": "#0089cb",
"700": "#006699" /** Logo color. */,
"800": "#055d87",
"900": "#0a4c70",
"950": "#07304a",
},
},
fontFamily: {
body: ["var(--font-body)", "system-ui", "sans-serif"],
},
gridTemplateColumns: {
"content-layout": "1fr 720px 1fr",
},
maxWidth: {
content: "720px",
},
ringOffsetWidth: {
DEFAULT: "2px",
},
typography(theme: (key: string) => string) {
return {
DEFAULT: {
css: {
maxWidth: "none",
/** Don't add quotes around `blockquote`. */
"blockquote p:first-of-type::before": null,
"blockquote p:last-of-type::after": null,
/** Don't add backticks around inline `code`. */
"code::before": null,
"code::after": null,
"overflow-wrap": "break-word",
"a:focus": {
outline: "none",
},
"a:focus-visible": {
borderRadius: theme("borderRadius.DEFAULT"),
color: theme("colors.primary.600"),
boxShadow: `white 0px 0px 0px 2px, ${theme("colors.primary.600")} 0px 0px 0px 5px`,
},
"figcaption > p:first-child": {
marginTop: 0,
},
"figcaption > p:last-child": {
marginBottom: 0,
},
pre: {
/** Match `poimandres` theme. */
backgroundColor: "#1b1e28",
},
strong: {
color: "inherit",
},
h2: {
fontSize: theme("fontSize.2xl")[0],
fontWeight: theme("fontWeight.bold"),
},
h3: {
fontSize: theme("fontSize.xl")[0],
fontWeight: theme("fontWeight.bold"),
},
h4: {
fontSize: theme("fontSize.lg")[0],
fontWeight: theme("fontWeight.bold"),
},
h5: {
fontSize: theme("fontSize.base")[0],
fontWeight: theme("fontWeight.bold"),
},
h6: {
fontSize: theme("fontSize.base")[0],
fontStyle: "italic",
},
".no-list": {
listStyle: "none",
paddingLeft: 0,
},
".no-list p": {
marginTop: "0.5em",
marginBottom: "0.5em",
},
},
},
};
},
},
screens: {
"2xs": "360px",
xs: "480px",
sm: "640px",
md: "840px",
lg: "1048px",
xl: "1280px",
"2xl": "1440px",
},
},
} satisfies Config;
export default config;