-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
76 lines (73 loc) · 1.68 KB
/
tailwind.config.js
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
const defaultTheme = require("tailwindcss/defaultTheme");
const scale = {
"3xs": "0.146rem",
"2xs": "0.236rem",
xs: "0.382rem",
sm: "0.618rem",
base: "1rem",
md: "1.618rem",
lg: "2.618rem",
xl: "4.236rem",
"2xl": "6.854rem",
};
const colors = require("tailwindcss/colors");
module.exports = {
content: ["./public/**/*.html", "./src/**/*.{astro,js,jsx,svelte,ts,tsx,vue}"],
important: true,
theme: {
borderColor: (theme) => ({
...theme("colors"),
default: theme("colors.black", "currentColor"),
}),
inset: (theme, { negative }) => ({
...theme("spacing"),
...negative(theme("spacing")),
0: "0",
auto: "auto",
}),
extend: {
borderRadius: {
xl: ".75rem",
},
colors: {
body: colors.stone[800],
highlight: colors.amber[600],
highlight2: colors.orange[500],
},
spacing: scale,
fontFamily: {
display: ["superclarendon", ...defaultTheme.fontFamily.serif],
sans: ["trade-gothic-next", ...defaultTheme.fontFamily.sans],
},
fontSize: {
"3xs": "0.5rem",
"2xs": "0.625rem",
"7xl": "5rem",
"8xl": "6rem",
"9xl": "7rem",
},
typography: (theme) => ({
DEFAULT: {
css: {
color: colors.stone[800],
a: {
color: colors.amber[600],
"&:hover": {
color: colors.orange[500],
},
},
h1: {
fontFamily: 'superclarendon, ui-serif, Georgia, Cambria, "Times New Roman", Times, serif !important',
fontWeight: 700,
},
h2: {
fontFamily: 'superclarendon, ui-serif, Georgia, Cambria, "Times New Roman", Times, serif !important',
fontWeight: 700,
},
},
},
}),
},
},
plugins: [require("@tailwindcss/typography")],
};