@inglorious/ui 9.8.0 → 9.8.1
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/package.json +5 -5
- package/src/controls/button/style.css +0 -2
- package/src/controls/button/template.js +2 -3
- package/src/controls/checkbox/style.css +0 -1
- package/src/controls/checkbox/template.js +0 -2
- package/src/controls/combobox/style.css +0 -14
- package/src/controls/combobox/template.js +0 -13
- package/src/controls/file-upload/template.js +1 -1
- package/src/controls/image-cropper/helpers.js +0 -2
- package/src/controls/image-cropper/image.js +0 -2
- package/src/controls/image-cropper/style.css +0 -6
- package/src/controls/image-cropper/template.js +3 -5
- package/src/controls/input/style.css +0 -1
- package/src/controls/radio-group/style.css +0 -2
- package/src/controls/rating/style.css +0 -3
- package/src/controls/select/style.css +0 -6
- package/src/controls/slider/style.css +0 -5
- package/src/controls/slider/template.js +0 -1
- package/src/controls/switch/style.css +0 -1
- package/src/controls/switch/template.js +0 -2
- package/src/controls/textarea/style.css +0 -2
- package/src/data-display/before-after/style.css +0 -4
- package/src/data-display/before-after/template.js +3 -3
- package/src/data-display/carousel/carousel.stories.js +0 -2
- package/src/data-display/carousel/handlers.js +0 -2
- package/src/data-display/carousel/style.css +0 -18
- package/src/data-display/carousel/template.js +0 -15
- package/src/data-display/chat/index.js +0 -1
- package/src/data-display/chat/style.css +0 -2
- package/src/data-display/chat/template.js +0 -1
- package/src/data-display/chip/template.js +0 -1
- package/src/data-display/data-grid/base.css +0 -2
- package/src/data-display/data-grid/handlers.js +1 -8
- package/src/data-display/data-grid/helpers.js +0 -5
- package/src/data-display/data-grid/template.js +0 -1
- package/src/data-display/data-grid/theme.css +0 -1
- package/src/data-display/icon/style.css +0 -7
- package/src/data-display/icon/template.js +2 -2
- package/src/data-display/table/style.css +0 -2
- package/src/data-display/tooltip/style.css +0 -3
- package/src/data-display/virtual-list/handlers.js +0 -2
- package/src/data-display/virtual-list/template.js +2 -4
- package/src/examples/dashboard/before-after-data.js +0 -3
- package/src/examples/dashboard/data.js +0 -1
- package/src/examples/dashboard/primitive-content.js +0 -2
- package/src/examples/dashboard/style.css +0 -3
- package/src/feedback/alert/style.css +0 -1
- package/src/feedback/dialog/dialog.stories.js +0 -4
- package/src/feedback/dialog/style.css +0 -10
- package/src/feedback/dialog/template.js +0 -5
- package/src/feedback/progress/style.css +0 -6
- package/src/feedback/progress/template.js +0 -3
- package/src/feedback/snackbar/snackbar.stories.js +0 -1
- package/src/feedback/snackbar/style.css +0 -10
- package/src/layout/flex/style.css +0 -2
- package/src/navigation/bottom-navigation/style.css +0 -7
- package/src/navigation/drawer/style.css +0 -21
- package/src/navigation/drawer/template.js +0 -2
- package/src/navigation/menu/menu.stories.js +0 -2
- package/src/navigation/menu/style.css +0 -4
- package/src/navigation/menu/template.js +0 -3
- package/src/navigation/speed-dial/style.css +0 -4
- package/src/navigation/speed-dial/template.js +0 -5
- package/src/navigation/tabs/template.js +0 -2
- package/src/navigation/view-transitions/index.js +0 -13
- package/src/navigation/view-transitions/style.css +0 -2
- package/src/shared/icons.js +0 -4
- package/src/styles/themes/bootstrap.css +0 -40
- package/src/styles/themes/inglorious.css +0 -21
- package/src/styles/themes/ios-18.css +0 -47
- package/src/styles/themes/ios-26.css +0 -55
- package/src/styles/themes/material-3.css +0 -52
- package/src/styles/themes/material-ui.css +0 -43
- package/src/styles/tokens.css +0 -40
- package/src/surfaces/accordion/style.css +0 -2
- package/src/surfaces/accordion/template.js +0 -4
- package/src/surfaces/app-bar/style.css +0 -3
- package/src/surfaces/card/style.css +0 -3
- package/types/controls/button-group.d.ts +5 -3
- package/types/controls/button.d.ts +3 -1
- package/types/controls/combobox.d.ts +13 -0
- package/types/controls/fab.d.ts +1 -1
- package/types/controls/icon-button.d.ts +7 -21
- package/types/controls/input.d.ts +2 -2
- package/types/data-display/avatar.d.ts +1 -1
- package/types/data-display/badge.d.ts +4 -2
- package/types/data-display/chip.d.ts +5 -3
- package/types/data-display/icon.d.ts +4 -2
- package/types/data-display/tooltip.d.ts +4 -2
- package/types/data-display/typography.d.ts +3 -1
- package/types/feedback/alert.d.ts +3 -1
- package/types/feedback/backdrop.d.ts +4 -2
- package/types/feedback/dialog.d.ts +3 -1
- package/types/index.d.ts +1 -0
- package/types/layout/container.d.ts +3 -1
- package/types/layout/flex.d.ts +9 -11
- package/types/layout/grid.d.ts +4 -2
- package/types/navigation/breadcrumbs.d.ts +1 -1
- package/types/navigation/drawer.d.ts +3 -1
- package/types/navigation/link.d.ts +4 -2
- package/types/shared/renderable.d.ts +12 -0
- package/types/surfaces/app-bar.d.ts +3 -1
- package/types/surfaces/card.d.ts +4 -2
- package/types/surfaces/paper.d.ts +3 -1
|
@@ -1,39 +1,25 @@
|
|
|
1
|
-
/* San Francisco is the system font on Apple devices, and cannot be served to
|
|
2
|
-
others: Inter stands in for it there. */
|
|
3
1
|
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
|
|
4
2
|
|
|
5
3
|
.iw-theme-ios-26 {
|
|
6
4
|
--iw-font-family-sans:
|
|
7
5
|
-apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue",
|
|
8
6
|
Arial, sans-serif;
|
|
9
|
-
/* The theme on the page itself: the element with the theme class, usually
|
|
10
|
-
<body>, takes its background, text color and font. */
|
|
11
7
|
background-color: var(--iw-color-bg);
|
|
12
8
|
color: var(--iw-color-text);
|
|
13
9
|
font-family: var(--iw-font-family-sans);
|
|
14
10
|
|
|
15
|
-
/* ========================================
|
|
16
|
-
iOS 26 THEME - Liquid Glass
|
|
17
|
-
======================================== */
|
|
18
|
-
|
|
19
|
-
/* iOS color roles the shared tokens have no name for */
|
|
20
11
|
--iw-ios-fill: rgba(118, 118, 128, 0.12);
|
|
21
12
|
--iw-ios-fill-secondary: rgba(120, 120, 128, 0.2);
|
|
22
13
|
--iw-ios-fill-quaternary: rgba(116, 116, 128, 0.08);
|
|
23
14
|
--iw-ios-gray: #8e8e93;
|
|
24
15
|
--iw-ios-segment-selected: var(--iw-color-white);
|
|
25
|
-
/* Glass: what passes under it is blurred and brightened, its edge catches
|
|
26
|
-
the light, and it floats on a soft shadow. Only controls and navigation
|
|
27
|
-
are glass, never content. */
|
|
28
16
|
--iw-ios-glass-bg: rgba(255, 255, 255, 0.6);
|
|
29
17
|
--iw-ios-glass-blur: blur(12px) saturate(180%);
|
|
30
18
|
--iw-ios-glass-border: rgba(255, 255, 255, 0.7);
|
|
31
19
|
--iw-ios-glass-shadow:
|
|
32
20
|
inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 24px rgba(0, 0, 0, 0.1);
|
|
33
|
-
/* The highlight along the top of a filled control */
|
|
34
21
|
--iw-ios-sheen: inset 0 1px 0 rgba(255, 255, 255, 0.3);
|
|
35
22
|
|
|
36
|
-
/* Semantic Colors: grouped content, white on grey */
|
|
37
23
|
--iw-color-bg: #f2f2f7;
|
|
38
24
|
--iw-color-bg-secondary: #f2f2f7;
|
|
39
25
|
--iw-color-bg-tertiary: #e5e5ea;
|
|
@@ -48,7 +34,6 @@
|
|
|
48
34
|
--iw-color-border: #c6c6c8;
|
|
49
35
|
--iw-color-border-focus: #0088ff;
|
|
50
36
|
|
|
51
|
-
/* The system colors as iOS 26 retuned them */
|
|
52
37
|
--iw-color-primary: #0088ff;
|
|
53
38
|
--iw-color-primary-hover: color-mix(in srgb, #0088ff 92%, #000000);
|
|
54
39
|
--iw-color-primary-active: color-mix(in srgb, #0088ff 85%, #000000);
|
|
@@ -68,15 +53,12 @@
|
|
|
68
53
|
--iw-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.14);
|
|
69
54
|
--iw-shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.2);
|
|
70
55
|
|
|
71
|
-
/* Larger corners, nested concentrically */
|
|
72
56
|
--iw-radius-sm: 8px;
|
|
73
57
|
--iw-radius-md: 12px;
|
|
74
58
|
--iw-radius-lg: 16px;
|
|
75
59
|
--iw-radius-xl: 24px;
|
|
76
60
|
--iw-radius-2xl: 34px;
|
|
77
61
|
|
|
78
|
-
/* The Dynamic Type scale at its default size: footnote, subheadline,
|
|
79
|
-
body, title 3, title 2, title 1 and large title */
|
|
80
62
|
--iw-font-size-xs: 0.8125rem;
|
|
81
63
|
--iw-font-size-sm: 0.9375rem;
|
|
82
64
|
--iw-font-size-base: 1.0625rem;
|
|
@@ -87,11 +69,6 @@
|
|
|
87
69
|
|
|
88
70
|
--iw-label-font-weight: var(--iw-font-weight-medium);
|
|
89
71
|
|
|
90
|
-
/* ========================================
|
|
91
|
-
COMPONENT TOKENS
|
|
92
|
-
======================================== */
|
|
93
|
-
|
|
94
|
-
/* Button: a filled capsule */
|
|
95
72
|
--iw-button-bg: var(--iw-color-primary);
|
|
96
73
|
--iw-button-bg-hover: var(--iw-color-primary-hover);
|
|
97
74
|
--iw-button-bg-active: var(--iw-color-primary);
|
|
@@ -102,8 +79,6 @@
|
|
|
102
79
|
--iw-button-shadow-hover: var(--iw-ios-sheen);
|
|
103
80
|
--iw-button-shadow-active: var(--iw-ios-sheen);
|
|
104
81
|
|
|
105
|
-
/* A button's default color is a glass button, labelled in the text color;
|
|
106
|
-
its outlined and ghost forms take the tint */
|
|
107
82
|
--iw-button-default-color: var(--iw-color-primary);
|
|
108
83
|
--iw-button-default-bg: var(--iw-ios-glass-bg);
|
|
109
84
|
--iw-button-default-bg-hover: var(--iw-ios-glass-bg);
|
|
@@ -111,7 +86,6 @@
|
|
|
111
86
|
--iw-button-default-border: var(--iw-ios-glass-border);
|
|
112
87
|
--iw-button-default-text: var(--iw-color-text);
|
|
113
88
|
|
|
114
|
-
/* Input: a filled, borderless field */
|
|
115
89
|
--iw-input-bg: var(--iw-ios-fill);
|
|
116
90
|
--iw-input-bg-hover: var(--iw-ios-fill);
|
|
117
91
|
--iw-input-bg-focus: var(--iw-ios-fill);
|
|
@@ -124,26 +98,20 @@
|
|
|
124
98
|
--iw-input-shadow-focus: 0 0 0 3px
|
|
125
99
|
color-mix(in srgb, var(--iw-color-primary) 35%, transparent);
|
|
126
100
|
|
|
127
|
-
/* App bar: the content shows through, blurred, under the title */
|
|
128
101
|
--iw-app-bar-bg: color-mix(in srgb, var(--iw-color-bg) 72%, transparent);
|
|
129
102
|
|
|
130
|
-
/* Drawer: a sidebar */
|
|
131
103
|
--iw-drawer-bg: var(--iw-color-bg);
|
|
132
104
|
|
|
133
|
-
/* Card: an inset grouped section, with the larger corners */
|
|
134
105
|
--iw-card-bg: var(--iw-color-surface);
|
|
135
106
|
--iw-card-border: transparent;
|
|
136
107
|
--iw-card-radius: var(--iw-radius-xl);
|
|
137
108
|
--iw-card-shadow: none;
|
|
138
109
|
--iw-card-shadow-hover: var(--iw-shadow-md);
|
|
139
110
|
|
|
140
|
-
/* Badge */
|
|
141
111
|
--iw-badge-radius: var(--iw-radius-full);
|
|
142
112
|
|
|
143
|
-
/* Chip: a gray capsule */
|
|
144
113
|
--iw-chip-bg: var(--iw-ios-fill);
|
|
145
114
|
|
|
146
|
-
/* List */
|
|
147
115
|
--iw-list-item: transparent;
|
|
148
116
|
--iw-list-item-active: var(--iw-color-surface-active);
|
|
149
117
|
--iw-list-item-selected: color-mix(
|
|
@@ -152,18 +120,15 @@
|
|
|
152
120
|
transparent
|
|
153
121
|
);
|
|
154
122
|
|
|
155
|
-
/* Progress: a thin bar */
|
|
156
123
|
--iw-progress-height: 4px;
|
|
157
124
|
--iw-progress-radius: var(--iw-radius-full);
|
|
158
125
|
--iw-progress-track-color: var(--iw-ios-fill-secondary);
|
|
159
126
|
|
|
160
|
-
/* Alert */
|
|
161
127
|
--iw-alert-radius: var(--iw-radius-lg);
|
|
162
128
|
--iw-alert-shadow: none;
|
|
163
129
|
color-scheme: light;
|
|
164
130
|
}
|
|
165
131
|
|
|
166
|
-
/* Dark variant */
|
|
167
132
|
.iw-theme-ios-26.iw-theme-dark {
|
|
168
133
|
color-scheme: dark;
|
|
169
134
|
|
|
@@ -207,8 +172,6 @@
|
|
|
207
172
|
}
|
|
208
173
|
|
|
209
174
|
.iw-theme-ios-26 {
|
|
210
|
-
/* Buttons: capsules, filled, glass, tinted and plain. Pressing one
|
|
211
|
-
brightens it */
|
|
212
175
|
.iw-button {
|
|
213
176
|
padding: 7px 16px;
|
|
214
177
|
font-size: var(--iw-font-size-base);
|
|
@@ -278,7 +241,6 @@
|
|
|
278
241
|
outline-offset: 2px;
|
|
279
242
|
}
|
|
280
243
|
|
|
281
|
-
/* Outlined buttons are tinted: iOS draws no outlines */
|
|
282
244
|
&.iw-button-outline {
|
|
283
245
|
border-color: transparent;
|
|
284
246
|
background-color: color-mix(
|
|
@@ -301,7 +263,6 @@
|
|
|
301
263
|
}
|
|
302
264
|
}
|
|
303
265
|
|
|
304
|
-
/* Ghost buttons are plain */
|
|
305
266
|
&.iw-button-ghost {
|
|
306
267
|
backdrop-filter: none;
|
|
307
268
|
|
|
@@ -327,8 +288,6 @@
|
|
|
327
288
|
}
|
|
328
289
|
}
|
|
329
290
|
|
|
330
|
-
/* Form fields: labels and notes in the footnote style around a filled
|
|
331
|
-
field */
|
|
332
291
|
.iw-input,
|
|
333
292
|
.iw-select,
|
|
334
293
|
.iw-textarea-field {
|
|
@@ -358,7 +317,6 @@
|
|
|
358
317
|
}
|
|
359
318
|
}
|
|
360
319
|
|
|
361
|
-
/* Switch: a wide, low track with a capsule for a thumb, green when on */
|
|
362
320
|
.iw-switch:not(
|
|
363
321
|
.iw-switch-secondary,
|
|
364
322
|
.iw-switch-success,
|
|
@@ -432,7 +390,6 @@
|
|
|
432
390
|
}
|
|
433
391
|
}
|
|
434
392
|
|
|
435
|
-
/* Tabs: a segmented control in a capsule, its segments equally wide */
|
|
436
393
|
.iw-tabs-list {
|
|
437
394
|
display: inline-grid;
|
|
438
395
|
grid-auto-flow: column;
|
|
@@ -474,7 +431,6 @@
|
|
|
474
431
|
0 3px 1px rgba(0, 0, 0, 0.04);
|
|
475
432
|
}
|
|
476
433
|
|
|
477
|
-
/* Chips: capsules, filled with the tint when selected */
|
|
478
434
|
.iw-chip {
|
|
479
435
|
padding: 6px 12px;
|
|
480
436
|
font-size: var(--iw-font-size-sm);
|
|
@@ -493,7 +449,6 @@
|
|
|
493
449
|
font-weight: var(--iw-font-weight-semibold);
|
|
494
450
|
}
|
|
495
451
|
|
|
496
|
-
/* Cards: inset grouped sections, the footer ruled off below */
|
|
497
452
|
.iw-card-header {
|
|
498
453
|
border: 0 none;
|
|
499
454
|
}
|
|
@@ -512,7 +467,6 @@
|
|
|
512
467
|
font-size: var(--iw-font-size-sm);
|
|
513
468
|
}
|
|
514
469
|
|
|
515
|
-
/* Alerts: tinted, borderless boxes */
|
|
516
470
|
.iw-alert {
|
|
517
471
|
padding: 14px 16px;
|
|
518
472
|
|
|
@@ -543,7 +497,6 @@
|
|
|
543
497
|
}
|
|
544
498
|
}
|
|
545
499
|
|
|
546
|
-
/* Tables: a plain list */
|
|
547
500
|
.iw-table {
|
|
548
501
|
border: 0 none;
|
|
549
502
|
}
|
|
@@ -560,8 +513,6 @@
|
|
|
560
513
|
color: var(--iw-color-text-secondary);
|
|
561
514
|
}
|
|
562
515
|
|
|
563
|
-
/* Dialogs: alerts on glass, their text aligned to the start and their
|
|
564
|
-
actions a row of capsules */
|
|
565
516
|
.iw-dialog {
|
|
566
517
|
border: 1px solid var(--iw-ios-glass-border);
|
|
567
518
|
border-radius: var(--iw-radius-2xl);
|
|
@@ -604,7 +555,6 @@
|
|
|
604
555
|
flex: 1;
|
|
605
556
|
padding-block: 13px;
|
|
606
557
|
|
|
607
|
-
/* Actions that are not the preferred one sit on a gray capsule */
|
|
608
558
|
&.iw-button-outline,
|
|
609
559
|
&.iw-button-ghost,
|
|
610
560
|
&.iw-button-default {
|
|
@@ -635,7 +585,6 @@
|
|
|
635
585
|
}
|
|
636
586
|
}
|
|
637
587
|
|
|
638
|
-
/* Menus, tooltips and snackbars float on glass */
|
|
639
588
|
.iw-menu {
|
|
640
589
|
min-width: 15rem;
|
|
641
590
|
padding: 6px;
|
|
@@ -678,8 +627,6 @@
|
|
|
678
627
|
color: var(--iw-color-text);
|
|
679
628
|
}
|
|
680
629
|
|
|
681
|
-
/* App bars: no bar at all, just a blur where the content passes under the
|
|
682
|
-
title. A prominent one has a large title */
|
|
683
630
|
.iw-app-bar {
|
|
684
631
|
border-bottom: 0 none;
|
|
685
632
|
backdrop-filter: blur(8px);
|
|
@@ -704,8 +651,6 @@
|
|
|
704
651
|
line-height: 2.5625rem;
|
|
705
652
|
}
|
|
706
653
|
|
|
707
|
-
/* Bottom navigation: a tab bar floating on glass, the selected tab on a
|
|
708
|
-
capsule of its own */
|
|
709
654
|
.iw-bottom-navigation {
|
|
710
655
|
gap: 0;
|
|
711
656
|
margin: 0 var(--iw-space-4) var(--iw-space-4);
|
|
@@ -2,17 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
.iw-theme-material-3 {
|
|
4
4
|
--iw-font-family-sans: "Roboto", "Helvetica", "Arial", sans-serif;
|
|
5
|
-
/* The theme on the page itself: the element with the theme class, usually
|
|
6
|
-
<body>, takes its background, text color and font. */
|
|
7
5
|
background-color: var(--iw-color-bg);
|
|
8
6
|
color: var(--iw-color-text);
|
|
9
7
|
font-family: var(--iw-font-family-sans);
|
|
10
8
|
|
|
11
|
-
/* ========================================
|
|
12
|
-
MATERIAL 3 THEME - Material Design 3 baseline
|
|
13
|
-
======================================== */
|
|
14
|
-
|
|
15
|
-
/* Material 3 color roles the shared tokens have no name for */
|
|
16
9
|
--iw-m3-outline: #79747e;
|
|
17
10
|
--iw-m3-surface-container-low: #f7f2fa;
|
|
18
11
|
--iw-m3-surface-container: #f3edf7;
|
|
@@ -24,7 +17,6 @@
|
|
|
24
17
|
--iw-m3-inverse-on-surface: #f5eff7;
|
|
25
18
|
--iw-m3-inverse-primary: #d0bcff;
|
|
26
19
|
|
|
27
|
-
/* Semantic Colors */
|
|
28
20
|
--iw-color-bg: #fef7ff;
|
|
29
21
|
--iw-color-bg-secondary: var(--iw-m3-surface-container);
|
|
30
22
|
--iw-color-bg-tertiary: var(--iw-m3-surface-container-highest);
|
|
@@ -52,19 +44,15 @@
|
|
|
52
44
|
--iw-color-primary-active: color-mix(in srgb, #6750a4 90%, #ffffff);
|
|
53
45
|
--iw-color-primary-text: var(--iw-color-white);
|
|
54
46
|
|
|
55
|
-
/* Material 3's secondary color */
|
|
56
47
|
--iw-color-accent: #625b71;
|
|
57
48
|
--iw-color-accent-hover: color-mix(in srgb, #625b71 92%, #ffffff);
|
|
58
49
|
--iw-color-accent-active: color-mix(in srgb, #625b71 90%, #ffffff);
|
|
59
50
|
|
|
60
|
-
/* Material 3 defines only an error color: the others are custom colors at
|
|
61
|
-
the same tones as the primary */
|
|
62
51
|
--iw-color-success: #386a20;
|
|
63
52
|
--iw-color-warning: #7d5700;
|
|
64
53
|
--iw-color-error: #b3261e;
|
|
65
54
|
--iw-color-info: #00639a;
|
|
66
55
|
|
|
67
|
-
/* Elevation levels 1 to 4 */
|
|
68
56
|
--iw-shadow-sm:
|
|
69
57
|
0 1px 2px 0 rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
|
|
70
58
|
--iw-shadow-md:
|
|
@@ -74,23 +62,16 @@
|
|
|
74
62
|
--iw-shadow-xl:
|
|
75
63
|
0 2px 3px 0 rgba(0, 0, 0, 0.3), 0 6px 10px 4px rgba(0, 0, 0, 0.15);
|
|
76
64
|
|
|
77
|
-
/* Material 3's shape scale: extra small to extra large */
|
|
78
65
|
--iw-radius-sm: 4px;
|
|
79
66
|
--iw-radius-md: 8px;
|
|
80
67
|
--iw-radius-lg: 12px;
|
|
81
68
|
--iw-radius-xl: 16px;
|
|
82
69
|
--iw-radius-2xl: 28px;
|
|
83
70
|
|
|
84
|
-
/* Labels in the label-large style: medium weight, as written */
|
|
85
71
|
--iw-label-text-transform: none;
|
|
86
72
|
--iw-label-letter-spacing: 0.00714em;
|
|
87
73
|
--iw-label-font-weight: var(--iw-font-weight-medium);
|
|
88
74
|
|
|
89
|
-
/* ========================================
|
|
90
|
-
COMPONENT TOKENS
|
|
91
|
-
======================================== */
|
|
92
|
-
|
|
93
|
-
/* Button: filled, in a pill */
|
|
94
75
|
--iw-button-bg: var(--iw-color-primary);
|
|
95
76
|
--iw-button-bg-hover: var(--iw-color-primary-hover);
|
|
96
77
|
--iw-button-bg-active: var(--iw-color-primary-active);
|
|
@@ -101,8 +82,6 @@
|
|
|
101
82
|
--iw-button-shadow-hover: var(--iw-shadow-sm);
|
|
102
83
|
--iw-button-shadow-active: none;
|
|
103
84
|
|
|
104
|
-
/* A button's default color is a filled tonal button, whose outlined and
|
|
105
|
-
ghost forms take the primary color */
|
|
106
85
|
--iw-button-default-color: var(--iw-color-primary);
|
|
107
86
|
--iw-button-default-bg: var(--iw-m3-secondary-container);
|
|
108
87
|
--iw-button-default-bg-hover: var(--iw-m3-secondary-container);
|
|
@@ -110,7 +89,6 @@
|
|
|
110
89
|
--iw-button-default-border: var(--iw-m3-secondary-container);
|
|
111
90
|
--iw-button-default-text: var(--iw-m3-on-secondary-container);
|
|
112
91
|
|
|
113
|
-
/* Input: a filled text field */
|
|
114
92
|
--iw-input-bg: var(--iw-m3-surface-container-highest);
|
|
115
93
|
--iw-input-bg-hover: color-mix(
|
|
116
94
|
in srgb,
|
|
@@ -124,40 +102,31 @@
|
|
|
124
102
|
--iw-input-border-hover: var(--iw-color-text);
|
|
125
103
|
--iw-input-border-focus: var(--iw-color-primary);
|
|
126
104
|
--iw-input-radius: var(--iw-radius-sm) var(--iw-radius-sm) 0 0;
|
|
127
|
-
/* With the bottom border, a 2px active indicator */
|
|
128
105
|
--iw-input-shadow-focus: inset 0 -1px 0 var(--iw-input-border-focus);
|
|
129
106
|
|
|
130
|
-
/* App bar: a top app bar on the surface */
|
|
131
107
|
--iw-app-bar-bg: var(--iw-color-bg);
|
|
132
108
|
|
|
133
|
-
/* Drawer: a navigation drawer */
|
|
134
109
|
--iw-drawer-bg: var(--iw-m3-surface-container-low);
|
|
135
110
|
|
|
136
|
-
/* Card: an elevated card */
|
|
137
111
|
--iw-card-bg: var(--iw-m3-surface-container-low);
|
|
138
112
|
--iw-card-border: transparent;
|
|
139
113
|
--iw-card-radius: var(--iw-radius-lg);
|
|
140
114
|
--iw-card-shadow: var(--iw-shadow-sm);
|
|
141
115
|
--iw-card-shadow-hover: var(--iw-shadow-md);
|
|
142
116
|
|
|
143
|
-
/* Badge */
|
|
144
117
|
--iw-badge-radius: var(--iw-radius-full);
|
|
145
118
|
|
|
146
|
-
/* Chip: outlined, on no background of its own */
|
|
147
119
|
--iw-chip-bg: transparent;
|
|
148
120
|
|
|
149
|
-
/* List */
|
|
150
121
|
--iw-list-item: transparent;
|
|
151
122
|
--iw-list-item-active: var(--iw-color-surface-hover);
|
|
152
123
|
--iw-list-item-selected: var(--iw-m3-secondary-container);
|
|
153
124
|
|
|
154
|
-
/* Alert */
|
|
155
125
|
--iw-alert-radius: var(--iw-radius-lg);
|
|
156
126
|
--iw-alert-shadow: none;
|
|
157
127
|
color-scheme: light;
|
|
158
128
|
}
|
|
159
129
|
|
|
160
|
-
/* Dark variant */
|
|
161
130
|
.iw-theme-material-3.iw-theme-dark {
|
|
162
131
|
color-scheme: dark;
|
|
163
132
|
|
|
@@ -196,8 +165,6 @@
|
|
|
196
165
|
}
|
|
197
166
|
|
|
198
167
|
.iw-theme-material-3 {
|
|
199
|
-
/* Buttons: pills 40px tall. Hovering and pressing lay the label's color
|
|
200
|
-
over the container, as Material 3's state layers */
|
|
201
168
|
.iw-button {
|
|
202
169
|
padding: 10px 24px;
|
|
203
170
|
font-size: 0.875rem;
|
|
@@ -256,7 +223,6 @@
|
|
|
256
223
|
);
|
|
257
224
|
}
|
|
258
225
|
|
|
259
|
-
/* Outlined buttons have a neutral outline, whatever their color */
|
|
260
226
|
&.iw-button-outline {
|
|
261
227
|
border-color: var(--iw-m3-outline);
|
|
262
228
|
}
|
|
@@ -309,7 +275,6 @@
|
|
|
309
275
|
}
|
|
310
276
|
}
|
|
311
277
|
|
|
312
|
-
/* On dark, labels on a color are a deep tone of it */
|
|
313
278
|
&.iw-theme-dark .iw-button {
|
|
314
279
|
&.iw-button-secondary,
|
|
315
280
|
&.iw-button-success,
|
|
@@ -324,8 +289,6 @@
|
|
|
324
289
|
}
|
|
325
290
|
}
|
|
326
291
|
|
|
327
|
-
/* Filled text fields: a tinted box with an indicator along its bottom,
|
|
328
|
-
2px and in the primary color while it has focus */
|
|
329
292
|
.iw-input .iw-input-frame,
|
|
330
293
|
.iw-select .iw-select-frame,
|
|
331
294
|
.iw-combobox .iw-combobox-frame,
|
|
@@ -388,8 +351,6 @@
|
|
|
388
351
|
height: 1.125rem;
|
|
389
352
|
}
|
|
390
353
|
|
|
391
|
-
/* Switch: a tall outlined track whose thumb grows and takes the track's
|
|
392
|
-
opposite color when on */
|
|
393
354
|
.iw-switch {
|
|
394
355
|
.iw-switch-track {
|
|
395
356
|
width: 3.25rem;
|
|
@@ -481,7 +442,6 @@
|
|
|
481
442
|
);
|
|
482
443
|
}
|
|
483
444
|
|
|
484
|
-
/* Tabs: primary tabs, with a rounded indicator as wide as the label */
|
|
485
445
|
.iw-tabs-list {
|
|
486
446
|
gap: 0;
|
|
487
447
|
}
|
|
@@ -514,8 +474,6 @@
|
|
|
514
474
|
}
|
|
515
475
|
}
|
|
516
476
|
|
|
517
|
-
/* Chips: outlined, with small rounded corners, and filled with the
|
|
518
|
-
secondary container when selected */
|
|
519
477
|
.iw-chip {
|
|
520
478
|
min-height: 2rem;
|
|
521
479
|
padding-inline: 16px;
|
|
@@ -557,8 +515,6 @@
|
|
|
557
515
|
font-weight: var(--iw-font-weight-medium);
|
|
558
516
|
}
|
|
559
517
|
|
|
560
|
-
/* Cards: elevated, with no rules between their parts. A sunk card is a
|
|
561
|
-
filled one */
|
|
562
518
|
.iw-card-header,
|
|
563
519
|
.iw-card-footer {
|
|
564
520
|
border: 0 none;
|
|
@@ -583,8 +539,6 @@
|
|
|
583
539
|
color: var(--iw-color-text-secondary);
|
|
584
540
|
}
|
|
585
541
|
|
|
586
|
-
/* Alerts: Material 3 has none, so they are tonal containers of their
|
|
587
|
-
color, with rounded corners and no border */
|
|
588
542
|
.iw-alert {
|
|
589
543
|
padding: 12px 16px;
|
|
590
544
|
font-size: 0.875rem;
|
|
@@ -639,8 +593,6 @@
|
|
|
639
593
|
}
|
|
640
594
|
}
|
|
641
595
|
|
|
642
|
-
/* Tables: Material 3 has none either, so plain rows ruled by the outline
|
|
643
|
-
variant */
|
|
644
596
|
.iw-table {
|
|
645
597
|
border: 0 none;
|
|
646
598
|
background: transparent;
|
|
@@ -662,7 +614,6 @@
|
|
|
662
614
|
background: var(--iw-m3-surface-container);
|
|
663
615
|
}
|
|
664
616
|
|
|
665
|
-
/* Dialogs: a container with extra large corners */
|
|
666
617
|
.iw-dialog {
|
|
667
618
|
border: 0 none;
|
|
668
619
|
border-radius: var(--iw-radius-2xl);
|
|
@@ -697,7 +648,6 @@
|
|
|
697
648
|
gap: 8px;
|
|
698
649
|
}
|
|
699
650
|
|
|
700
|
-
/* Menus, tooltips and snackbars */
|
|
701
651
|
.iw-menu {
|
|
702
652
|
padding: 8px 0;
|
|
703
653
|
border: 0 none;
|
|
@@ -726,8 +676,6 @@
|
|
|
726
676
|
color: var(--iw-m3-inverse-primary);
|
|
727
677
|
}
|
|
728
678
|
|
|
729
|
-
/* App bars: top app bars, flat on the surface, which take a container
|
|
730
|
-
color instead of a shadow when raised */
|
|
731
679
|
.iw-app-bar {
|
|
732
680
|
border-bottom: 0 none;
|
|
733
681
|
}
|
|
@@ -2,17 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
.iw-theme-material-ui {
|
|
4
4
|
--iw-font-family-sans: "Roboto", "Helvetica", "Arial", sans-serif;
|
|
5
|
-
/* The theme on the page itself: the element with the theme class, usually
|
|
6
|
-
<body>, takes its background, text color and font. */
|
|
7
5
|
background-color: var(--iw-color-bg);
|
|
8
6
|
color: var(--iw-color-text);
|
|
9
7
|
font-family: var(--iw-font-family-sans);
|
|
10
8
|
|
|
11
|
-
/* ========================================
|
|
12
|
-
MATERIAL UI THEME - Material UI defaults
|
|
13
|
-
======================================== */
|
|
14
|
-
|
|
15
|
-
/* Semantic Colors */
|
|
16
9
|
--iw-color-bg: var(--iw-color-white);
|
|
17
10
|
--iw-color-bg-secondary: #f5f5f5;
|
|
18
11
|
--iw-color-bg-tertiary: #eeeeee;
|
|
@@ -32,7 +25,6 @@
|
|
|
32
25
|
--iw-color-primary-active: #1565c0;
|
|
33
26
|
--iw-color-primary-text: var(--iw-color-white);
|
|
34
27
|
|
|
35
|
-
/* Material UI's secondary color */
|
|
36
28
|
--iw-color-accent: #9c27b0;
|
|
37
29
|
--iw-color-accent-hover: #7b1fa2;
|
|
38
30
|
--iw-color-accent-active: #7b1fa2;
|
|
@@ -46,7 +38,6 @@
|
|
|
46
38
|
--iw-color-info: #0288d1;
|
|
47
39
|
--iw-color-info-dark: #01579b;
|
|
48
40
|
|
|
49
|
-
/* Elevations 1, 2, 4, 8 and 24 */
|
|
50
41
|
--iw-shadow-sm:
|
|
51
42
|
0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14),
|
|
52
43
|
0 1px 3px 0 rgba(0, 0, 0, 0.12);
|
|
@@ -63,21 +54,14 @@
|
|
|
63
54
|
0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14),
|
|
64
55
|
0 9px 46px 8px rgba(0, 0, 0, 0.12);
|
|
65
56
|
|
|
66
|
-
/* One corner radius for everything, as Material UI's shape */
|
|
67
57
|
--iw-radius-sm: 4px;
|
|
68
58
|
--iw-radius-md: 4px;
|
|
69
59
|
--iw-radius-lg: 4px;
|
|
70
60
|
|
|
71
|
-
/* Buttons and tabs carry their labels as Material UI does */
|
|
72
61
|
--iw-label-text-transform: uppercase;
|
|
73
62
|
--iw-label-letter-spacing: 0.02857em;
|
|
74
63
|
--iw-label-font-weight: var(--iw-font-weight-medium);
|
|
75
64
|
|
|
76
|
-
/* ========================================
|
|
77
|
-
COMPONENT TOKENS
|
|
78
|
-
======================================== */
|
|
79
|
-
|
|
80
|
-
/* Button */
|
|
81
65
|
--iw-button-bg: var(--iw-color-primary);
|
|
82
66
|
--iw-button-bg-hover: var(--iw-color-primary-hover);
|
|
83
67
|
--iw-button-bg-active: var(--iw-color-primary-active);
|
|
@@ -88,7 +72,6 @@
|
|
|
88
72
|
--iw-button-shadow-hover: var(--iw-shadow-lg);
|
|
89
73
|
--iw-button-shadow-active: var(--iw-shadow-xl);
|
|
90
74
|
|
|
91
|
-
/* A button's default color is primary, as in Material UI */
|
|
92
75
|
--iw-button-default-color: var(--iw-color-primary);
|
|
93
76
|
--iw-button-default-bg: var(--iw-color-primary);
|
|
94
77
|
--iw-button-default-bg-hover: var(--iw-color-primary-hover);
|
|
@@ -96,7 +79,6 @@
|
|
|
96
79
|
--iw-button-default-border: var(--iw-color-primary);
|
|
97
80
|
--iw-button-default-text: var(--iw-color-primary-text);
|
|
98
81
|
|
|
99
|
-
/* Input: an outlined text field */
|
|
100
82
|
--iw-input-bg: transparent;
|
|
101
83
|
--iw-input-bg-hover: transparent;
|
|
102
84
|
--iw-input-bg-focus: transparent;
|
|
@@ -106,29 +88,22 @@
|
|
|
106
88
|
--iw-input-border-hover: var(--iw-color-text);
|
|
107
89
|
--iw-input-border-focus: var(--iw-color-primary);
|
|
108
90
|
--iw-input-radius: var(--iw-radius-md);
|
|
109
|
-
/* With the border, a 2px outline */
|
|
110
91
|
--iw-input-shadow-focus: inset 0 0 0 1px var(--iw-input-border-focus);
|
|
111
92
|
|
|
112
|
-
/* App bar */
|
|
113
93
|
--iw-app-bar-bg: #f5f5f5;
|
|
114
94
|
|
|
115
|
-
/* Drawer */
|
|
116
95
|
--iw-drawer-bg: var(--iw-color-surface);
|
|
117
96
|
|
|
118
|
-
/* Card: a Paper at elevation 1 */
|
|
119
97
|
--iw-card-bg: var(--iw-color-surface);
|
|
120
98
|
--iw-card-border: transparent;
|
|
121
99
|
--iw-card-radius: var(--iw-radius-md);
|
|
122
100
|
--iw-card-shadow: var(--iw-shadow-sm);
|
|
123
101
|
--iw-card-shadow-hover: var(--iw-shadow-xl);
|
|
124
102
|
|
|
125
|
-
/* Badge */
|
|
126
103
|
--iw-badge-radius: var(--iw-radius-full);
|
|
127
104
|
|
|
128
|
-
/* Chip */
|
|
129
105
|
--iw-chip-bg: rgba(0, 0, 0, 0.08);
|
|
130
106
|
|
|
131
|
-
/* List */
|
|
132
107
|
--iw-list-item: transparent;
|
|
133
108
|
--iw-list-item-selected: color-mix(
|
|
134
109
|
in srgb,
|
|
@@ -136,20 +111,17 @@
|
|
|
136
111
|
transparent
|
|
137
112
|
);
|
|
138
113
|
|
|
139
|
-
/* Alert */
|
|
140
114
|
--iw-alert-radius: var(--iw-radius-md);
|
|
141
115
|
--iw-alert-shadow: none;
|
|
142
116
|
color-scheme: light;
|
|
143
117
|
}
|
|
144
118
|
|
|
145
|
-
/* Dark variant */
|
|
146
119
|
.iw-theme-material-ui.iw-theme-dark {
|
|
147
120
|
color-scheme: dark;
|
|
148
121
|
|
|
149
122
|
--iw-color-bg: #121212;
|
|
150
123
|
--iw-color-bg-secondary: #1e1e1e;
|
|
151
124
|
--iw-color-bg-tertiary: #2c2c2c;
|
|
152
|
-
/* A raised surface is lightened, as Material UI's elevation overlay */
|
|
153
125
|
--iw-color-surface: #1e1e1e;
|
|
154
126
|
--iw-color-surface-hover: rgba(255, 255, 255, 0.08);
|
|
155
127
|
--iw-color-surface-active: rgba(255, 255, 255, 0.16);
|
|
@@ -181,7 +153,6 @@
|
|
|
181
153
|
--iw-input-text-placeholder: rgba(255, 255, 255, 0.5);
|
|
182
154
|
--iw-input-border: rgba(255, 255, 255, 0.23);
|
|
183
155
|
|
|
184
|
-
/* Dark app bars are surfaces, as Material UI's enableColorOnDark is off */
|
|
185
156
|
--iw-app-bar-bg: #272727;
|
|
186
157
|
|
|
187
158
|
--iw-chip-bg: rgba(255, 255, 255, 0.16);
|
|
@@ -196,7 +167,6 @@
|
|
|
196
167
|
}
|
|
197
168
|
|
|
198
169
|
.iw-theme-material-ui {
|
|
199
|
-
/* Contained buttons: Material UI's sizes and colors, raised on hover */
|
|
200
170
|
.iw-button {
|
|
201
171
|
padding: 6px 16px;
|
|
202
172
|
font-size: 0.875rem;
|
|
@@ -255,7 +225,6 @@
|
|
|
255
225
|
&.iw-button-outline {
|
|
256
226
|
border: 1px solid
|
|
257
227
|
color-mix(in srgb, var(--iw-button-color) 50%, transparent);
|
|
258
|
-
/* One pixel less, for the border */
|
|
259
228
|
padding: 5px 15px;
|
|
260
229
|
|
|
261
230
|
&.iw-button-sm {
|
|
@@ -327,8 +296,6 @@
|
|
|
327
296
|
}
|
|
328
297
|
}
|
|
329
298
|
|
|
330
|
-
/* Outlined text fields: the label and helper text sit as Material UI's do,
|
|
331
|
-
and the label takes the primary color while the field has focus */
|
|
332
299
|
.iw-input,
|
|
333
300
|
.iw-select,
|
|
334
301
|
.iw-textarea-field {
|
|
@@ -374,12 +341,10 @@
|
|
|
374
341
|
}
|
|
375
342
|
}
|
|
376
343
|
|
|
377
|
-
/* Switch: a thin track under a larger, raised thumb that takes the color */
|
|
378
344
|
.iw-switch {
|
|
379
345
|
.iw-switch-track {
|
|
380
346
|
width: 2.125rem;
|
|
381
347
|
height: 0.875rem;
|
|
382
|
-
/* Room for the thumb, which overhangs the track */
|
|
383
348
|
margin-inline: 3px;
|
|
384
349
|
padding: 0;
|
|
385
350
|
overflow: visible;
|
|
@@ -450,7 +415,6 @@
|
|
|
450
415
|
}
|
|
451
416
|
}
|
|
452
417
|
|
|
453
|
-
/* Tabs */
|
|
454
418
|
.iw-tabs-list {
|
|
455
419
|
gap: 0;
|
|
456
420
|
}
|
|
@@ -466,7 +430,6 @@
|
|
|
466
430
|
color: var(--iw-color-primary);
|
|
467
431
|
}
|
|
468
432
|
|
|
469
|
-
/* Chips: Material UI's height, and filled when they have a color */
|
|
470
433
|
.iw-chip {
|
|
471
434
|
min-height: 2rem;
|
|
472
435
|
padding-inline: 12px;
|
|
@@ -530,7 +493,6 @@
|
|
|
530
493
|
font-weight: var(--iw-font-weight-medium);
|
|
531
494
|
}
|
|
532
495
|
|
|
533
|
-
/* Cards: a raised Paper, with no rules between its parts */
|
|
534
496
|
.iw-card-header,
|
|
535
497
|
.iw-card-footer {
|
|
536
498
|
border: 0 none;
|
|
@@ -540,7 +502,6 @@
|
|
|
540
502
|
background-color: transparent;
|
|
541
503
|
}
|
|
542
504
|
|
|
543
|
-
/* Unless given a padding of its own */
|
|
544
505
|
.iw-card-footer:not([class*="iw-card-footer-padding-"]) {
|
|
545
506
|
padding: var(--iw-space-2);
|
|
546
507
|
}
|
|
@@ -555,7 +516,6 @@
|
|
|
555
516
|
margin: 0;
|
|
556
517
|
}
|
|
557
518
|
|
|
558
|
-
/* Alerts: tinted with the color, the text a deep shade of it */
|
|
559
519
|
.iw-alert {
|
|
560
520
|
padding: 6px 16px;
|
|
561
521
|
font-size: 0.875rem;
|
|
@@ -614,7 +574,6 @@
|
|
|
614
574
|
}
|
|
615
575
|
}
|
|
616
576
|
|
|
617
|
-
/* Tables sit on a Paper, which draws no border of its own */
|
|
618
577
|
.iw-table {
|
|
619
578
|
border: 0 none;
|
|
620
579
|
font-size: 0.875rem;
|
|
@@ -630,7 +589,6 @@
|
|
|
630
589
|
font-weight: var(--iw-font-weight-medium);
|
|
631
590
|
}
|
|
632
591
|
|
|
633
|
-
/* Dialogs: a Paper at elevation 24 */
|
|
634
592
|
.iw-dialog {
|
|
635
593
|
border: 0 none;
|
|
636
594
|
box-shadow: var(--iw-shadow-2xl);
|
|
@@ -664,7 +622,6 @@
|
|
|
664
622
|
padding: 0;
|
|
665
623
|
}
|
|
666
624
|
|
|
667
|
-
/* App bars: no border, and raised to elevation 4 */
|
|
668
625
|
.iw-app-bar {
|
|
669
626
|
border-bottom: 0 none;
|
|
670
627
|
}
|