-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathtailwind.config.js
More file actions
55 lines (53 loc) · 1.62 KB
/
Copy pathtailwind.config.js
File metadata and controls
55 lines (53 loc) · 1.62 KB
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
import typography from "@tailwindcss/typography";
/** @type {import('tailwindcss').Config} */
const config = {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
extend: {
colors: {
// Keep CSS variables as the source of truth; Tailwind utilities point to them.
primary: "var(--color-primary)",
secondary: "var(--color-secondary)",
tertiary: "var(--color-tertiary)",
background: "var(--color-background)",
"background-secondary": "var(--color-background-secondary)",
text: "var(--color-text)",
headline: "var(--color-headline)",
paragraph: "var(--color-paragraph)",
gray: "var(--color-gray)",
overlay: "var(--color-overlay)",
},
spacing: {
15: "3.75rem",
},
typography: ({ theme }) => ({
DEFAULT: {
css: {
a: {
"&:hover": {
color: theme("colors.primary"),
},
},
h2: {
color: theme("colors.secondary"),
},
blockquote: {
background: theme("colors.background"),
borderLeft: `5px solid ${theme("colors.primary")}`,
borderRadius: `0 ${theme("spacing.2")} ${theme("spacing.2")} 0`,
paddingBlock: "0.3em",
paddingRight: "0.7em",
},
code: {
background: theme("colors.background"),
padding: "4px 6px",
borderRadius: "3px",
},
},
},
}),
},
},
plugins: [typography],
};
export default config;