-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
72 lines (66 loc) · 2.12 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
const { fontFamily } = require("tailwindcss/defaultTheme")
const { violet, blackA, mauve, green } = require('@radix-ui/colors')
/** @type {import('tailwindcss').Config} */
const config = {
darkMode: ["class", '[data-theme="dark"]'],
content: ["./src/**/*.{js,ts,jsx,tsx}", "components/**/*.{ts,tsx}"],
theme: {
extend: {
fontFamily: {
// sans: ["var(--font-sans)", ...fontFamily.sans],
}, colors: {
...mauve,
...violet,
...green,
...blackA,
},
screens: {
// => @media (max-width: 1535px) { ... }
'm2xl': { 'max': '1535px' },
'mxl': { 'max': '1279px' },
'mlg': { 'max': '1023px' },
'mmd': { 'max': '767px' },
'msm': { 'max': '639px' },
},
keyframes: {
wave: {
'0%': { transform: 'rotate(0.0deg)' },
'10%': { transform: 'rotate(14deg)' },
'20%': { transform: 'rotate(-8deg)' },
'30%': { transform: 'rotate(14deg)' },
'40%': { transform: 'rotate(-4deg)' },
'50%': { transform: 'rotate(10.0deg)' },
'60%': { transform: 'rotate(0.0deg)' },
'100%': { transform: 'rotate(0.0deg)' },
},
accordion: {
from: { height: '0' },
to: { height: "var(--radix-accordion-content-height)" },
},
accordionUp: {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: '0' },
},
translateRight: {
'0%': { transform: 'translateX(100%)' },
'100%': { transform: 'translateX(0)' },
},
overlayShow: {
from: { opacity: '0' },
to: { opacity: '1' },
},
contentShow: {
from: { opacity: '0', transform: 'translate(-50%, -48%) scale(0.96)' },
to: { opacity: '1', transform: 'translate(-50%, -50%) scale(1)' },
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
"translate-right": "translateRight ease-out",
},
},
},
plugins: [],
}
module.exports = config