-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
205 lines (205 loc) · 4.58 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
module.exports = {
content: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html'],
theme: {
screens: {
xs: '360px',
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1300px',
'2xl': '1650px',
},
container: {
xs: '360px',
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1175px',
'2xl': '1470px',
},
boxShadow: {
xs: '0px 4px 4px rgba(0, 0, 0, 0.05)',
lg: '0px 4px 12px rgba(0, 0, 0, 0.12)',
DEFAULT: '0px 4px 4px rgba(0, 0, 0, 0.25)',
},
fontFamily: {
sans: [
'Public Sans',
'ui-sans-serif',
'system-ui',
'-apple-system',
'BlinkMacSystemFont',
'"Segoe UI"',
'Roboto',
'"Helvetica Neue"',
'Arial',
'"Noto Sans"',
'sans-serif',
'"Apple Color Emoji"',
'"Segoe UI Emoji"',
'"Segoe UI Symbol"',
'"Noto Color Emoji"',
],
},
extend: {
spacing: {
25: '6.25rem',
},
colors: {
primary: '#0A07F5',
secondary: '#7CCEF2',
bratislavaRed: '#F23005',
fontBlack: '#333333',
error: '#DC2626',
warning: '#F59E0B',
success: '#2ecc71',
blueish: '#D0ECF8',
redish: '#E46054',
purpleish: '#4340A6',
backgroundGray: '#F5F5F5',
warningSoft: '#F8D7D4',
inactive: '#CCCCCC',
divider: '#D6D6D6',
sunscreen: '#FFF9F0',
orange: '#F4AA3D',
},
borderWidth: {
3: '3px',
},
container: {
padding: {
DEFAULT: '2rem',
xs: '2rem',
sm: '1rem',
md: '1rem',
lg: '1rem',
xl: '1rem',
'2xl': '1rem',
},
},
flex: {
'1/2': 0.5,
},
width: {
'1/10': '10%',
'2/10': '20%',
'3/10': '30%',
'4/10': '40%',
'5/10': '50%',
'6/10': '60%',
'7/10': '70%',
'8/10': '80%',
'9/10': '90%',
18: '4.5rem',
},
height: {
'1/10': '10%',
'2/10': '20%',
'3/10': '30%',
'4/10': '40%',
'5/10': '50%',
'6/10': '60%',
'7/10': '70%',
'8/10': '80%',
'9/10': '90%',
18: '4.5rem',
},
minHeight: {
'1/10': '10%',
'2/10': '20%',
'3/10': '30%',
'4/10': '40%',
'5/10': '50%',
'6/10': '60%',
'7/10': '70%',
'8/10': '80%',
'9/10': '90%',
'1/2vh': '50vh',
},
minWidth: {
'1/10': '10%',
'2/10': '20%',
'3/10': '30%',
'4/10': '40%',
'5/10': '50%',
'6/10': '60%',
'7/10': '70%',
'8/10': '80%',
'9/10': '90%',
},
gridTemplateRows: {
12: 'repeat(12, minmax(0, 1fr))',
},
gridTemplateColumns: {
16: 'repeat(16, minmax(0, 1fr))',
},
gridColumn: {
'span-14': 'span 14 / span 14',
'span-15': 'span 15 / span 15',
},
gridRow: {
'span-7': 'span 7 / span 7',
'span-8': 'span 8 / span 8',
'span-9': 'span 9 / span 9',
'span-10': 'span 10 / span 10',
'span-11': 'span 11 / span 11',
'span-12': 'span 12 / span 12',
},
zIndex: {
selectLabel: '30',
modalBackdrop: '51',
modal: '52',
datepickerBackdrop: '53',
datepicker: '54',
toast: '55',
},
maxWidth: {
formMax: '445px',
},
},
},
corePlugins: {
container: false,
},
plugins: [
function ({ addComponents }) {
addComponents({
'.container': {
width: '100%',
paddingLeft: '2rem',
paddingRight: '2rem',
'@screen xs': {
maxWidth: '380px',
paddingLeft: '2rem',
paddingRight: '2rem',
},
'@screen sm': {
maxWidth: '640px',
paddingLeft: '1rem',
paddingRight: '1rem',
},
'@screen md': {
maxWidth: '768px',
paddingLeft: '1rem',
paddingRight: '1rem',
},
'@screen lg': {
maxWidth: '1024px',
paddingLeft: '1rem',
paddingRight: '1rem',
},
'@screen xl': {
maxWidth: '1175px',
paddingLeft: '1rem',
paddingRight: '1rem',
},
'@screen 2xl': {
maxWidth: '1470px',
paddingLeft: '1rem',
paddingRight: '1rem',
},
},
})
},
],
}