tycho-components 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/preview.tsx +2 -2
- package/package.json +17 -13
- package/src/AppModal/style.scss +1 -1
- package/src/Participants/ParticipantCreate/ParticipantCreate.tsx +1 -1
- package/src/Participants/Participants.tsx +5 -5
- package/src/configs/Localization.ts +13 -11
- package/src/configs/localization/CommonTexts.ts +1 -0
- package/src/configs/localization/ParticipantsTexts.ts +1 -1
- package/src/index.ts +2 -0
- package/src/new-styles/base/_borders.scss +30 -0
- package/src/new-styles/base/_colors.scss +100 -0
- package/src/new-styles/base/_displays.scss +207 -0
- package/src/new-styles/base/_margins.css +174 -0
- package/src/new-styles/base/_spacing.scss +26 -0
- package/src/new-styles/base/_tokens.scss +329 -0
- package/src/new-styles/base/_typographs.scss +348 -0
- package/src/new-styles/main.scss +27 -0
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
// typographs styles
|
|
2
|
+
|
|
3
|
+
@mixin button-large {
|
|
4
|
+
font-size: 20px;
|
|
5
|
+
font-weight: 600;
|
|
6
|
+
line-height: 100%;
|
|
7
|
+
letter-spacing: 0.32px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@mixin button-medium {
|
|
11
|
+
font-size: 16px;
|
|
12
|
+
font-weight: 600;
|
|
13
|
+
line-height: 100%;
|
|
14
|
+
letter-spacing: 0.32px;
|
|
15
|
+
text-transform: uppercase;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@mixin button-small {
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
font-weight: 700;
|
|
21
|
+
line-height: 100%;
|
|
22
|
+
letter-spacing: 0.32px;
|
|
23
|
+
text-transform: uppercase;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@mixin label-large-1 {
|
|
27
|
+
font-size: 20px;
|
|
28
|
+
font-weight: 400;
|
|
29
|
+
line-height: 120%;
|
|
30
|
+
letter-spacing: 0px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@mixin label-large-2 {
|
|
34
|
+
font-size: 20px;
|
|
35
|
+
font-weight: 700;
|
|
36
|
+
line-height: 120%;
|
|
37
|
+
letter-spacing: 0px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@mixin label-medium-1 {
|
|
41
|
+
font-size: 16px;
|
|
42
|
+
font-weight: 400;
|
|
43
|
+
line-height: 120%;
|
|
44
|
+
letter-spacing: 0px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@mixin label-medium-2 {
|
|
48
|
+
font-size: 16px;
|
|
49
|
+
font-weight: 700;
|
|
50
|
+
line-height: 120%;
|
|
51
|
+
letter-spacing: 0px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@mixin label-small-1 {
|
|
55
|
+
font-size: 14px;
|
|
56
|
+
font-weight: 400;
|
|
57
|
+
line-height: 100%;
|
|
58
|
+
letter-spacing: 0px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@mixin label-small-2 {
|
|
62
|
+
font-size: 14px;
|
|
63
|
+
font-weight: 700;
|
|
64
|
+
line-height: 100%;
|
|
65
|
+
letter-spacing: 0px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@mixin tag-large-1 {
|
|
69
|
+
font-size: 16px;
|
|
70
|
+
font-weight: 500;
|
|
71
|
+
line-height: 100%;
|
|
72
|
+
letter-spacing: 1px;
|
|
73
|
+
text-transform: uppercase;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@mixin tag-large-2 {
|
|
77
|
+
font-family: 'Lora';
|
|
78
|
+
font-size: 20px;
|
|
79
|
+
font-weight: 800;
|
|
80
|
+
line-height: 100%;
|
|
81
|
+
letter-spacing: 1px;
|
|
82
|
+
text-transform: uppercase;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@mixin tag-medium-1 {
|
|
86
|
+
font-size: 14px;
|
|
87
|
+
font-weight: 500;
|
|
88
|
+
line-height: 100%;
|
|
89
|
+
letter-spacing: 1px;
|
|
90
|
+
text-transform: uppercase;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@mixin tag-medium-2 {
|
|
94
|
+
font-family: 'Lora';
|
|
95
|
+
font-size: 14px;
|
|
96
|
+
font-weight: 800;
|
|
97
|
+
line-height: 100%;
|
|
98
|
+
letter-spacing: 1px;
|
|
99
|
+
text-transform: uppercase;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@mixin tag-small-1 {
|
|
103
|
+
font-size: 12px;
|
|
104
|
+
font-weight: 500;
|
|
105
|
+
line-height: 100%;
|
|
106
|
+
letter-spacing: 1px;
|
|
107
|
+
text-transform: uppercase;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@mixin tag-small-2 {
|
|
111
|
+
font-family: 'Lora';
|
|
112
|
+
font-size: 12px;
|
|
113
|
+
font-weight: 800;
|
|
114
|
+
line-height: 100%;
|
|
115
|
+
letter-spacing: 1px;
|
|
116
|
+
text-transform: uppercase;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@mixin helper-large-1 {
|
|
120
|
+
font-size: 14px;
|
|
121
|
+
font-weight: 400;
|
|
122
|
+
line-height: 100%;
|
|
123
|
+
letter-spacing: 0.16px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@mixin helper-large-2 {
|
|
127
|
+
font-size: 14px;
|
|
128
|
+
font-weight: 700;
|
|
129
|
+
line-height: 120%;
|
|
130
|
+
letter-spacing: 0.16px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@mixin helper-medium-1 {
|
|
134
|
+
font-size: 12px;
|
|
135
|
+
font-weight: 400;
|
|
136
|
+
line-height: 100%;
|
|
137
|
+
letter-spacing: 0.16px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@mixin helper-medium-2 {
|
|
141
|
+
font-size: 12px;
|
|
142
|
+
font-weight: 700;
|
|
143
|
+
line-height: 120%;
|
|
144
|
+
letter-spacing: 0.16px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@mixin helper-small-1 {
|
|
148
|
+
font-size: 10px;
|
|
149
|
+
font-weight: 400;
|
|
150
|
+
line-height: 100%;
|
|
151
|
+
letter-spacing: 0.16px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@mixin helper-small-2 {
|
|
155
|
+
font-size: 10px;
|
|
156
|
+
font-weight: 700;
|
|
157
|
+
line-height: 120%;
|
|
158
|
+
letter-spacing: 0.16px;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@mixin body-large-1 {
|
|
162
|
+
font-size: 20px;
|
|
163
|
+
font-weight: 400;
|
|
164
|
+
line-height: 150%;
|
|
165
|
+
letter-spacing: 0px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
@mixin body-large-2 {
|
|
169
|
+
font-size: 20px;
|
|
170
|
+
font-weight: 700;
|
|
171
|
+
line-height: 150%;
|
|
172
|
+
letter-spacing: 0px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// sets as important to override MuiTooltip-tooltip
|
|
176
|
+
@mixin body-medium-1 {
|
|
177
|
+
font-size: 16px !important;
|
|
178
|
+
font-weight: 400 !important;
|
|
179
|
+
line-height: 150% !important;
|
|
180
|
+
letter-spacing: 0px !important;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
@mixin body-medium-2 {
|
|
184
|
+
font-size: 16px;
|
|
185
|
+
font-weight: 400;
|
|
186
|
+
line-height: 150%;
|
|
187
|
+
letter-spacing: 0px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@mixin body-small-1 {
|
|
191
|
+
font-size: 14px;
|
|
192
|
+
font-weight: 400;
|
|
193
|
+
line-height: 150%;
|
|
194
|
+
letter-spacing: 0px;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@mixin body-small-2 {
|
|
198
|
+
font-size: 14px;
|
|
199
|
+
font-weight: 400;
|
|
200
|
+
line-height: 150%;
|
|
201
|
+
letter-spacing: 0px;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
@mixin link-large {
|
|
205
|
+
font-size: 20px;
|
|
206
|
+
font-weight: 400;
|
|
207
|
+
line-height: 120%;
|
|
208
|
+
letter-spacing: 0px;
|
|
209
|
+
decoration: underline;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
@mixin link-medium {
|
|
213
|
+
font-size: 16px;
|
|
214
|
+
font-weight: 400;
|
|
215
|
+
line-height: 120%;
|
|
216
|
+
letter-spacing: 0px;
|
|
217
|
+
decoration: underline;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@mixin link-small {
|
|
221
|
+
font-size: 14px;
|
|
222
|
+
font-weight: 700;
|
|
223
|
+
line-height: 120%;
|
|
224
|
+
letter-spacing: 0px;
|
|
225
|
+
decoration: underline;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
@mixin heading-x-large {
|
|
229
|
+
font-family: 'Lora';
|
|
230
|
+
font-size: 64px;
|
|
231
|
+
font-weight: 500;
|
|
232
|
+
line-height: 120%;
|
|
233
|
+
letter-spacing: 0px;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
@mixin heading-large {
|
|
237
|
+
font-family: 'Lora';
|
|
238
|
+
font-size: 56px;
|
|
239
|
+
font-weight: 500;
|
|
240
|
+
line-height: 120%;
|
|
241
|
+
letter-spacing: 0px;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
@mixin heading-medium {
|
|
245
|
+
font-family: 'Lora';
|
|
246
|
+
font-size: 48px;
|
|
247
|
+
font-weight: 500;
|
|
248
|
+
line-height: 120%;
|
|
249
|
+
letter-spacing: 0px;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
@mixin heading-small {
|
|
253
|
+
font-family: 'Lora';
|
|
254
|
+
font-size: 40px;
|
|
255
|
+
font-weight: 500;
|
|
256
|
+
line-height: 120%;
|
|
257
|
+
letter-spacing: 0px;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
@mixin heading-x-small {
|
|
261
|
+
font-family: 'Lora';
|
|
262
|
+
font-size: 32px;
|
|
263
|
+
font-weight: 500;
|
|
264
|
+
line-height: 120%;
|
|
265
|
+
letter-spacing: 0px;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
@mixin subtitle-large-1 {
|
|
269
|
+
font-size: 32px;
|
|
270
|
+
font-weight: 300;
|
|
271
|
+
line-height: 120%;
|
|
272
|
+
letter-spacing: 0px;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
@mixin subtitle-large-2 {
|
|
276
|
+
font-size: 32px;
|
|
277
|
+
font-weight: 600;
|
|
278
|
+
line-height: 120%;
|
|
279
|
+
letter-spacing: 0px;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
@mixin subtitle-medium-1 {
|
|
283
|
+
font-size: 28px;
|
|
284
|
+
font-weight: 300;
|
|
285
|
+
line-height: 120%;
|
|
286
|
+
letter-spacing: 0px;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
@mixin subtitle-medium-2 {
|
|
290
|
+
font-size: 28px;
|
|
291
|
+
font-weight: 600;
|
|
292
|
+
line-height: 120%;
|
|
293
|
+
letter-spacing: 0px;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
@mixin subtitle-small-1 {
|
|
297
|
+
font-size: 20px;
|
|
298
|
+
font-weight: 300;
|
|
299
|
+
line-height: 120%;
|
|
300
|
+
letter-spacing: 1px;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
@mixin subtitle-small-2 {
|
|
304
|
+
font-size: 20px;
|
|
305
|
+
font-weight: 600;
|
|
306
|
+
line-height: 120%;
|
|
307
|
+
letter-spacing: 1px;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
@mixin display-x-large {
|
|
311
|
+
font-family: 'Lora';
|
|
312
|
+
font-size: 144px;
|
|
313
|
+
font-weight: 300;
|
|
314
|
+
line-height: 100%;
|
|
315
|
+
letter-spacing: 0px;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
@mixin display-large {
|
|
319
|
+
font-family: 'Lora';
|
|
320
|
+
font-size: 120px;
|
|
321
|
+
font-weight: 300;
|
|
322
|
+
line-height: 100%;
|
|
323
|
+
letter-spacing: 0px;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
@mixin display-medium {
|
|
327
|
+
font-family: 'Lora';
|
|
328
|
+
font-size: 112px;
|
|
329
|
+
font-weight: 300;
|
|
330
|
+
line-height: 100%;
|
|
331
|
+
letter-spacing: 0px;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
@mixin display-small {
|
|
335
|
+
font-family: 'Lora';
|
|
336
|
+
font-size: 96px;
|
|
337
|
+
font-weight: 300;
|
|
338
|
+
line-height: 100%;
|
|
339
|
+
letter-spacing: 0px;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
@mixin display-x-small {
|
|
343
|
+
font-family: 'Lora';
|
|
344
|
+
font-size: 80px;
|
|
345
|
+
font-weight: 300;
|
|
346
|
+
line-height: 100%;
|
|
347
|
+
letter-spacing: 0px;
|
|
348
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@import 'base/borders';
|
|
2
|
+
@import 'base/colors';
|
|
3
|
+
@import 'base/displays';
|
|
4
|
+
@import 'base/margins';
|
|
5
|
+
@import 'base/spacing';
|
|
6
|
+
@import 'base/tokens';
|
|
7
|
+
@import 'base/typographs';
|
|
8
|
+
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;600;700;800&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,200,0..1,0&display=swap');
|
|
9
|
+
|
|
10
|
+
.MuiTooltip-tooltip {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
background-color: var(--layer-tooltip) !important;
|
|
14
|
+
height: 40px;
|
|
15
|
+
max-width: 280px;
|
|
16
|
+
padding: var(--spacing-100) var(--spacing-150);
|
|
17
|
+
border-radius: var(--radius-100);
|
|
18
|
+
@include body-medium-1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.MuiTooltip-arrow {
|
|
22
|
+
color: var(--layer-tooltip) !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.pointer {
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
}
|