-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.cjs
More file actions
55 lines (54 loc) · 1.45 KB
/
tailwind.config.cjs
File metadata and controls
55 lines (54 loc) · 1.45 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
const defaultTheme = require("tailwindcss/defaultTheme");
module.exports = {
content: ["./src/**/*.{astro,html,js,jsx,md,svelte,ts,tsx,vue}"],
theme: {
extend: {
colors: {
primary: "var(--aw-color-primary)",
secondary: "var(--aw-color-secondary)",
accent: "var(--aw-color-accent)",
muted: "var(--aw-color-muted)",
light: "var(--aw-color-light)",
dark: "var(--aw-color-dark)",
},
fontFamily: {
sans: ["var(--aw-font-sans)", ...defaultTheme.fontFamily.sans],
serif: ["var(--aw-font-serif)", ...defaultTheme.fontFamily.serif],
heading: ["var(--aw-font-heading)", ...defaultTheme.fontFamily.sans],
},
typography(theme) {
return {
DEFAULT: {
css: {
"code::before": {
content: "none",
},
"code::after": {
content: "none",
},
code: {
color: theme("colors.red.400"),
backgroundColor: theme("colors.stone.100"),
borderRadius: theme("borderRadius.DEFAULT"),
paddingLeft: theme("spacing[1.5]"),
paddingRight: theme("spacing[1.5]"),
paddingTop: theme("spacing[0.5]"),
paddingBottom: theme("spacing[0.5]"),
},
},
},
invert: {
css: {
code: {
color: theme("colors.red.400"),
backgroundColor: theme("colors.zinc.800"),
},
},
},
};
},
},
},
plugins: [require("@tailwindcss/typography"), require("@tailwindcss/forms")],
darkMode: "class",
};