-
Notifications
You must be signed in to change notification settings - Fork 5
/
tailwind.config.js
124 lines (123 loc) · 4.15 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
import plugin from "tailwindcss/plugin";
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./app/**/*.{ts,tsx,jsx,js}"],
theme: {
extend: {
animation: {
borderPulse: "borderPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",
contentShow: "contentShow 150ms cubic-bezier(0.16, 1, 0.3, 1)",
hide: "hide 100ms ease-in",
overlayShow: "overlayShow 150ms cubic-bezier(0.16, 1, 0.3, 1)",
slideIn: "slideIn 150ms cubic-bezier(0.16, 1, 0.3, 1)",
slideInFromTopLeft: "0.5s ease-out 0s 1 slideInFromTopLeft forwards",
slideOut: "0.5s ease-in 0s 1 slideOutToTopLeft forwards",
slideDownAndFade:
"slideDownAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
slideLeftAndFade:
"slideLeftAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
slideUpAndFade: "slideUpAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
slideRightAndFade:
"slideRightAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
swipeOut: "swipeOut 100ms ease-out",
},
boxShadow: ({ theme }) => ({
// x-offsey y-offset blur spread color
"glow-green-200": "0 0 20px 5px " + theme("colors.green.200"),
"glow-red-200": "0 0 20px 5px " + theme("colors.red.200"),
}),
borderWidth: {
12: "12px",
},
backgroundColor: {
"blue-1000": "#0b163f",
"blue-bright": "#0c0a79",
},
borderColor: {
"blue-925": "#222167",
},
colors: {
"blue-1000": "#0b163f",
"yellow-1000": "#d69f4c",
},
fontFamily: {
korinna: ["Korinna-Agency", "Times New Roman", "Times", "serif"],
inter: ["Inter", "Times New Roman", "Times", "serif"],
handwriting: ["Caveat", "cursive"],
},
keyframes: {
// borderPulse must include the color of the border
borderPulse: {
"0%, 100%": { borderColor: "rgba(252, 211, 77, 1)" },
"50%": { borderColor: "rgba(252, 211, 77, 0.5)" },
},
contentShow: {
from: { opacity: 0, transform: "translate(-50%, -48%) scale(0.96)" },
to: { opacity: 1, transform: "translate(-50%, -50%) scale(1)" },
},
hide: {
from: { opacity: 1 },
to: { opacity: 0 },
},
overlayShow: {
from: { opacity: 0 },
to: { opacity: 1 },
},
slideIn: {
from: {
transform: "translateX(calc(100% + var(--viewport-padding)))",
},
to: { transform: "translateX(0)" },
},
slideInFromTopLeft: {
"0%": { transform: "translate(-100%, -100%)" },
"100%": { transform: "translate(0, 0)" },
},
slideOutToTopLeft: {
"0%": { transform: "translate(0, 0)" },
"100%": { transform: "translate(-100%, -100%)" },
},
slideDownAndFade: {
from: { opacity: 0, transform: "translateY(-2px)" },
to: { opacity: 1, transform: "translateY(0)" },
},
slideLeftAndFade: {
from: { opacity: 0, transform: "translateX(2px)" },
to: { opacity: 1, transform: "translateX(0)" },
},
slideUpAndFade: {
from: { opacity: 0, transform: "translateY(2px)" },
to: { opacity: 1, transform: "translateY(0)" },
},
slideRightAndFade: {
from: { opacity: 0, transform: "translateX(2px)" },
to: { opacity: 1, transform: "translateX(0)" },
},
swipeOut: {
from: { transform: "translateX(var(--radix-toast-swipe-end-x))" },
to: { transform: "translateX(calc(100% + var(--viewport-padding)))" },
},
},
maxHeight: {
"1/2": "50%",
},
minWidth: (theme) => ({
48: theme("spacing.48"),
}),
spacing: {
"1/6": "16.666667%",
},
},
},
plugins: [
plugin(function ({ addBase }) {
addBase({
"@font-face": {
"font-family": "Korinna-Agency",
src: 'url("/fonts/Korinna-Agency.ttf.woff") format("woff"), url("/fonts/Korinna-Agency.ttf.eot") format("eot")',
fontDisplay: "swap",
},
});
}),
],
};