-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.js
59 lines (57 loc) · 1.53 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
const defaultTheme = require("tailwindcss/defaultTheme")
const defaultVariants = require("./tailwind-defaultVariants")
function trimWhitespace(str) {
return str.split(/\s+/).join(" ").trim()
}
module.exports = {
purge: [
"./public/**/*.html",
"./src/**/*.js",
],
theme: {
extend: {
boxShadow: {
"hero-sm": trimWhitespace(`
0 0 0 1px rgba(0, 0, 0, 0.05),
0 1px 2px 0 rgba(0, 0, 0, 0.05)
`),
"hero": trimWhitespace(`
0 0 0 1px rgba(0, 0, 0, 0.05),
0 1px 3px 0 rgba(0, 0, 0, 0.1),
0 1px 2px 0 rgba(0, 0, 0, 0.06)
`),
"hero-md": trimWhitespace(`
0 0 0 1px rgba(0, 0, 0, 0.05),
0 4px 6px -1px rgba(0, 0, 0, 0.1),
0 2px 4px -1px rgba(0, 0, 0, 0.06)
`),
"hero-lg": trimWhitespace(`
0 0 0 1px rgba(0, 0, 0, 0.05),
0 10px 15px -3px rgba(0, 0, 0, 0.1),
0 4px 6px -2px rgba(0, 0, 0, 0.05)
`),
"hero-xl": trimWhitespace(`
0 0 0 1px rgba(0, 0, 0, 0.05),
0 20px 25px -5px rgba(0, 0, 0, 0.1),
0 10px 10px -5px rgba(0, 0, 0, 0.04)
`),
"hero-2xl": trimWhitespace(`
0 0 0 1px rgba(0, 0, 0, 0.05),
0 25px 50px -12px rgba(0, 0, 0, 0.25)
`),
},
fontFamily: {
// eslint-disable-next-line quotes
mono: [...defaultTheme.fontFamily.mono.slice(0, 1), '"Fira Code"', ...defaultTheme.fontFamily.mono.slice(1)],
sans: [...defaultTheme.fontFamily.sans.slice(0, 3), "Inter", ...defaultTheme.fontFamily.sans.slice(3)],
},
},
},
variants: {
...defaultVariants,
typography: [],
},
plugins: [
require("@tailwindcss/ui"),
],
}