-
Notifications
You must be signed in to change notification settings - Fork 16
/
tailwind.config.js
151 lines (149 loc) · 5.11 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
/* eslint-disable @typescript-eslint/no-var-requires */
const { blackA } = require("@radix-ui/colors");
const defaultTheme = require("tailwindcss/defaultTheme");
const plugin = require("tailwindcss/plugin");
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
container: {
center: true,
padding: "2rem",
screens: {
"2xl": "1400px",
},
},
extend: {
animation: {
"accordion-open": `accordion-open 150ms cubic-bezier(0.87, 0, 0.13, 1)`,
"accordion-closed": `accordion-closed 150ms cubic-bezier(0.87, 0, 0.13, 1)`,
"banner-rotate": `banner-rotate 20s linear infinite`,
"collapsible-open": `collapsible-open 150ms cubic-bezier(0.87, 0, 0.13, 1)`,
"collapsible-closed": `collapsible-closed 150ms cubic-bezier(0.87, 0, 0.13, 1)`,
"fade-zoom-in": `fade-zoom-in 300ms cubic-bezier(0.16, 1, 0.3, 1)`,
"slide-up-and-fade": `slide-up-and-fade 300ms cubic-bezier(0.16, 1, 0.3, 1)`,
"slide-right-and-fade": `slide-right-and-fade 300ms cubic-bezier(0.16, 1, 0.3, 1)`,
"slide-down-and-fade": `slide-down-and-fade 300ms cubic-bezier(0.16, 1, 0.3, 1)`,
"slide-left-and-fade": `slide-left-and-fade 300ms cubic-bezier(0.16, 1, 0.3, 1)`,
"spin-swap": `spin 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.27)`,
"gradient-x": "gradient-x 3s ease infinite",
"gradient-y": "gradient-y 2s infinite",
"gradient-xy": "gradient-xy 3s ease infinite",
},
colors: {
...blackA,
},
fontFamily: {
sans: ["Jost", ...defaultTheme.fontFamily.sans],
diatype: ["ABCDiatype", "sans-serif"],
diatypeMono: ["ABCDiatypeMono", "monospace"],
},
keyframes: {
"accordion-open": {
from: { height: 0 },
to: { height: "var(--radix-accordion-content-height)" },
},
"accordion-closed": {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: 0 },
},
"banner-rotate": {
from: { transform: "translateX(-975px)" },
to: { transform: "translateX(-142px)" },
},
"collapsible-open": {
from: { height: 0 },
to: { height: "var(--radix-collapsible-content-height)" },
},
"collapsible-closed": {
from: { height: "var(--radix-collapsible-content-height)" },
to: { height: 0 },
},
"fade-zoom-in": {
from: { opacity: 0, transform: "scale(0.9)" },
to: { opacity: 1, transform: "scale(1)" },
},
"slide-up-and-fade": {
from: { opacity: 0, transform: "translateY(2px)" },
to: { opacity: 1, transform: "translateY(0)" },
},
"slide-right-and-fade": {
from: { opacity: 0, transform: "translateX(-2px)" },
to: { opacity: 1, transform: "translateX(0)" },
},
"slide-down-and-fade": {
from: { opacity: 0, transform: "translateY(-2px)" },
to: { opacity: 1, transform: "translateY(0)" },
},
"slide-left-and-fade": {
from: { opacity: 0, transform: "translateX(2px)" },
to: { opacity: 1, transform: "translateX(0)" },
},
"gradient-y": {
"0%, 100%": {
"background-size": "30% 250%",
"background-position": "top bottom",
},
"50%": {
"background-size": "500% 500%",
"background-position": "center center",
},
},
"gradient-x": {
"0%, 100%": {
"background-size": "200% 200%",
"background-position": "left center",
},
"50%": {
"background-size": "200% 200%",
"background-position": "right center",
},
},
"gradient-xy": {
"0%, 100%": {
"background-size": "400% 400%",
"background-position": "left center",
},
"50%": {
"background-size": "200% 200%",
"background-position": "right center",
},
},
},
},
},
plugins: [
require("tailwindcss-animate"),
require("@tailwindcss/forms")({
strategy: "class",
}),
plugin(({ addUtilities }) => {
addUtilities({
".HistoryListTrigger[data-state='open'] > .HistoryListTriggerText::before": {
content: "'Hide Details'",
},
".HistoryListTrigger[data-state='closed'] > .HistoryListTriggerText::before": {
content: "'Show Details'",
},
".number-input-arrows-hide": {
"&, &::-webkit-outer-spin-button, &::-webkit-inner-spin-button": {
"-moz-appearance": "textfield",
"-webkit-appearance": "none",
margin: 0,
},
},
".scrollbar-hide": {
"-ms-overflow-style": "none",
"scrollbar-width": "none",
"&::-webkit-scrollbar": {
display: "none",
},
},
});
}),
],
};