-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
132 lines (132 loc) · 4.52 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
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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
darkMode: 'class',
theme: {
fontSize: {
xs: "0.75rem",
sm: "0.875rem",
base: "1rem",
lg: "1.125rem",
xl: "1.25rem",
"2xl": "1.5rem",
"3xl": "1.875rem",
},
lineHeight: {
normal: "1.75",
relaxed: "1.77",
loose: "1.8",
},
extend: {
fontFamily: {
body: ["Inter", "sans-serif"],
heading: ["Syne", "sans-serif"],
},
colors: {
transparent: "transparent",
current: "currentColor",
primary: {
main: "rgb(var(--color-primary-main) / <alpha-value>)",
},
text: {
body: "rgb(var(--color-text-body) / <alpha-value>)",
bold: "rgb(var(--color-text-bold) / <alpha-value>)",
heading: "rgb(var(--color-text-heading) / <alpha-value>)",
muted: "rgb(var(--color-text-muted) / <alpha-value>)",
code: "rgb(var(--color-text-code) / <alpha-value>)",
link: "rgb(var(--color-text-link) / <alpha-value>)",
selection: "rgb(var(--color-text-selection) / <alpha-value>)",
},
bg: {
body: "rgb(var(--color-bg-body) / <alpha-value>)",
code: "rgb(var(--color-bg-code) / <alpha-value>)",
selection: "rgb(var(--color-bg-selection) / <alpha-value>)",
},
border: {
code: "rgb(var(--color-border-code) / <alpha-value>)",
},
},
typography: (theme) => ({
DEFAULT: {
css: {
maxWidth: "100%",
a: {
"text-decoration": "none",
"background-repeat": "no-repeat",
"background-size": "100% 1.5px",
"background-position": "0 100%",
color: "rgb(var(--color-text-link))",
"&:hover": {
color: "rgb(var(--color-text-link))",
},
},
p: {
color: "rgb(var(--color-text-body))",
},
"h1, h2, h3, h4, h5, h6": {
color: "rgb(var(--color-text-heading))",
},
"code::before": {
content: "none",
},
"code::after": {
content: "none",
},
blockquote: {
border: "none",
position: "relative",
width: "96%",
margin: "0 auto",
"font-size": "1.0625em",
"padding-top": "1.5rem",
"padding-bottom": "0.5rem",
"padding-left": "1.5rem",
"padding-right": "1.5rem",
},
"blockquote::before": {
"font-family": "Arial",
content: "'“'",
"font-size": "4em",
color: "rgb(var(--color-text-link))",
position: "absolute",
left: "-10px",
top: "-10px",
},
"blockquote::after": {
content: "",
},
"blockquote p:first-of-type::before": {
content: "",
},
"blockquote p:last-of-type::after": {
content: "",
},
},
},
sleek: {
css: {
"--tw-prose-body": "rgb(var(--color-text-body))",
"--tw-prose-headings": "rgb(var(--color-text-heading))",
"--tw-prose-lead": "rgb(var(--color-text-body))",
"--tw-prose-links": "rgb(var(--color-text-body))",
"--tw-prose-bold": "rgb(var(--color-text-body))",
"--tw-prose-strong": "rgb(var(--color-text-body))",
"--tw-prose-counters": "rgb(var(--color-text-body))",
"--tw-prose-bullets": "rgb(var(--color-text-body))",
"--tw-prose-hr": "rgb(var(--color-text-muted))",
"--tw-prose-quotes": "rgb(var(--color-text-body))",
"--tw-prose-quote-borders": "rgb(var(--color-primary-main))",
"--tw-prose-captions": "rgb(var(--color-primary-heading))",
"--tw-prose-quote-captions": "rgb(var(--color-primary-heading))",
"--tw-prose-code": "rgb(var(--color-text-code))",
"--tw-prose-pre-code": "rgb(var(--color-text-code))",
"--tw-prose-pre-bg": "rgb(var(--color-bg-code))",
"--tw-prose-th-borders": "rgb(var(--color-text-muted))",
"--tw-prose-td-borders": "rgb(var(--color-text-muted))",
},
},
}),
},
},
plugins: [require("@tailwindcss/typography")],
}