-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
101 lines (99 loc) · 2.99 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
const bondPlugin = require("@bond-london/bond-tailwind-plugin/dist/utils");
const config = require("./tailwind.config.json");
const defaulttheme = require("tailwindcss/defaultTheme");
const animationTiming = "cubic-bezier(0.22, 1, 0.36, 1)";
const animationDuration = "0.5s";
module.exports = {
content: ["./src/**/!(*.d).ts", "./src/**/*.tsx"],
corePlugins: {
aspectRatio: false,
},
theme: {
fontFamily: {
sofiapro: ["Sofia Pro", ...defaulttheme.fontFamily.sans],
poppins: ["Poppins", ...defaulttheme.fontFamily.serif],
},
extend: {
borderRadius: {
button: bondPlugin.calculateRemSize(4),
normal: bondPlugin.calculateRemSize(40),
small: bondPlugin.calculateRemSize(20),
mobile: bondPlugin.calculateRemSize(10),
form: bondPlugin.calculateRemSize(4),
none: bondPlugin.calculateRemSize(0),
},
zIndex: {
cookies: "1000",
modal: "500",
},
maxHeight: {
navClosed: bondPlugin.calculateRemSize(88),
navOpen: bondPlugin.calculateRemSize(2000),
modal: "80vh",
},
keyframes: {
"enter-from-top": {
"0%": { transform: "translateY(-20px)", opacity: 0 },
"100%": {
transform: "translateY(0)",
opacity: 1,
},
},
"enter-from-bottom": {
"0%": { transform: "translateY(20px)", opacity: 0 },
"100%": {
transform: "translateY(0)",
opacity: 1,
},
},
"enter-from-left": {
"0%": { transform: "translateX(-20px)", opacity: 0 },
"100%": {
transform: "translateX(0)",
opacity: 1,
},
},
"enter-from-right": {
"0%": { transform: "translateX(20px)", opacity: 0 },
"100%": {
transform: "translateX(0)",
opacity: 1,
},
},
appear: {
"0%": { opacity: 0 },
"100%": { opacity: 1 },
},
},
animation: {
"enter-from-top": `enter-from-top ${animationDuration} ${animationTiming} both`,
"enter-from-bottom": `enter-from-bottom ${animationDuration} ${animationTiming} both`,
"enter-from-left": `enter-from-left ${animationDuration} ${animationTiming} both`,
"enter-from-right": `enter-from-right ${animationDuration} ${animationTiming} both`,
appear: `appear ${animationDuration} ${animationTiming} both`,
},
borderWidth: {
6: "6px",
},
},
transitionTimingFunction: {
bond: animationTiming,
},
outline: {
error: ["4px solid red", "2px"],
"debug-white": "1px dashed white",
"debug-black": "1px dashed black",
},
},
variants: {
extend: {
borderRadius: ["last", "first"],
},
},
plugins: [
require("@bond-london/bond-tailwind-plugin")(config),
require("@tailwindcss/aspect-ratio"),
require("tailwindcss-debug-screens"),
require("@tailwindcss/forms"),
],
};