-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
89 lines (88 loc) · 2.4 KB
/
tailwind.config.js
File metadata and controls
89 lines (88 loc) · 2.4 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/* eslint-disable @typescript-eslint/no-var-requires */
const colors = require("tailwindcss/colors");
/** @type {import("@types/tailwindcss/tailwind-config").TailwindConfig } */
module.exports = {
content: [
"./public/**/*.html",
"./pages/**/*.{js,ts,jsx,tsx}",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
fontFamily: {
brand: ["Fredoka One"],
},
fontSize: {
tiny: "15px",
},
spacing: {
4.5: "1.125rem",
},
strokeWidth: {
1.5: "1.5",
},
keyframes: {
zoomIn: {
"0%": { transform: "scale(0)", opacity: "0" },
"90%": { transform: "scale(1.05)", opacity: "0.9" },
"100%": { transform: "scale(1)", opacity: "1" },
},
buzz: {
"10%, 30%": {
transform: "translateX(7px) rotate(2deg)",
},
"20%, 40%": {
transform: "translateX(-7px) rotate(-2deg)",
},
"50%, 70%": {
transform: "translateX(6px) rotate(1deg)",
},
"60%, 80%": {
transform: "translateX(-6px) rotate(-1deg)",
},
"90%": {
transform: "translateX(2px) rotate(0)",
},
"100%": {
transform: "translateX(-2px) rotate(0)",
},
},
},
},
colors: {
transparent: "transparent",
current: "currentColor",
...colors,
// primary
"primary-light": "var(--primary-light)",
primary: "var(--primary)",
// danger
"danger-light": "var(--danger-light)",
danger: "var(--danger)",
//warning
"warning-light": "var(--warning-light)",
warning: "var(--warning)",
// background
"background-pure": "var(--background-pure)",
background: "var(--background)",
"background-light": "var(--background-light)",
"background-medium": "var(--background-medium)",
"background-dark": "var(--background-dark)",
// foreground
"foreground-light": "var(--foreground-light)",
"foreground-medium": "var(--foreground-medium)",
"foreground-dark": "var(--foreground-dark)",
foreground: "var(--foreground)",
"foreground-pure": "var(--foreground-pure)",
},
},
variants: {
extend: {
borderWidth: "last",
},
},
plugins: [
require("@tailwindcss/forms"),
require("prettier-plugin-tailwindcss"),
],
};