-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
42 lines (42 loc) · 1.1 KB
/
tailwind.config.cjs
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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
extend: {},
screens: {
sm: "640px",
md: "768px",
lg: "1024px",
},
},
plugins: [
function ({ addComponents, theme }) {
addComponents({
".h1": {
paddingBottom: theme("spacing.4"),
paddingTop: theme("spacing.4"),
margin: "auto",
fontSize: theme("fontSize.3xl"),
fontWeight: theme("fontWeight.bold"),
},
".h2": {
paddingBottom: theme("spacing.3"),
paddingTop: theme("spacing.3"),
margin: "auto",
fontSize: theme("fontSize.2xl"),
fontWeight: theme("fontWeight.bold"),
},
".h3": {
paddingBottom: theme("spacing.2"),
paddingTop: theme("spacing.2"),
margin: "auto",
fontSize: theme("fontSize.xl"),
fontWeight: theme("fontWeight.bold"),
},
".warning-icon": {
fill: theme("colors.yellow.500"),
},
});
},
],
};