@triptease/stylesheet 1.0.6

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.
@@ -0,0 +1,1172 @@
1
+ /*
2
+ * @triptease/stylesheet v1.0.6
3
+ */
4
+ @import url('https://fonts.googleapis.com/css?family=Roboto:400,500') layer(base);
5
+ @import url('https://fonts.googleapis.com/css?family=Inter:300,500,600,700') layer(base);
6
+ @layer base{
7
+
8
+ /**
9
+ * Do not edit directly, this file was auto-generated.
10
+ */
11
+
12
+ :root {
13
+ --asset-font-noe-text-name: 'Noe Text';
14
+ --asset-font-noe-text-style: normal;
15
+ --asset-font-noe-text-weight: 400;
16
+ --asset-font-inter-name: Inter;
17
+ --asset-font-inter-style: normal;
18
+ --color-alert-100: #ffd6d6;
19
+ --color-alert-200: #ff9999;
20
+ --color-alert-300: #f93939;
21
+ --color-alert-400: #da0707;
22
+ --color-alert-500: #a80505;
23
+ --color-border-100: #e8eaec;
24
+ --color-border-200: #e0e1e5;
25
+ --color-border-300: #d7d9dd;
26
+ --color-border-400: #c5c8ce;
27
+ --color-border-500: #b7bbc2;
28
+ --color-text-100: #ffffff;
29
+ --color-text-200: #b5b0b5;
30
+ --color-text-300: #575157;
31
+ --color-text-400: #3b353b;
32
+ --color-text-500: #0d0c0d;
33
+ --color-text-inverted-100: #0d0c0d;
34
+ --color-text-inverted-200: #77758a;
35
+ --color-text-inverted-300: #9d9cab;
36
+ --color-text-inverted-400: #d3d3da;
37
+ --color-text-inverted-500: #ffffff;
38
+ --color-info-100: #e5f3ff;
39
+ --color-info-400: #0b99ff;
40
+ --color-primary-100: #f3f0fa;
41
+ --color-primary-200: #e8e3f6;
42
+ --color-primary-300: #cfc6ed;
43
+ --color-primary-400: #5e43c2;
44
+ --color-primary-500: #4d35a1;
45
+ --color-success-100: #e8f6e3;
46
+ --color-success-200: #c8e9bb;
47
+ --color-success-300: #a7db93;
48
+ --color-success-400: #86d06d;
49
+ --color-success-500: #65c345;
50
+ --color-surface-100: #ffffff;
51
+ --color-surface-200: #f9fafb;
52
+ --color-surface-300: #f1f2f4;
53
+ --color-surface-400: #e8eaec;
54
+ --color-surface-500: #e0e1e5;
55
+ --color-surface-600: #d7d9dd;
56
+ --color-surface-700: #75767e;
57
+ --color-surface-800: #1c1b27;
58
+ --color-surface-inverted-100: #1c1b27;
59
+ --color-surface-inverted-200: #3a384d;
60
+ --color-surface-inverted-300: #5b5974;
61
+ --color-surface-inverted-400: #7f7d95;
62
+ --color-surface-inverted-500: #acaabc;
63
+ --color-warning-100: #ffedd6;
64
+ --color-warning-200: #ffe0b8;
65
+ --color-warning-300: #ffce8f;
66
+ --color-warning-400: #ffb95e;
67
+ --color-warning-500: #ff9d1f;
68
+ --font-family-serif: 'Noe Text', 'PT Serif', serif;
69
+ --font-family-sans: 'Roboto', sans-serif;
70
+ --font-family-inter: 'Inter', 'Helvetica Neue', sans-serif;
71
+ --font-line-height-100: 1.4; /** Line height for small text */
72
+ --font-line-height-200: 1.5; /** Line height for body text */
73
+ --font-line-height-300: 1.3; /** Line height for heading 3 text */
74
+ --font-line-height-400: 1.4; /** Line height for heading 2 text */
75
+ --font-line-height-500: 1.3; /** Line height for heading 1 text */
76
+ --font-line-height-600: 1.5; /** Line height for display text */
77
+ --font-size-100: 0.875rem; /** Small text */
78
+ --font-size-200: 1rem; /** Body text */
79
+ --font-size-300: 1.125rem; /** Heading 3 text */
80
+ --font-size-400: 1.25rem; /** Heading 2 text */
81
+ --font-size-500: 1.5rem; /** Heading 1 text */
82
+ --font-size-600: 2rem; /** Display text */
83
+ --font-weight-light: 300;
84
+ --font-weight-normal: 400; /** This is called 'regular' in Figma. */
85
+ --font-weight-medium: 500;
86
+ --font-weight-semibold: 600;
87
+ --font-weight-bold: 700;
88
+ --space-scale-1: 0.5rem;
89
+ --space-scale-2: 1rem;
90
+ --space-scale-3: 1.5rem;
91
+ --space-scale-4: 2.5rem;
92
+ --space-scale-5: 3.5rem;
93
+ --space-scale-6: 4.5rem;
94
+ --space-scale-7: 5.5rem;
95
+ --space-scale-8: 6.5rem;
96
+ --space-scale-9: 7.5rem;
97
+ --space-scale-10: 8.5rem;
98
+ --space-scale-0-5: 0.25rem;
99
+ --space-scale-1-5: 0.75rem;
100
+ --space-scale-2-5: 1.25rem;
101
+ --space-scale-3-5: 2rem;
102
+ --space-scale-4-5: 3rem;
103
+ --space-scale-5-5: 4rem;
104
+ --space-scale-6-5: 5rem;
105
+ --space-scale-7-5: 6rem;
106
+ --space-scale-8-5: 7rem;
107
+ --space-scale-9-5: 8rem;
108
+ --border-radius: 0.5rem; /** Legacy border radius, use 'border-radius-100' instead */
109
+ --border-radius-50: 0.25rem; /** Small border radius for badges and other small visual components */
110
+ --border-radius-100: 0.5rem;
111
+ --border-radius-200: 1rem;
112
+ --box-shadow-sm: 0px 2px 5px rgba(0, 0, 0, 0.1);
113
+ --box-shadow-lg: 0px 2px 20px rgba(0, 0, 0, 0.1);
114
+ --box-shadow-lg-hover: 0px 10px 20px rgba(0, 0, 0, 0.2); /** Large box shadow used for hover effects */
115
+ }
116
+ }
117
+ @layer base{
118
+
119
+ /* http://meyerweb.com/eric/tools/css/reset/
120
+ v2.0 | 20110126
121
+ License: none (public domain)
122
+ */
123
+
124
+ html,
125
+ body,
126
+ div,
127
+ span,
128
+ applet,
129
+ object,
130
+ iframe,
131
+ h1,
132
+ h2,
133
+ h3,
134
+ h4,
135
+ h5,
136
+ h6,
137
+ p,
138
+ blockquote,
139
+ pre,
140
+ a,
141
+ abbr,
142
+ acronym,
143
+ address,
144
+ big,
145
+ cite,
146
+ code,
147
+ del,
148
+ dfn,
149
+ em,
150
+ img,
151
+ ins,
152
+ kbd,
153
+ q,
154
+ s,
155
+ samp,
156
+ small,
157
+ strike,
158
+ strong,
159
+ sub,
160
+ sup,
161
+ tt,
162
+ var,
163
+ b,
164
+ u,
165
+ i,
166
+ center,
167
+ dl,
168
+ dt,
169
+ dd,
170
+ ol,
171
+ ul,
172
+ li,
173
+ fieldset,
174
+ form,
175
+ label,
176
+ legend,
177
+ table,
178
+ caption,
179
+ tbody,
180
+ tfoot,
181
+ thead,
182
+ tr,
183
+ th,
184
+ td,
185
+ article,
186
+ aside,
187
+ canvas,
188
+ details,
189
+ embed,
190
+ figure,
191
+ figcaption,
192
+ footer,
193
+ header,
194
+ hgroup,
195
+ menu,
196
+ nav,
197
+ output,
198
+ ruby,
199
+ section,
200
+ summary,
201
+ time,
202
+ mark,
203
+ audio,
204
+ video {
205
+ margin: 0;
206
+ padding: 0;
207
+ border: 0;
208
+ font-size: 100%;
209
+ font: inherit;
210
+ vertical-align: baseline;
211
+ font-smoothing: antialiased;
212
+ -webkit-font-smoothing: antialiased;
213
+ -moz-osx-font-smoothing: grayscale;
214
+ }
215
+
216
+ /* HTML5 display-role reset for older browsers */
217
+ article,
218
+ aside,
219
+ details,
220
+ figcaption,
221
+ figure,
222
+ footer,
223
+ header,
224
+ hgroup,
225
+ menu,
226
+ nav,
227
+ section {
228
+ display: block;
229
+ }
230
+
231
+ ol,
232
+ ul {
233
+ list-style: none;
234
+ }
235
+
236
+ blockquote,
237
+ q {
238
+ quotes: none;
239
+ }
240
+
241
+ blockquote:before,
242
+ blockquote:after,
243
+ q:before,
244
+ q:after {
245
+ content: '';
246
+ content: none;
247
+ }
248
+
249
+ table {
250
+ border-collapse: collapse;
251
+ border-spacing: 0;
252
+ }
253
+
254
+ body {
255
+ font-family: var(--font-family-inter);
256
+ font-size: 16px;
257
+ color: var(--color-text-500);
258
+ line-height: 1;
259
+ background-color: var(--color-surface-200);
260
+ min-height: 100vh;
261
+ }
262
+
263
+ button {
264
+ font-family: inherit;
265
+ font-size: inherit;
266
+ }
267
+ }
268
+ /*
269
+ Suppress "invalid at-rule" warnings: @import-glob is a build-time feature
270
+ handled by our bundler, not standard CSS. WebStorm doesn't recognize it.
271
+ */
272
+ /* noinspection CssInvalidAtRule */
273
+ @layer base{
274
+
275
+ button,
276
+ .button {
277
+ -webkit-appearance: none;
278
+ -moz-appearance: none;
279
+ appearance: none;
280
+ cursor: pointer;
281
+ position: relative;
282
+ height: var(--button-height, -moz-max-content);
283
+ height: var(--button-height, max-content);
284
+ font-size: var(--font-size-200);
285
+ font-weight: var(--font-weight-semibold);
286
+ line-height: var(--space-scale-3);
287
+ padding: var(--button-vertical-spacing, var(--space-scale-1)) var(--button-horizontal-spacing, var(--space-scale-1-5));
288
+ border-radius: var(--border-radius-100);
289
+ border: var(--button-border, none);
290
+ outline: none;
291
+ transition:
292
+ background-color 0.3s ease,
293
+ box-shadow 0.3s ease;
294
+ background-color: var(--button-background-color, transparent);
295
+ color: var(--button-color, var(--color-text-500));
296
+ width: -moz-fit-content;
297
+ width: fit-content;
298
+ display: flex;
299
+ flex-direction: row;
300
+ align-items: center;
301
+ justify-content: center;
302
+ gap: var(--space-scale-1);
303
+
304
+ &:is([disabled], [aria-disabled='true']) {
305
+ cursor: not-allowed;
306
+ }
307
+
308
+ &:hover:not(:disabled):not([aria-disabled='true']) {
309
+ background-color: var(--button-hover-background-color, var(--button-background-color));
310
+ color: var(--button-hover-color, var(--button-color));
311
+ }
312
+
313
+ &:focus {
314
+ outline: none;
315
+ }
316
+
317
+ &:focus-visible {
318
+ outline: 4px solid var(--button-focus-outline-color, rgba(1, 150, 237, 0.24));
319
+ outline-offset: 0;
320
+ }
321
+
322
+ &[data-theme='primary'] {
323
+ --color-border: var(--color-primary-500);
324
+ --button-background-color: var(--color-primary-400);
325
+ --button-color: var(--color-text-100);
326
+ --button-hover-background-color: var(--color-primary-500);
327
+ --button-border: 1px solid var(--color-border);
328
+ box-shadow:
329
+ inset 0 -2px 2px 0 var(--color-primary-400),
330
+ inset 0 0 0 1px rgba(255, 255, 255, 0.16),
331
+ 0 1px 2px rgba(94, 66, 194, 0.2);
332
+
333
+ &:disabled {
334
+ --button-background-color: var(--color-primary-300);
335
+ box-shadow: none;
336
+ --color-border: var(--color-primary-300);
337
+ }
338
+
339
+ &[data-loading='true'] {
340
+ --button-background-color: var(--color-primary-300);
341
+ box-shadow: none;
342
+ --color-border: var(--color-primary-200);
343
+ }
344
+ }
345
+
346
+ &[data-theme='secondary'] {
347
+ --color-border: var(--color-primary-400);
348
+ --button-background-color: var(--color-surface-200);
349
+ --button-color: var(--color-primary-400);
350
+ --button-border: 1px solid var(--color-border);
351
+ box-shadow:
352
+ inset 0 -2px 2px 0 rgba(224, 225, 229, 0.56),
353
+ inset 0 0 0 2px rgba(255, 255, 255, 0.4),
354
+ 0 1px 2px 0 rgba(60, 66, 87, 0.08);
355
+
356
+ &:hover:not(:disabled):not([aria-disabled='true']) {
357
+ --button-border: 1px solid var(--color-primary-500);
358
+ --button-color: var(--color-primary-500);
359
+ }
360
+
361
+ &:disabled {
362
+ box-shadow: none;
363
+ --color-border: var(--color-primary-300);
364
+ --button-color: var(--color-primary-300);
365
+ }
366
+
367
+ &[data-loading='true'] {
368
+ --color-border: var(--color-primary-300);
369
+ box-shadow: none;
370
+ }
371
+ }
372
+
373
+ &[data-theme='suggestion'] {
374
+ --button-horizontal-spacing: var(--space-scale-2);
375
+ --button-background-color: var(--color-surface-200);
376
+ --button-color: var(--color-primary-400);
377
+ --button-border: 1px solid var(--color-primary-400);
378
+ line-height: var(--space-scale-2);
379
+ font-weight: var(--font-weight-normal);
380
+ font-size: var(--font-size-100);
381
+ border-radius: var(--border-radius-200);
382
+ box-shadow:
383
+ inset 0 -2px 2px 0 rgba(224, 225, 229, 0.56),
384
+ inset 0 0 0 2px rgba(255, 255, 255, 0.4),
385
+ 0 1px 2px 0 rgba(60, 66, 87, 0.08);
386
+
387
+ &:hover:not(:disabled):not([aria-disabled='true']) {
388
+ --button-background-color: var(--color-surface-300);
389
+ }
390
+ }
391
+
392
+ &[data-theme='tertiary'] {
393
+ --button-color: var(--color-primary-400);
394
+ --button-hover-color: var(--color-primary-500);
395
+
396
+ &:disabled {
397
+ box-shadow: none;
398
+ --button-color: var(--color-primary-300);
399
+ }
400
+
401
+ &:hover:not(:disabled):not([aria-disabled='true']) {
402
+ --button-background-color: var(--color-primary-100);
403
+ }
404
+
405
+ &[data-loading='true'] {
406
+ box-shadow: none;
407
+ }
408
+ }
409
+
410
+ &[data-theme='destructive-primary'] {
411
+ --color-border: var(--color-alert-500);
412
+ --button-background-color: var(--color-alert-400);
413
+ --button-color: var(--color-text-100);
414
+ --button-hover-background-color: var(--color-alert-500);
415
+ --button-border: 1px solid var(--color-border);
416
+ box-shadow:
417
+ inset 0 -2px 2px 0 rgba(168, 5, 5, 0.56),
418
+ inset 0 0 0 1px rgba(255, 255, 255, 0.24),
419
+ 0 1px 2px rgba(60, 66, 87, 0.08);
420
+
421
+ &:disabled {
422
+ --button-background-color: var(--color-alert-200);
423
+ box-shadow: none;
424
+ --color-border: var(--color-alert-200);
425
+ }
426
+
427
+ &[data-loading='true'] {
428
+ --button-background-color: var(--color-alert-200);
429
+ box-shadow: none;
430
+ --color-border: var(--color-alert-100);
431
+ --spinner-color: var(--color-surface-100);
432
+ }
433
+ }
434
+
435
+ &[data-theme='destructive-secondary'] {
436
+ --button-background-color: var(--color-surface-200);
437
+ --button-color: var(--color-alert-400);
438
+ --color-border: var(--color-alert-300);
439
+ --button-border: 1px solid var(--color-border);
440
+ box-shadow:
441
+ inset 0 -2px 2px 0 rgba(224, 225, 229, 0.56),
442
+ inset 0 0 0 2px rgba(255, 255, 255, 0.4),
443
+ 0 1px 2px 0 rgba(60, 66, 87, 0.08);
444
+
445
+ &:hover:not(:disabled):not([aria-disabled='true']) {
446
+ --color-border: var(--color-alert-500);
447
+ --button-color: var(--color-alert-500);
448
+ }
449
+
450
+ &:disabled {
451
+ box-shadow: none;
452
+ --color-border: var(--color-alert-200);
453
+ --button-color: var(--color-alert-200);
454
+ }
455
+
456
+ &[data-loading='true'] {
457
+ box-shadow: none;
458
+ --spinner-color: var(--color-alert-400);
459
+ }
460
+ }
461
+
462
+ &[data-theme='destructive-tertiary'] {
463
+ --button-color: var(--color-alert-400);
464
+ --button-hover-color: var(--color-alert-500);
465
+
466
+ &:disabled {
467
+ box-shadow: none;
468
+ --color-border: var(--color-border-100);
469
+ --button-color: var(--color-alert-200);
470
+ }
471
+
472
+ &:hover:not(:disabled):not([aria-disabled='true']) {
473
+ --button-background-color: var(--color-alert-100);
474
+ }
475
+
476
+ &[data-loading='true'] {
477
+ box-shadow: none;
478
+ --spinner-color: var(--color-alert-400);
479
+ }
480
+ }
481
+
482
+ &.small {
483
+ --button-horizontal-spacing: var(--space-scale-1);
484
+ --button-vertical-spacing: var(--space-scale-0-5);
485
+ }
486
+
487
+ &.large {
488
+ --button-horizontal-spacing: 0.75rem;
489
+ --button-vertical-spacing: var(--space-scale-1);
490
+ }
491
+
492
+ &[data-loading='true'] {
493
+ position: relative;
494
+ color: transparent !important;
495
+ pointer-events: none;
496
+ cursor: not-allowed;
497
+ -webkit-user-select: none;
498
+ -moz-user-select: none;
499
+ user-select: none;
500
+ --spinner-color: var(--color-primary-400);
501
+ }
502
+
503
+ /*Spinner magic*/
504
+ &[data-loading='true']::after {
505
+ content: '';
506
+ position: absolute;
507
+ top: calc(50% - 10px);
508
+ left: calc(50% - 10px);
509
+ width: 20px;
510
+ height: 20px;
511
+ transform: translate(-50%, -50%);
512
+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='none' fill-rule='evenodd' stroke='white' stroke-linecap='round' stroke-width='2' d='M9 1a8 8 0 1 0 0 16 8 8 0 0 0 8-8'/%3E%3C/svg%3E");
513
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='none' fill-rule='evenodd' stroke='white' stroke-linecap='round' stroke-width='2' d='M9 1a8 8 0 1 0 0 16 8 8 0 0 0 8-8'/%3E%3C/svg%3E");
514
+ mask-size: contain;
515
+ -webkit-mask-size: contain;
516
+ background-color: var(--spinner-color);
517
+ animation: spin-animation 1s infinite linear;
518
+ }
519
+ }
520
+
521
+ @keyframes spin-animation {
522
+ from {
523
+ transform: rotate(0turn);
524
+ }
525
+ to {
526
+ transform: rotate(1turn);
527
+ }
528
+ }
529
+ }
530
+ @layer base{
531
+
532
+ @font-face {
533
+ font-family: 'Noe Text';
534
+ src:
535
+ url("assets/fonts/Noe/noeTextBook.woff") format('woff'),
536
+ url("assets/fonts/Noe/noeTextBook.ttf") format('truetype');
537
+ }
538
+
539
+ @font-face {
540
+ font-family: 'Noe Display';
541
+ src:
542
+ url("assets/fonts/Noe/noeDisplayRegular.woff") format('woff'),
543
+ url("assets/fonts/Noe/noeDisplayRegular.ttf") format('truetype');
544
+ }
545
+ }
546
+ @layer base{
547
+
548
+ input[type='checkbox'] {
549
+ accent-color: var(--color-primary-400);
550
+ width: var(--checkbox-size, var(--space-scale-2));
551
+ aspect-ratio: 1;
552
+ }
553
+
554
+ input[type='checkbox'][data-theme='toggle'],
555
+ [role='switch'] {
556
+ --toggle-width: var(--space-scale-5);
557
+ --toggle-height: 1.75rem;
558
+ --toggle-background-color: var(--color-surface-700);
559
+
560
+ -webkit-appearance: none;
561
+
562
+ -moz-appearance: none;
563
+
564
+ appearance: none;
565
+ width: var(--toggle-width);
566
+ height: var(--toggle-height);
567
+ border-radius: 18px;
568
+ color: var(--toggle-color, var(--color-text-200));
569
+ background-color: var(--toggle-background-color);
570
+ transition:
571
+ color var(--toggle-transition-speed, 0.25s),
572
+ background-color var(--toggle-transition-speed, 0.25s);
573
+ cursor: pointer;
574
+ display: block;
575
+ border-color: var(--toggle-border-color, transparent);
576
+ border-width: var(--toggle-border-width, 0px);
577
+ padding: 2px;
578
+ position: relative;
579
+ min-width: var(--toggle-width);
580
+
581
+ &:hover {
582
+ color: var(--toggle-hover-color, var(--color-text-300));
583
+ background-color: var(--toggle-hover-background-color, var(--color-surface-800));
584
+ }
585
+
586
+ &[disabled],
587
+ &[aria-disabled='true'] {
588
+ opacity: 0.5;
589
+ cursor: not-allowed;
590
+ pointer-events: none;
591
+ }
592
+
593
+ &:checked,
594
+ &[aria-checked='true'] {
595
+ --toggle-color: var(--color-success-300);
596
+ --toggle-background-color: var(--color-success-300);
597
+ --toggle-hover-color: var(--color-success-500);
598
+ --toggle-hover-background-color: var(--color-success-500);
599
+ }
600
+
601
+ &::before {
602
+ content: '';
603
+ position: absolute;
604
+ top: 2px;
605
+ right: calc(100% - var(--toggle-height) + 2px);
606
+ height: calc(100% - 4px);
607
+ aspect-ratio: 1;
608
+ border-radius: inherit;
609
+ background-color: var(--color-surface-100);
610
+ transition: right var(--toggle-transition-speed, 0.25s) ease;
611
+ z-index: 1;
612
+ padding: 4px;
613
+ box-sizing: border-box;
614
+ }
615
+
616
+ &::after {
617
+ content: '';
618
+ -webkit-mask-image: url("assets/icons/close.svg");
619
+ mask-image: url("assets/icons/close.svg");
620
+ -webkit-mask-size: 18px;
621
+ mask-size: 18px;
622
+ -webkit-mask-position: center center;
623
+ mask-position: center center;
624
+ -webkit-mask-repeat: no-repeat;
625
+ mask-repeat: no-repeat;
626
+ position: absolute;
627
+ top: 2px;
628
+ right: calc(100% - var(--toggle-height) + 2px);
629
+ height: calc(100% - 4px);
630
+ aspect-ratio: 1;
631
+ border-radius: inherit;
632
+ background-color: var(--toggle-background-color);
633
+ transition: right var(--toggle-transition-speed, 0.25s) ease;
634
+ z-index: 2;
635
+ padding: 4px;
636
+ box-sizing: border-box;
637
+ }
638
+
639
+ &:is(:checked, [aria-checked='true']) {
640
+ &::before,
641
+ &::after {
642
+ right: 2px;
643
+ }
644
+
645
+ &::after {
646
+ -webkit-mask-image: url("assets/icons/tick.svg");
647
+ mask-image: url("assets/icons/tick.svg");
648
+ -webkit-mask-size: 14px;
649
+ mask-size: 14px;
650
+ background-size: 12px;
651
+ background-position: center center;
652
+ -webkit-mask-position: center calc(50% + 1px);
653
+ mask-position: center calc(50% + 1px);
654
+ }
655
+ }
656
+
657
+ &[aria-invalid]:not([aria-invalid='false']),
658
+ &:user-invalid {
659
+ accent-color: var(--color-alert-400);
660
+ }
661
+ }
662
+ }
663
+ @layer base{
664
+ label {
665
+ font-size: var(--font-size-200);
666
+ line-height: 1.5;
667
+ font-weight: var(--font-weight-normal);
668
+ color: var(--color-text-300);
669
+ }
670
+ }
671
+ @layer base{
672
+
673
+ input[type='number'] {
674
+ position: relative;
675
+ }
676
+
677
+ input[type='number']::-webkit-inner-spin-button {
678
+ position: absolute;
679
+ top: var(--space-scale-0-5);
680
+ right: var(--input-horizontal-spacing);
681
+ height: calc(100% - var(--space-scale-1));
682
+ }
683
+ }
684
+ @layer base{
685
+ input[type='radio'] {
686
+ --radio-size: var(--space-scale-2);
687
+ --radio-accent-color: var(--color-primary-400);
688
+
689
+ -webkit-appearance: none;
690
+
691
+ -moz-appearance: none;
692
+
693
+ appearance: none;
694
+ accent-color: var(--radio-accent-color);
695
+ width: var(--radio-size);
696
+ aspect-ratio: 1;
697
+ cursor: pointer;
698
+ border: 1px solid var(--radio-accent-color);
699
+ border-radius: 50%;
700
+
701
+ display: inline-grid;
702
+ place-content: center;
703
+ margin: 0;
704
+
705
+ &::before {
706
+ transform: scale(0);
707
+ content: '';
708
+ width: calc(var(--radio-size) * 0.75);
709
+ aspect-ratio: 1;
710
+ border-radius: 50%;
711
+ transition: 120ms transform ease-in-out;
712
+ background: var(--radio-accent-color);
713
+ }
714
+
715
+ &:checked::before {
716
+ transform: scale(1);
717
+ }
718
+
719
+ &:disabled {
720
+ opacity: 0.5;
721
+ cursor: not-allowed;
722
+
723
+ + label {
724
+ opacity: 0.75;
725
+ }
726
+ }
727
+ }
728
+ }
729
+ @layer base{
730
+
731
+ @property --input-horizontal-spacing {
732
+ syntax: '*';
733
+ inherits: true;
734
+ initial-value: 1rem;
735
+ }
736
+
737
+ input:not([type='checkbox'], [type='radio']),
738
+ textarea {
739
+ -webkit-appearance: none;
740
+ -moz-appearance: none;
741
+ appearance: none;
742
+ background-color: var(--input-background-color, var(--color-surface-100));
743
+ border-color: var(--input-border-color, var(--color-border-400));
744
+ border-radius: var(--border-radius-100);
745
+ border-style: solid;
746
+ border-width: var(--input-border-width, 1px);
747
+ box-sizing: border-box;
748
+ color: var(--input-color, inherit);
749
+ height: var(--input-height, var(--space-scale-4));
750
+ padding: var(--input-vertical-spacing, 0) var(--input-horizontal-spacing, var(--space-scale-2));
751
+ font-family: var(--font-family-sans);
752
+ font-size: var(--font-size-100);
753
+ line-height: var(--line-height-200);
754
+ transition:
755
+ background-color ease-in 100ms,
756
+ border-color ease-in 200ms;
757
+ width: 100%;
758
+
759
+ &:hover {
760
+ --input-background-color: var(--color-surface-300);
761
+ }
762
+
763
+ &::-moz-placeholder {
764
+ font-size: var(--font-size-100);
765
+ color: var(--placeholder-color, var(--color-text-300));
766
+ }
767
+
768
+ &::placeholder {
769
+ font-size: var(--font-size-100);
770
+ color: var(--placeholder-color, var(--color-text-300));
771
+ }
772
+
773
+ &:focus {
774
+ outline: none;
775
+ border-color: var(--input-focus-border-color, var(--color-primary-400));
776
+ box-shadow: 0px 0px 0px 4px rgba(1, 150, 237, 0.24);
777
+ }
778
+
779
+ &:disabled,
780
+ [aria-disabled='true'] {
781
+ --input-color: var(--color-text-200);
782
+ --placeholder-color: var(--color-text-200);
783
+ --input-background-color: var(--color-surface-200);
784
+ }
785
+
786
+ &[aria-invalid]:not([aria-invalid='false']),
787
+ &:user-invalid {
788
+ --input-border-color: var(--color-alert-400);
789
+ --input-focus-border-color: var(--color-alert-400);
790
+ }
791
+ }
792
+ }
793
+ @layer base{
794
+ textarea {
795
+ --input-vertical-spacing: var(--space-scale-2);
796
+ --input-height: auto;
797
+ resize: none;
798
+ text-align: left;
799
+ }
800
+ }
801
+ @layer base{
802
+ h1,
803
+ h2,
804
+ h3,
805
+ h4 {
806
+ font-family: var(--font-family-inter);
807
+ font-weight: var(--font-weight-semibold);
808
+ color: var(--color-text-500);
809
+ }
810
+
811
+ .display {
812
+ font-size: var(--font-size-600);
813
+ line-height: var(--font-line-height-600);
814
+ }
815
+
816
+ h1,
817
+ .heading-1 {
818
+ font-size: var(--font-size-500);
819
+ line-height: var(--font-line-height-500);
820
+ }
821
+
822
+ h2,
823
+ .heading-2 {
824
+ font-size: var(--font-size-400);
825
+ line-height: var(--font-line-height-400);
826
+ }
827
+
828
+ h3,
829
+ .heading-3 {
830
+ font-size: var(--font-size-300);
831
+ line-height: var(--font-line-height-300);
832
+ }
833
+
834
+ h4,
835
+ .heading-4 {
836
+ font-size: var(--font-size-200);
837
+ line-height: var(--font-line-height-200);
838
+ }
839
+
840
+ p,
841
+ .body {
842
+ line-height: var(--font-line-height-200);
843
+ font-size: var(--font-size-200);
844
+ color: var(--color-text-400);
845
+ }
846
+
847
+ strong,
848
+ .strong {
849
+ font-weight: var(--font-weight-semibold);
850
+ }
851
+
852
+ .small {
853
+ font-size: var(--font-size-100);
854
+ line-height: var(--font-line-height-100);
855
+ }
856
+
857
+ a {
858
+ font-weight: var(--font-weight-medium);
859
+ color: var(--color-primary-400);
860
+ cursor: pointer;
861
+ text-decoration: none;
862
+ line-height: 1.4;
863
+ }
864
+
865
+ body {
866
+ color: var(--color-text-500);
867
+ font-weight: var(--font-weight-normal);
868
+ font-size: var(--font-size-200);
869
+ }
870
+ }
871
+ /* noinspection CssInvalidAtRule */
872
+ @layer blocks{
873
+
874
+ @property --badge-bg-color {
875
+ syntax: '<color>';
876
+ inherits: true;
877
+ initial-value: transparent;
878
+ }
879
+
880
+ @property --badge-border-color {
881
+ syntax: '<color>';
882
+ inherits: true;
883
+ initial-value: transparent;
884
+ }
885
+
886
+ .badge {
887
+ --badge-bg-color: var(--color-surface-300);
888
+ --badge-border-color: var(--color-border-300);
889
+
890
+ background-color: var(--badge-bg-color);
891
+ border: 1px solid var(--badge-border-color);
892
+ border-radius: var(--border-radius-50);
893
+ display: inline-block;
894
+ color: var(--color-text-400);
895
+ font-weight: var(--font-weight-normal);
896
+ font-size: var(--font-size-200);
897
+ line-height: var(--font-line-height-200);
898
+ padding-inline: var(--space-scale-1);
899
+
900
+ &[data-theme='danger'] {
901
+ --badge-bg-color: var(--color-alert-100);
902
+ --badge-border-color: var(--color-alert-200);
903
+ }
904
+
905
+ &[data-theme='success'] {
906
+ --badge-bg-color: var(--color-success-100);
907
+ --badge-border-color: var(--color-success-200);
908
+ }
909
+
910
+ &[data-theme='warning'] {
911
+ --badge-bg-color: var(--color-warning-100);
912
+ --badge-border-color: var(--color-warning-200);
913
+ }
914
+
915
+ &[data-theme='info'] {
916
+ --badge-bg-color: var(--color-info-100);
917
+ --badge-border-color: var(--color-info-100);
918
+ }
919
+
920
+ &[data-theme='primary'] {
921
+ --badge-bg-color: var(--color-primary-100);
922
+ --badge-border-color: var(--color-primary-200);
923
+ }
924
+
925
+ &[data-theme='subtle'] {
926
+ --badge-bg-color: var(--color-surface-200);
927
+ --badge-border-color: var(--color-border-100);
928
+ }
929
+ }
930
+ }
931
+ @layer blocks{
932
+
933
+ .card {
934
+ border-radius: var(--border-radius-100);
935
+ border: 1px solid var(--color-border-100);
936
+ background-color: var(--color-surface-100);
937
+ box-shadow: 0 2px 0 0 var(--color-border-200);
938
+ padding: var(--card-padding, var(--space-scale-3));
939
+ display: flex;
940
+ flex-direction: column;
941
+ gap: var(--card-vertical-spacing, var(--space-scale-3));
942
+ }
943
+
944
+ [class*='card'] {
945
+ background-color: var(--color-surface-100);
946
+ box-shadow: var(--box-shadow-lg);
947
+ display: flex;
948
+ flex-direction: column;
949
+ gap: var(--card-vertical-spacing, var(--space-scale-1));
950
+
951
+ padding: var(--card-padding, var(--space-scale-3));
952
+ font-size: var(--font-size-200);
953
+ font-weight: var(--font-weight-normal);
954
+ line-height: 1.5;
955
+
956
+ .value {
957
+ font-size: var(--font-size-600);
958
+ font-weight: var(--font-weight-normal);
959
+ line-height: normal;
960
+ display: block;
961
+ font-family: var(--font-family-serif);
962
+ }
963
+ }
964
+
965
+ .card-dataview {
966
+ --card-vertical-spacing: 0;
967
+ --card-padding: var(--space-scale-2);
968
+
969
+ display: grid;
970
+ grid-template-rows: repeat(4, 1fr);
971
+
972
+ .title {
973
+ font-size: inherit;
974
+ font-weight: inherit;
975
+ line-height: inherit;
976
+ }
977
+
978
+ .status {
979
+ align-self: center;
980
+ }
981
+ }
982
+ }
983
+ @layer blocks{
984
+ header[data-theme='top-nav'] {
985
+ background-color: var(--color-surface-800);
986
+ color: var(--color-text-100);
987
+ padding: var(--space-scale-2) var(--space-scale-6);
988
+ min-height: var(--space-scale-7-5);
989
+ display: flex;
990
+ align-items: center;
991
+ gap: var(--space-scale-4);
992
+ width: 100%;
993
+ box-sizing: border-box;
994
+
995
+ img {
996
+ }
997
+
998
+ nav {
999
+ > ul {
1000
+ display: flex;
1001
+ gap: var(--space-scale-3);
1002
+ list-style: none;
1003
+ margin: 0;
1004
+ padding: 0;
1005
+ align-items: center;
1006
+ height: 100%;
1007
+ }
1008
+
1009
+ a {
1010
+ color: inherit;
1011
+ text-underline-offset: var(--space-scale-1-5);
1012
+ font-weight: var(--font-weight-bold);
1013
+ font-size: var(--font-size-100);
1014
+
1015
+ &:is(:hover, [data-active='true']) {
1016
+ text-decoration: underline;
1017
+ text-decoration-thickness: 2px;
1018
+ text-decoration-color: var(--color-primary-300);
1019
+ }
1020
+ }
1021
+ }
1022
+ }
1023
+ }
1024
+ @layer blocks{
1025
+ .status {
1026
+ --tag-background-color: var(--color-surface-100);
1027
+ --tag-color: var(--color-text-500);
1028
+
1029
+ background-color: var(--tag-background-color);
1030
+ color: var(--tag-color);
1031
+ border-radius: var(--border-radius-100);
1032
+ padding: var(--space-scale-0-5) var(--space-scale-1);
1033
+ font-size: var(--font-size-100);
1034
+ width: -moz-fit-content;
1035
+ width: fit-content;
1036
+ height: -moz-fit-content;
1037
+ height: fit-content;
1038
+
1039
+ &[data-status='warning'] {
1040
+ --tag-background-color: var(--color-warning-100);
1041
+ --tag-color: var(--color-warning-400);
1042
+ }
1043
+ }
1044
+ }
1045
+ @layer blocks{
1046
+ table {
1047
+ width: 100%;
1048
+ border: 1px solid var(--color-surface-500);
1049
+ }
1050
+ thead {
1051
+ background-color: var(--color-surface-300);
1052
+ color: var(--color-text-400);
1053
+ }
1054
+
1055
+ th {
1056
+ padding: var(--space-scale-1);
1057
+ text-align: right;
1058
+
1059
+ &:first-child {
1060
+ text-align: left;
1061
+ }
1062
+ }
1063
+
1064
+ td {
1065
+ padding: var(--space-scale-1);
1066
+ text-align: right;
1067
+ vertical-align: middle;
1068
+
1069
+ &:first-child {
1070
+ text-align: left;
1071
+ }
1072
+ }
1073
+
1074
+ tr {
1075
+ border-top: 1px solid var(--color-surface-500);
1076
+ border-bottom: 1px solid var(--color-surface-500);
1077
+ }
1078
+
1079
+ tfoot {
1080
+ }
1081
+ }
1082
+ /* noinspection CssInvalidAtRule */
1083
+ @layer compositions{
1084
+
1085
+ [class^='column'] {
1086
+ display: flex;
1087
+ flex-direction: column;
1088
+ gap: var(--column-vertical-spacing, var(--space-scale-1));
1089
+
1090
+ &[data-align='end'] {
1091
+ align-items: flex-end;
1092
+ }
1093
+
1094
+ &[data-align='center'] {
1095
+ align-items: center;
1096
+ }
1097
+
1098
+ &[data-align='start'] {
1099
+ align-items: flex-start;
1100
+ }
1101
+
1102
+ &[data-justify='end'] {
1103
+ justify-content: flex-end;
1104
+ }
1105
+
1106
+ &[data-justify='center'] {
1107
+ justify-content: center;
1108
+ }
1109
+ }
1110
+
1111
+ .column-xs {
1112
+ --column-vertical-spacing: var(--space-scale-0-5);
1113
+ }
1114
+
1115
+ .column-sm {
1116
+ --column-vertical-spacing: var(--space-scale-1);
1117
+ }
1118
+
1119
+ .column-md {
1120
+ --column-vertical-spacing: var(--space-scale-2);
1121
+ }
1122
+
1123
+ .column-lg {
1124
+ --column-vertical-spacing: var(--space-scale-3);
1125
+ }
1126
+
1127
+ .column-xl {
1128
+ --column-vertical-spacing: var(--space-scale-4);
1129
+ }
1130
+
1131
+ .column-2xl {
1132
+ --column-vertical-spacing: var(--space-scale-5);
1133
+ }
1134
+ }
1135
+ @layer compositions{
1136
+
1137
+ @property --stack-vertical-spacing {
1138
+ syntax: '<length>';
1139
+ initial-value: var(--space-scale-1);
1140
+ inherits: false;
1141
+ }
1142
+
1143
+ [class^='stack'] > * + * {
1144
+ margin-top: var(--stack-vertical-spacing);
1145
+ }
1146
+
1147
+ .stack-xs {
1148
+ --stack-vertical-spacing: var(--space-scale-0-5);
1149
+ }
1150
+
1151
+ .stack-sm {
1152
+ --stack-vertical-spacing: var(--space-scale-1);
1153
+ }
1154
+
1155
+ .stack-md {
1156
+ --stack-vertical-spacing: var(--space-scale-2);
1157
+ }
1158
+
1159
+ .stack-lg {
1160
+ --stack-vertical-spacing: var(--space-scale-3);
1161
+ }
1162
+
1163
+ .stack-xl {
1164
+ --stack-vertical-spacing: var(--space-scale-4);
1165
+ }
1166
+
1167
+ .stack-2xl {
1168
+ --stack-vertical-spacing: var(--space-scale-5);
1169
+ }
1170
+ }
1171
+ /* noinspection CssInvalidAtRule */
1172
+ /* noinspection CssInvalidAtRule */