-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.mjs
91 lines (90 loc) · 3.05 KB
/
tailwind.config.mjs
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
const plugin = require("tailwindcss/plugin");
/** @type {import('tailwindcss').Config} */
export default {
content: ["./src/**/*.{astro,md,mdx,ts,tsx}"],
darkMode: "selector",
theme: {
extend: {
colors: {
transparent: "transparent",
current: "currentColor",
primary: "rgb(var(--color-primary) / <alpha-value>)"
},
fontSize: {
"2xs": ".6875rem"
},
fontFamily: {
sans: "var(--font-inter)",
display: "var(--font-mona-sans)"
},
opacity: {
2.5: "0.025",
7.5: "0.075",
15: "0.15"
}
}
},
plugins: [
require("@tailwindcss/typography"),
plugin(function ({ addComponents, theme }) {
addComponents({
".kg-card": {
color: theme("colors.slate.900"),
backgroundColor: theme("colors.white"),
borderRadius: theme("borderRadius.lg"),
boxShadow: theme("boxShadow.sm"),
overflow: "hidden"
},
".prose .kg-card a": {
color: theme("colors.slate.900"),
textDecoration: "none"
},
".prose .kg-card a:after": {
content: "''"
},
".kg-card img": {
margin: "0"
},
".kg-bookmark-container": {
width: "100%",
display: "flex",
gap: theme("spacing.4"),
alignItems: "center",
textDecoration: "none"
},
".kg-bookmark-content": {
flexGrow: "1",
paddingTop: theme("spacing.2"),
paddingBottom: theme("spacing.2"),
paddingLeft: theme("spacing.4"),
paddingRight: theme("spacing.4")
},
".kg-bookmark-title": {
fontWeight: "bold"
},
".kg-bookmark-description": {
fontSize: "0.8em",
color: theme("colors.slate.500")
},
".kg-bookmark-metadata": {
display: "flex",
fontSize: "0.8em",
gap: "0.5rem",
alignItems: "center",
marginTop: theme("spacing.4")
},
".kg-bookmark-metadata .kg-bookmark-publisher": {
opacity: theme("opacity.50")
},
".kg-bookmark-icon": {
width: theme("spacing.10"),
height: theme("spacing.10")
},
".kg-bookmark-thumbnail img": {
width: theme("spacing.64"),
objectFit: "cover"
}
});
})
]
};