-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
40 lines (38 loc) · 1.33 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
const plugin = require("tailwindcss/plugin");
module.exports = {
mode: "jit",
purge: ["./pages/**/*.{js,ts,jsx,tsx}", "./components/**/*.{js,ts,jsx,tsx}"],
darkMode: false, // or 'media' or 'class'
theme: {
container: {
screens: {
sm: "640px",
md: "768px",
lg: "1024px",
xl: "1080px",
},
},
extend: {
fontFamily: {
sans: ["Patrick Hand", "Arial", "sans-serif"],
},
},
},
variants: {
extend: {},
},
plugins: [
plugin(({ addUtilities }) => {
const utilities = {
".bg-search": {
backgroundImage: `url(
"data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.1'%3E%3Cpath d='M6.41667 11.0833C8.994 11.0833 11.0833 8.994 11.0833 6.41667C11.0833 3.83934 8.994 1.75 6.41667 1.75C3.83934 1.75 1.75 3.83934 1.75 6.41667C1.75 8.994 3.83934 11.0833 6.41667 11.0833Z' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M12.25 12.25L9.71251 9.71246' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E%0A"
)`,
backgroundRepeat: "no-repeat",
backgroundPosition: "20px",
},
};
addUtilities(utilities);
}),
],
};