-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.mjs
93 lines (92 loc) · 2.58 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
92
93
/** @type {import('tailwindcss').Config} */
export default {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
extend: {
fontFamily: {
sans: [
"Lexend Deca",
"Arial",
"Helvetica",
"ui-sans-serif",
"system-ui",
"sans-serif",
],
mono: [
"Jetbrains Mono",
"ui-monospace",
"Consolas",
"Courier New",
"Courier",
"monospace",
],
},
keyframes: {
scroll: {
"100%": {
transform: "translate(calc(-50% - var(--gap) / 2))",
},
},
},
animation: {
scroll:
"scroll var(--duration, 30s) var(--direction, forwards) linear infinite",
},
typography: (theme) => ({
DEFAULT: {
css: {
// make `inline code` have the same style as Github's
"code::before": {
content: "",
},
"code::after": {
content: "",
},
code: {
paddingInlineStart: ".4em",
paddingInlineEnd: ".4em",
paddingTop: ".2em",
paddingBottom: ".2em",
borderRadius: ".4em",
backgroundColor: theme("colors.gray.800"),
},
// no quote inside blockquote
"blockquote p:first-of-type::before": {
content: "",
},
"blockquote p:last-of-type::after": {
content: "",
},
// visited link color & hover effect
"a:hover": {
textDecorationThickness: "1.3px",
},
":not(sup) > a:visited": {
color: "var(--tw-prose-invert-links-visited)",
},
// slighly more thick strikethrough
del: {
textDecorationThickness: "1.5px",
},
},
},
cyan: {
css: {
// white -> gray.50
"--tw-prose-invert-headings": theme("colors.gray[50]"),
"--tw-prose-invert-bold": theme("colors.gray[50]"),
"--tw-prose-invert-kbd": theme("colors.gray[50]"),
"--tw-prose-invert-code": theme("colors.gray[50]"),
// links -> cyan
"--tw-prose-invert-links": theme("colors.cyan[500]"),
"--tw-prose-invert-links-visited": theme("colors.cyan[600]"),
},
},
}),
},
},
plugins: [
require("@lostisworld/tailwind-mask"),
require("@tailwindcss/typography"),
],
};