-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
102 lines (100 loc) · 2.93 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
/* eslint-disable n/global-require */
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: 'media',
content: [
'./src/**/*.{js,ts,jsx,tsx}',
'./node_modules/@yobta/ui/**/*.{js,jsx}',
],
presets: [require('@yobta/ui/tailwind-preset')],
theme: {
extend: {
animation: {
'slide-in-bottom': 'slideInBottom 0.72s ease forwards',
'slide-out-bottom': 'slideOutBottom 0.56s ease forwards',
'slide-in-left': 'slideInLeft 0.72s ease forwards',
'slide-out-left': 'slideOutLeft 0.56s ease forwards',
'slide-in-right': 'slideInRight 0.72s ease forwards',
'slide-out-right': 'slideOutRight 0.56s ease forwards',
'slide-in-top': 'slideInTop 0.72s ease forwards',
'slide-out-top': 'slideOutTop 0.56s ease forwards',
},
keyframes: {
slideInBottom: {
from: { transform: 'translateY(6rem)', opacity: 0 },
to: { transform: 'translateY(0)', opacity: 100 },
},
slideOutBottom: {
from: { transform: 'translateY(0)', opacity: 100 },
to: { transform: 'translateY(6rem)', opacity: 0 },
},
slideInLeft: {
from: { transform: 'translateX(-6rem)', opacity: 0 },
to: { transform: 'translateX(0)', opacity: 100 },
},
slideOutLeft: {
from: { transform: 'translateX(0)', opacity: 100 },
to: { transform: 'translateX(-6rem)', opacity: 0 },
},
slideInRight: {
from: { transform: 'translateX(6rem)', opacity: 0 },
to: { transform: 'translateX(0)', opacity: 100 },
},
slideOutRight: {
from: { transform: 'translateX(0)', opacity: 100 },
to: { transform: 'translateX(6rem)', opacity: 0 },
},
slideInTop: {
from: { transform: 'translateY(-6rem)', opacity: 0 },
to: { transform: 'translateY(0)', opacity: 100 },
},
slideOutTop: {
from: { transform: 'translateY(0)', opacity: 100 },
to: { transform: 'translateY(-6rem)', opacity: 0 },
},
},
backgroundImage: () => ({
'image-icon': "url('/image.svg')",
}),
backgroundSize: {
'icon-size': '3rem',
},
colors: {
vk: '#0077FF',
},
fontFamily: {
sans: '"San Francisco", "Helvetica Neue", "Roboto", "Segoe UI", sans-serif',
},
width: {
promo: '208px',
avatar: '16vw',
},
maxWidth: {
'user-name': '6rem',
price: '6rem',
},
minWidth: {
icon: '1rem',
promo: '208px',
rubric: '10rem',
card: '5rem',
},
height: {
promo: '288px',
preview: '48vh',
},
minHeight: {
promo: '288px',
},
zIndex: {
under: -1,
},
},
},
variants: {
extend: {
opacity: ['dark'],
},
},
plugins: [require('@tailwindcss/typography')],
}