@maliardic/ma-ui 0.2.1 → 3.1.0

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,163 @@
1
+ /* =========================================================
2
+ ma-ui — CLASSIC theme (the v2 look)
3
+
4
+ Load it AFTER the main stylesheet to keep the pre-3.0 look:
5
+
6
+ @import "@maliardic/ma-ui/styles/ma-ui.css";
7
+ @import "@maliardic/ma-ui/styles/themes/classic.css";
8
+
9
+ It only resets token values; components and their API are the
10
+ same. Very close to v2, not pixel-identical in every corner
11
+ (v2 had a few one-off hard-coded radii and shadows that v3 now
12
+ takes from shared core tokens).
13
+ ========================================================= */
14
+
15
+ :root,
16
+ .m-light {
17
+ /* v3 core tokens, set to their v2 equivalents */
18
+ --m-control-line-height: 1.2;
19
+ --m-gap: 0.45rem;
20
+ --m-radius-sm: 0.25rem;
21
+ --m-radius-container: 0.25rem;
22
+ --m-radius-full: 999px;
23
+ --m-border-width: 1px;
24
+ --m-focus-ring-width: 3px;
25
+ --m-disabled-opacity: 0.62;
26
+ --m-shadow-sm: 0 1px 2px rgb(15 23 42 / 18%);
27
+ --m-shadow-panel: 0 0.75rem 1.75rem rgb(15 23 42 / 14%);
28
+ --m-shadow-overlay: 0 1rem 2.5rem rgb(15 23 42 / 16%);
29
+ --m-row-height: 2.15rem;
30
+
31
+ /* every other token back to its v2 value */
32
+ --m-font-size: 0.875rem;
33
+ --m-listbox-disabled-opacity: 0.55;
34
+ --m-radius-control: 0.25rem;
35
+ --m-color-text: #344054;
36
+ --m-color-muted: #69758a;
37
+ --m-color-surface-muted: #d7dfea;
38
+ --m-color-border: #e2e7f0;
39
+ --m-color-border-hover: #9ca9ba;
40
+ --m-color-primary: #155eef;
41
+ --m-color-primary-hover: #1049be;
42
+ --m-color-primary-soft: #e9f0ff;
43
+ --m-color-info: #2563eb;
44
+ --m-color-info-soft: #eff6ff;
45
+ --m-color-success: #15803d;
46
+ --m-color-success-soft: #ecfdf3;
47
+ --m-color-warning: #b45309;
48
+ --m-color-warning-soft: #fff7ed;
49
+ --m-color-danger: #c93434;
50
+ --m-color-danger-soft: #fff1f2;
51
+ --m-color-danger-ring: rgb(201 52 52 / 18%);
52
+ --m-color-focus-ring: rgb(21 94 239 / 22%);
53
+ --m-control-sm-padding-y: 0.25rem;
54
+ --m-control-sm-padding-x: 0.55rem;
55
+ --m-control-md-padding-y: 0.375rem;
56
+ --m-control-md-padding-x: 0.7rem;
57
+ --m-control-lg-padding-y: 0.5rem;
58
+ --m-control-lg-padding-x: 0.85rem;
59
+ --m-button-gap: 0.45rem;
60
+ --m-button-border-width: 1px;
61
+ --m-button-font-weight: 400;
62
+ --m-button-line-height: 1.2;
63
+ --m-button-disabled-opacity: 0.62;
64
+ --m-input-border-width: 1px;
65
+ --m-input-line-height: 1.35;
66
+ --m-input-disabled-opacity: 0.65;
67
+ --m-input-icon-gap: 0.55rem;
68
+ --m-input-icon-button-radius: 0.3rem;
69
+ --m-select-disabled-opacity: var(--m-input-disabled-opacity);
70
+ --m-select-option-min-height: 2rem;
71
+ --m-multi-select-disabled-opacity: 0.6;
72
+ --m-choice-size: 1.05rem;
73
+ --m-choice-gap: 0.55rem;
74
+ --m-choice-border-width: 1px;
75
+ --m-switch-width: 2.5rem;
76
+ --m-switch-height: 1.35rem;
77
+ --m-switch-thumb-size: 1rem;
78
+ --m-switch-gap: 0.55rem;
79
+ --m-dialog-mask-background: rgb(15 23 42 / 42%);
80
+ --m-dialog-border-width: 1px;
81
+ --m-dialog-border-radius: 0.5rem;
82
+ --m-dialog-title-font-weight: 750;
83
+ --m-drawer-border-width: 1px;
84
+ --m-drawer-title-font-weight: 750;
85
+ --m-toast-border-radius: 0.5rem;
86
+ --m-toast-shadow: var(--m-shadow-panel);
87
+ --m-tooltip-border-radius: 0.35rem;
88
+ --m-tooltip-bg-color: rgba(80,80,80,0.75);
89
+ --m-table-border-width: 1px;
90
+ --m-table-sm-cell-padding-y: 0.45rem;
91
+ --m-table-sm-cell-padding-x: 0.6rem;
92
+ --m-table-sm-font-size: 0.92em;
93
+ --m-table-md-cell-padding-y: 0.5rem;
94
+ --m-table-md-cell-padding-x: 0.75rem;
95
+ --m-table-md-font-size: 1em;
96
+ --m-table-lg-cell-padding-y: 0.75rem;
97
+ --m-table-lg-cell-padding-x: 0.9rem;
98
+ --m-table-lg-font-size: 1.04em;
99
+ --m-table-header-font-weight: 650;
100
+ --m-accordion-header-gap: 0.55rem;
101
+ --m-accordion-header-min-height: 2.2rem;
102
+ --m-accordion-disabled-opacity: 0.5;
103
+ --m-accordion-sm-header-padding-y: 0.42rem;
104
+ --m-accordion-sm-header-padding-x: 0.55rem;
105
+ --m-accordion-sm-font-size: 0.92em;
106
+ --m-accordion-md-header-padding-y: 0.52rem;
107
+ --m-accordion-md-header-padding-x: 0.68rem;
108
+ --m-accordion-md-font-size: 1em;
109
+ --m-accordion-lg-header-padding-y: 0.62rem;
110
+ --m-accordion-lg-header-padding-x: 0.82rem;
111
+ --m-accordion-lg-font-size: 1.04em;
112
+ --m-menu-item-gap: 0.55rem;
113
+ --m-menu-item-min-height: 2.15rem;
114
+ --m-menu-disabled-opacity: 0.5;
115
+ --m-menu-sm-item-padding-y: 0.42rem;
116
+ --m-menu-sm-item-padding-x: 0.55rem;
117
+ --m-menu-sm-font-size: 0.92em;
118
+ --m-menu-md-item-padding-y: 0.52rem;
119
+ --m-menu-md-item-padding-x: 0.68rem;
120
+ --m-menu-md-font-size: 1em;
121
+ --m-menu-lg-item-padding-y: 0.62rem;
122
+ --m-menu-lg-item-padding-x: 0.82rem;
123
+ --m-menu-lg-font-size: 1.04em;
124
+ --m-tabs-icon-gap: 0.45rem;
125
+ --m-tabs-tab-min-height: 2.25rem;
126
+ --m-tabs-disabled-opacity: 0.5;
127
+ --m-tabs-sm-tab-padding-y: 0.45rem;
128
+ --m-tabs-sm-tab-padding-x: 0.6rem;
129
+ --m-tabs-sm-font-size: 0.92em;
130
+ --m-tabs-md-tab-padding-y: 0.55rem;
131
+ --m-tabs-md-tab-padding-x: 0.75rem;
132
+ --m-tabs-md-font-size: 1em;
133
+ --m-tabs-lg-tab-padding-y: 0.65rem;
134
+ --m-tabs-lg-tab-padding-x: 0.9rem;
135
+ --m-tabs-lg-font-size: 1.04em;
136
+ }
137
+
138
+ .m-dark {
139
+ --m-shadow-sm: 0 1px 2px rgb(15 23 42 / 18%);
140
+ --m-shadow-panel: 0 0.75rem 1.75rem rgb(15 23 42 / 14%);
141
+ --m-shadow-overlay: 0 1rem 2.5rem rgb(15 23 42 / 16%);
142
+ --m-color-text: #e6edf7;
143
+ --m-color-on-primary: #08111f;
144
+ --m-color-muted: #a9b4c4;
145
+ --m-color-surface: #151b26;
146
+ --m-color-surface-muted: #293346;
147
+ --m-color-border: #3a4658;
148
+ --m-color-border-hover: #596779;
149
+ --m-color-primary: #7aa7ff;
150
+ --m-color-primary-hover: #9bbdff;
151
+ --m-color-primary-soft: rgb(122 167 255 / 14%);
152
+ --m-color-info: #8ab4ff;
153
+ --m-color-info-soft: #18263c;
154
+ --m-color-success: #74d99f;
155
+ --m-color-success-soft: #163025;
156
+ --m-color-warning: #f6c768;
157
+ --m-color-warning-soft: #332914;
158
+ --m-color-danger: #ff8d8d;
159
+ --m-color-danger-soft: #351f25;
160
+ --m-color-danger-ring: rgb(255 141 141 / 22%);
161
+ --m-color-focus-ring: rgb(122 167 255 / 24%);
162
+ --m-tooltip-bg-color: rgba(255,255,255,0.75);
163
+ }
@@ -39,7 +39,29 @@
39
39
 
40
40
  :root,
41
41
  .m-light {
42
- --m-font-size: 0.875rem;
42
+ /* =========================================================
43
+ v3 CORE — the standard. Every component is built from these.
44
+ Component tokens further down keep their v2 names (for
45
+ compatibility) but point at these core values.
46
+ ========================================================= */
47
+ --m-control-line-height: 1.2;
48
+ --m-gap: 0.4338rem;
49
+ --m-radius-sm: 0.1875rem;
50
+ --m-radius-container: 0.5rem;
51
+ --m-radius-full: 999px;
52
+ --m-border-width: 1px;
53
+ --m-focus-ring-width: 3px;
54
+ --m-disabled-opacity: 0.6;
55
+ --m-shadow-sm: 0 1px 2px rgb(14 14 13 / 16%);
56
+ --m-shadow-panel: 0 0.75rem 1.75rem rgb(14 14 13 / 12%);
57
+ --m-shadow-overlay: 0 1rem 2.5rem rgb(14 14 13 / 16%);
58
+
59
+ /* Rows — menu items, tabs, accordion headers, options, table cells.
60
+ Same horizontal padding and font sizes as controls; vertical padding is
61
+ the control padding × 1.4, so lists breathe a little more than fields. */
62
+ --m-row-height: calc(var(--m-font-size) * 2.45);
63
+
64
+ --m-font-size: 0.8435rem;
43
65
  --m-chart-height: 18rem;
44
66
  --m-file-list-gap: 0.75rem;
45
67
  --m-file-list-action-gap: 0.25rem;
@@ -50,54 +72,54 @@
50
72
  --m-listbox-padding: 0.25rem;
51
73
  --m-listbox-gap: 0.5rem;
52
74
  --m-listbox-line-height: 1.5;
53
- --m-listbox-disabled-opacity: 0.55;
75
+ --m-listbox-disabled-opacity: var(--m-disabled-opacity);
54
76
  --m-font-family:
55
77
  Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
56
78
  "Segoe UI", sans-serif;
57
- --m-radius-control: 0.25rem;
79
+ --m-radius-control: 0.3125rem;
58
80
  --m-motion-fast: 140ms;
59
81
 
60
82
  --m-color-on-primary: #ffffff;
61
- --m-color-text: #344054;
62
- --m-color-muted: #69758a;
83
+ --m-color-text: #161616;
84
+ --m-color-muted: #6b6a66;
63
85
  --m-color-surface: #ffffff;
64
- --m-color-surface-muted: #d7dfea;
65
- --m-color-border: #e2e7f0;
66
- --m-color-border-hover: #9ca9ba;
67
- --m-color-primary: #155eef;
68
- --m-color-primary-hover: #1049be;
69
- --m-color-primary-soft: #e9f0ff;
70
- --m-color-info: #2563eb;
71
- --m-color-info-soft: #eff6ff;
72
- --m-color-success: #15803d;
73
- --m-color-success-soft: #ecfdf3;
74
- --m-color-warning: #b45309;
75
- --m-color-warning-soft: #fff7ed;
76
- --m-color-danger: #c93434;
77
- --m-color-danger-soft: #fff1f2;
78
- --m-color-danger-ring: rgb(201 52 52 / 18%);
79
- --m-color-focus-ring: rgb(21 94 239 / 22%);
80
-
81
-
82
- --m-control-sm-padding-y: 0.25rem;
83
- --m-control-sm-padding-x: 0.55rem;
86
+ --m-color-surface-muted: #f0efeb;
87
+ --m-color-border: #e3e1dc;
88
+ --m-color-border-hover: #b9b6ae;
89
+ --m-color-primary: #2c4a9a;
90
+ --m-color-primary-hover: #233c7e;
91
+ --m-color-primary-soft: #eaeef8;
92
+ --m-color-info: var(--m-color-primary);
93
+ --m-color-info-soft: var(--m-color-primary-soft);
94
+ --m-color-success: #1f8a5d;
95
+ --m-color-success-soft: #eaf5ef;
96
+ --m-color-warning: #a8620e;
97
+ --m-color-warning-soft: #fbf3e6;
98
+ --m-color-danger: #c8372b;
99
+ --m-color-danger-soft: #fcefed;
100
+ --m-color-danger-ring: rgb(200 55 43 / 16%);
101
+ --m-color-focus-ring: rgb(44 74 154 / 22%);
102
+
103
+
104
+ --m-control-sm-padding-y: 0.241rem;
105
+ --m-control-sm-padding-x: 0.5302rem;
84
106
  --m-control-sm-font-size: 0.85em;
85
- --m-control-md-padding-y: 0.375rem;
86
- --m-control-md-padding-x: 0.7rem;
107
+ --m-control-md-padding-y: 0.3615rem;
108
+ --m-control-md-padding-x: 0.6748rem;
87
109
  --m-control-md-font-size: 1em;
88
- --m-control-lg-padding-y: 0.5rem;
89
- --m-control-lg-padding-x: 0.85rem;
110
+ --m-control-lg-padding-y: 0.482rem;
111
+ --m-control-lg-padding-x: 0.8194rem;
90
112
  --m-control-lg-font-size: 1.06em;
91
113
 
92
114
  --m-button-host-display: inline-flex;
93
115
  --m-button-host-block-display: flex;
94
- --m-button-gap: 0.45rem;
95
- --m-button-border-width: 1px;
116
+ --m-button-gap: var(--m-gap);
117
+ --m-button-border-width: var(--m-border-width);
96
118
  --m-button-border-radius: var(--m-radius-control);
97
- --m-button-font-weight: 400;
98
- --m-button-line-height: 1.2;
119
+ --m-button-font-weight: 500;
120
+ --m-button-line-height: var(--m-control-line-height);
99
121
  --m-button-transition-duration: var(--m-motion-fast);
100
- --m-button-disabled-opacity: 0.62;
122
+ --m-button-disabled-opacity: var(--m-disabled-opacity);
101
123
 
102
124
  --m-button-sm-padding-y: var(--m-control-sm-padding-y);
103
125
  --m-button-sm-padding-x: var(--m-control-sm-padding-x);
@@ -109,11 +131,11 @@
109
131
  --m-button-lg-padding-x: var(--m-control-lg-padding-x);
110
132
  --m-button-lg-font-size: var(--m-control-lg-font-size);
111
133
 
112
- --m-input-border-width: 1px;
134
+ --m-input-border-width: var(--m-border-width);
113
135
  --m-input-border-radius: var(--m-radius-control);
114
- --m-input-line-height: 1.35;
136
+ --m-input-line-height: var(--m-control-line-height);
115
137
  --m-input-transition-duration: var(--m-motion-fast);
116
- --m-input-disabled-opacity: 0.65;
138
+ --m-input-disabled-opacity: var(--m-disabled-opacity);
117
139
 
118
140
  --m-input-sm-padding-y: var(--m-control-sm-padding-y);
119
141
  --m-input-sm-padding-x: var(--m-control-sm-padding-x);
@@ -127,16 +149,16 @@
127
149
  --m-input-textarea-min-height: 5.5rem;
128
150
  --m-input-textarea-resize: vertical;
129
151
  --m-input-icon-size: 1rem;
130
- --m-input-icon-gap: 0.55rem;
152
+ --m-input-icon-gap: var(--m-gap);
131
153
  --m-input-icon-offset-x: var(--m-control-md-padding-x);
132
154
  --m-input-icon-button-size: 1.65rem;
133
- --m-input-icon-button-radius: 0.3rem;
155
+ --m-input-icon-button-radius: var(--m-radius-sm);
134
156
 
135
157
  --m-select-border-width: var(--m-input-border-width);
136
158
  --m-select-border-radius: var(--m-input-border-radius);
137
159
  --m-select-line-height: var(--m-input-line-height);
138
160
  --m-select-transition-duration: var(--m-input-transition-duration);
139
- --m-select-disabled-opacity: var(--m-input-disabled-opacity);
161
+ --m-select-disabled-opacity: var(--m-disabled-opacity);
140
162
  --m-select-sm-padding-y: var(--m-control-sm-padding-y);
141
163
  --m-select-sm-padding-x: var(--m-control-sm-padding-x);
142
164
  --m-select-sm-font-size: var(--m-control-sm-font-size);
@@ -153,28 +175,28 @@
153
175
  --m-select-panel-offset: 0.25rem;
154
176
  --m-select-panel-max-height: 14rem;
155
177
  --m-select-panel-padding: 0.35rem;
156
- --m-select-option-min-height: 2rem;
157
- --m-select-disabled-opacity: 0.6;
158
- --m-multi-select-disabled-opacity: 0.6;
178
+ --m-select-option-min-height: var(--m-row-height);
179
+ --m-select-disabled-opacity: var(--m-disabled-opacity);
180
+ --m-multi-select-disabled-opacity: var(--m-disabled-opacity);
159
181
 
160
- --m-choice-size: 1.05rem;
161
- --m-choice-gap: 0.55rem;
162
- --m-choice-border-width: 1px;
182
+ --m-choice-size: 1.0122rem;
183
+ --m-choice-gap: var(--m-gap);
184
+ --m-choice-border-width: var(--m-border-width);
163
185
  --m-choice-transition-duration: var(--m-motion-fast);
164
186
 
165
- --m-switch-width: 2.5rem;
166
- --m-switch-height: 1.35rem;
167
- --m-switch-thumb-size: 1rem;
168
- --m-switch-gap: 0.55rem;
187
+ --m-switch-width: 2.41rem;
188
+ --m-switch-height: 1.3014rem;
189
+ --m-switch-thumb-size: 0.964rem;
190
+ --m-switch-gap: var(--m-gap);
169
191
 
170
192
  --m-date-picker-panel-width: 18rem;
171
193
  --m-date-picker-day-size: 2rem;
172
194
  --m-date-picker-panel-padding: 0.7rem;
173
195
 
174
196
  --m-dialog-z-index: 1000;
175
- --m-dialog-mask-background: rgb(15 23 42 / 42%);
176
- --m-dialog-border-width: 1px;
177
- --m-dialog-border-radius: 0.5rem;
197
+ --m-dialog-mask-background: rgb(14 14 13 / 40%);
198
+ --m-dialog-border-width: var(--m-border-width);
199
+ --m-dialog-border-radius: var(--m-radius-container);
178
200
  --m-dialog-sm-width: 24rem;
179
201
  --m-dialog-md-width: 32rem;
180
202
  --m-dialog-lg-width: 44rem;
@@ -183,12 +205,12 @@
183
205
  --m-dialog-content-padding-y: 1rem;
184
206
  --m-dialog-footer-padding-y: 0.85rem;
185
207
  --m-dialog-title-font-size: 1rem;
186
- --m-dialog-title-font-weight: 750;
208
+ --m-dialog-title-font-weight: 650;
187
209
  --m-dialog-close-size: 2rem;
188
210
 
189
211
  --m-drawer-z-index: 990;
190
212
  --m-drawer-mask-background: var(--m-dialog-mask-background);
191
- --m-drawer-border-width: 1px;
213
+ --m-drawer-border-width: var(--m-border-width);
192
214
  --m-drawer-sm-size: 16rem;
193
215
  --m-drawer-md-size: 22rem;
194
216
  --m-drawer-lg-size: 30rem;
@@ -197,7 +219,7 @@
197
219
  --m-drawer-content-padding-y: 1rem;
198
220
  --m-drawer-footer-padding-y: 0.85rem;
199
221
  --m-drawer-title-font-size: 1rem;
200
- --m-drawer-title-font-weight: 750;
222
+ --m-drawer-title-font-weight: 650;
201
223
  --m-drawer-close-size: 2rem;
202
224
 
203
225
  --m-toast-z-index: 1100;
@@ -209,18 +231,20 @@
209
231
  --m-toast-gap: 0.6rem;
210
232
  --m-toast-padding: 0.75rem 0.8rem;
211
233
  --m-toast-content-gap: 0.65rem;
212
- --m-toast-border-radius: 0.5rem;
234
+ --m-toast-border-radius: var(--m-radius-container);
213
235
  --m-toast-icon-size: 1rem;
214
236
  --m-toast-close-size: 1.8rem;
215
- --m-toast-transition-duration: var(--m-motion-fast);
237
+ --m-toast-transition-duration: 320ms;
238
+ --m-toast-easing: cubic-bezier(0.22, 1, 0.36, 1);
239
+ --m-toast-shadow: 0 0.25rem 0.75rem rgb(14 14 13 / 7%), 0 1px 2px rgb(14 14 13 / 5%);
216
240
 
217
241
  --m-tooltip-z-index: 1200;
218
242
  --m-tooltip-max-width: 16rem;
219
243
  --m-tooltip-padding-y: 0.35rem;
220
244
  --m-tooltip-padding-x: 0.55rem;
221
- --m-tooltip-border-radius: 0.35rem;
245
+ --m-tooltip-border-radius: var(--m-radius-control);
222
246
  --m-tooltip-font-size: 0.86em;
223
- --m-tooltip-bg-color: rgba(80,80,80,0.75);
247
+ --m-tooltip-bg-color: rgb(22 22 22 / 92%);
224
248
  --m-tooltip-line-height: 1.3;
225
249
  --m-tooltip-arrow-size: 0.32rem;
226
250
  --m-tooltip-transition-duration: var(--m-motion-fast);
@@ -230,21 +254,21 @@
230
254
  --m-multi-select-panel-padding: var(--m-select-panel-padding);
231
255
  --m-multi-select-option-min-height: var(--m-select-option-min-height);
232
256
 
233
- --m-table-border-width: 1px;
257
+ --m-table-border-width: var(--m-border-width);
234
258
  --m-table-border-radius: var(--m-radius-control);
235
- --m-table-sm-cell-padding-y: 0.45rem;
236
- --m-table-sm-cell-padding-x: 0.6rem;
237
- --m-table-sm-font-size: 0.92em;
238
- --m-table-md-cell-padding-y: 0.5rem;
239
- --m-table-md-cell-padding-x: 0.75rem;
240
- --m-table-md-font-size: 1em;
241
- --m-table-lg-cell-padding-y: 0.75rem;
242
- --m-table-lg-cell-padding-x: 0.9rem;
243
- --m-table-lg-font-size: 1.04em;
259
+ --m-table-sm-cell-padding-y: calc(var(--m-control-sm-padding-y) * 1.4);
260
+ --m-table-sm-cell-padding-x: var(--m-control-sm-padding-x);
261
+ --m-table-sm-font-size: var(--m-control-sm-font-size);
262
+ --m-table-md-cell-padding-y: calc(var(--m-control-md-padding-y) * 1.4);
263
+ --m-table-md-cell-padding-x: var(--m-control-md-padding-x);
264
+ --m-table-md-font-size: var(--m-control-md-font-size);
265
+ --m-table-lg-cell-padding-y: calc(var(--m-control-lg-padding-y) * 1.4);
266
+ --m-table-lg-cell-padding-x: var(--m-control-lg-padding-x);
267
+ --m-table-lg-font-size: var(--m-control-lg-font-size);
244
268
  --m-table-compact-cell-padding-y: var(--m-table-sm-cell-padding-y);
245
269
  --m-table-compact-cell-padding-x: var(--m-table-sm-cell-padding-x);
246
270
  --m-table-header-font-size: 0.86em;
247
- --m-table-header-font-weight: 650;
271
+ --m-table-header-font-weight: 600;
248
272
  --m-table-checkbox-size: 1rem;
249
273
  --m-table-filter-width: 16rem;
250
274
  --m-table-filter-padding-x: var(--m-control-md-padding-x);
@@ -254,24 +278,24 @@
254
278
  --m-table-transition-duration: var(--m-motion-fast);
255
279
 
256
280
  --m-accordion-gap: 0.25rem;
257
- --m-accordion-header-gap: 0.55rem;
281
+ --m-accordion-header-gap: var(--m-gap);
258
282
  --m-accordion-icon-size: 1rem;
259
283
  --m-accordion-chevron-size: 1rem;
260
284
  --m-accordion-header-border-radius: var(--m-radius-control);
261
- --m-accordion-header-min-height: 2.2rem;
285
+ --m-accordion-header-min-height: var(--m-row-height);
262
286
  --m-accordion-panel-padding-y: 0.75rem;
263
287
  --m-accordion-panel-padding-x: 0.75rem;
264
- --m-accordion-disabled-opacity: 0.5;
288
+ --m-accordion-disabled-opacity: var(--m-disabled-opacity);
265
289
  --m-accordion-transition-duration: var(--m-motion-fast);
266
- --m-accordion-sm-header-padding-y: 0.42rem;
267
- --m-accordion-sm-header-padding-x: 0.55rem;
268
- --m-accordion-sm-font-size: 0.92em;
269
- --m-accordion-md-header-padding-y: 0.52rem;
270
- --m-accordion-md-header-padding-x: 0.68rem;
271
- --m-accordion-md-font-size: 1em;
272
- --m-accordion-lg-header-padding-y: 0.62rem;
273
- --m-accordion-lg-header-padding-x: 0.82rem;
274
- --m-accordion-lg-font-size: 1.04em;
290
+ --m-accordion-sm-header-padding-y: calc(var(--m-control-sm-padding-y) * 1.4);
291
+ --m-accordion-sm-header-padding-x: var(--m-control-sm-padding-x);
292
+ --m-accordion-sm-font-size: var(--m-control-sm-font-size);
293
+ --m-accordion-md-header-padding-y: calc(var(--m-control-md-padding-y) * 1.4);
294
+ --m-accordion-md-header-padding-x: var(--m-control-md-padding-x);
295
+ --m-accordion-md-font-size: var(--m-control-md-font-size);
296
+ --m-accordion-lg-header-padding-y: calc(var(--m-control-lg-padding-y) * 1.4);
297
+ --m-accordion-lg-header-padding-x: var(--m-control-lg-padding-x);
298
+ --m-accordion-lg-font-size: var(--m-control-lg-font-size);
275
299
 
276
300
  --m-menu-list-gap: 0.2rem;
277
301
  --m-tiered-menu-width: 14rem;
@@ -284,41 +308,41 @@
284
308
  --m-menu-search-indent: 0.7rem;
285
309
  --m-menu-search-item-padding-y: 0.22em;
286
310
  --m-menu-search-item-padding-x: 0.5em;
287
- --m-menu-item-gap: 0.55rem;
311
+ --m-menu-item-gap: var(--m-gap);
288
312
  --m-menu-icon-size: 1rem;
289
313
  --m-menu-indent: 0.85rem;
290
314
  --m-menu-item-border-radius: var(--m-radius-control);
291
- --m-menu-item-min-height: 2.15rem;
292
- --m-menu-disabled-opacity: 0.5;
315
+ --m-menu-item-min-height: var(--m-row-height);
316
+ --m-menu-disabled-opacity: var(--m-disabled-opacity);
293
317
  --m-menu-transition-duration: var(--m-motion-fast);
294
- --m-menu-sm-item-padding-y: 0.42rem;
295
- --m-menu-sm-item-padding-x: 0.55rem;
296
- --m-menu-sm-font-size: 0.92em;
297
- --m-menu-md-item-padding-y: 0.52rem;
298
- --m-menu-md-item-padding-x: 0.68rem;
299
- --m-menu-md-font-size: 1em;
300
- --m-menu-lg-item-padding-y: 0.62rem;
301
- --m-menu-lg-item-padding-x: 0.82rem;
302
- --m-menu-lg-font-size: 1.04em;
318
+ --m-menu-sm-item-padding-y: calc(var(--m-control-sm-padding-y) * 1.4);
319
+ --m-menu-sm-item-padding-x: var(--m-control-sm-padding-x);
320
+ --m-menu-sm-font-size: var(--m-control-sm-font-size);
321
+ --m-menu-md-item-padding-y: calc(var(--m-control-md-padding-y) * 1.4);
322
+ --m-menu-md-item-padding-x: var(--m-control-md-padding-x);
323
+ --m-menu-md-font-size: var(--m-control-md-font-size);
324
+ --m-menu-lg-item-padding-y: calc(var(--m-control-lg-padding-y) * 1.4);
325
+ --m-menu-lg-item-padding-x: var(--m-control-lg-padding-x);
326
+ --m-menu-lg-font-size: var(--m-control-lg-font-size);
303
327
 
304
328
  --m-tabs-gap: 0.2rem;
305
- --m-tabs-icon-gap: 0.45rem;
329
+ --m-tabs-icon-gap: var(--m-gap);
306
330
  --m-tabs-icon-size: 1rem;
307
331
  --m-tabs-indicator-height: 2px;
308
332
  --m-tabs-tab-border-radius: var(--m-radius-control);
309
- --m-tabs-tab-min-height: 2.25rem;
333
+ --m-tabs-tab-min-height: var(--m-row-height);
310
334
  --m-tabs-panel-padding-y: 1rem;
311
- --m-tabs-disabled-opacity: 0.5;
335
+ --m-tabs-disabled-opacity: var(--m-disabled-opacity);
312
336
  --m-tabs-transition-duration: var(--m-motion-fast);
313
- --m-tabs-sm-tab-padding-y: 0.45rem;
314
- --m-tabs-sm-tab-padding-x: 0.6rem;
315
- --m-tabs-sm-font-size: 0.92em;
316
- --m-tabs-md-tab-padding-y: 0.55rem;
317
- --m-tabs-md-tab-padding-x: 0.75rem;
318
- --m-tabs-md-font-size: 1em;
319
- --m-tabs-lg-tab-padding-y: 0.65rem;
320
- --m-tabs-lg-tab-padding-x: 0.9rem;
321
- --m-tabs-lg-font-size: 1.04em;
337
+ --m-tabs-sm-tab-padding-y: calc(var(--m-control-sm-padding-y) * 1.4);
338
+ --m-tabs-sm-tab-padding-x: var(--m-control-sm-padding-x);
339
+ --m-tabs-sm-font-size: var(--m-control-sm-font-size);
340
+ --m-tabs-md-tab-padding-y: calc(var(--m-control-md-padding-y) * 1.4);
341
+ --m-tabs-md-tab-padding-x: var(--m-control-md-padding-x);
342
+ --m-tabs-md-font-size: var(--m-control-md-font-size);
343
+ --m-tabs-lg-tab-padding-y: calc(var(--m-control-lg-padding-y) * 1.4);
344
+ --m-tabs-lg-tab-padding-x: var(--m-control-lg-padding-x);
345
+ --m-tabs-lg-font-size: var(--m-control-lg-font-size);
322
346
 
323
347
  --m-file-upload-min-height: 8rem;
324
348
  --m-file-upload-padding: 1rem;
@@ -327,28 +351,31 @@
327
351
  }
328
352
 
329
353
  .m-dark {
330
- --m-color-text: #e6edf7;
331
- --m-color-on-primary: #08111f;
332
- --m-color-muted: #a9b4c4;
333
- --m-color-surface: #151b26;
334
- --m-color-surface-muted: #293346;
335
- --m-color-border: #3a4658;
336
- --m-color-border-hover: #596779;
337
- --m-color-primary: #7aa7ff;
338
- --m-color-primary-hover: #9bbdff;
339
- --m-color-primary-soft: rgb(122 167 255 / 14%);
340
- --m-color-info: #8ab4ff;
341
- --m-color-info-soft: #18263c;
342
- --m-color-success: #74d99f;
343
- --m-color-success-soft: #163025;
344
- --m-color-warning: #f6c768;
345
- --m-color-warning-soft: #332914;
346
- --m-color-danger: #ff8d8d;
347
- --m-color-danger-soft: #351f25;
348
- --m-color-danger-ring: rgb(255 141 141 / 22%);
349
- --m-color-focus-ring: rgb(122 167 255 / 24%);
350
- --m-tooltip-bg-color: rgba(255,255,255,0.75);
351
-
354
+ --m-color-text: #f2f1ed;
355
+ --m-color-on-primary: #0e0e0d;
356
+ --m-color-muted: #9b9993;
357
+ --m-color-surface: #161615;
358
+ --m-color-surface-muted: #232321;
359
+ --m-color-border: #2e2e2b;
360
+ --m-color-border-hover: #4a4945;
361
+ --m-color-primary: #8da6e6;
362
+ --m-color-primary-hover: #a9bdf0;
363
+ --m-color-primary-soft: rgb(141 166 230 / 14%);
364
+ --m-color-info: var(--m-color-primary);
365
+ --m-color-info-soft: var(--m-color-primary-soft);
366
+ --m-color-success: #5fd3a0;
367
+ --m-color-success-soft: #13261e;
368
+ --m-color-warning: #f0b65a;
369
+ --m-color-warning-soft: #2c2314;
370
+ --m-color-danger: #ff8a7a;
371
+ --m-color-danger-soft: #331c1a;
372
+ --m-color-danger-ring: rgb(255 138 122 / 22%);
373
+ --m-color-focus-ring: rgb(141 166 230 / 26%);
374
+ --m-tooltip-bg-color: rgb(242 241 237 / 92%);
375
+ --m-shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
376
+ --m-shadow-panel: 0 0.75rem 1.75rem rgb(0 0 0 / 40%);
377
+ --m-shadow-overlay: 0 1rem 2.5rem rgb(0 0 0 / 50%);
378
+ --m-toast-shadow: 0 0.25rem 0.75rem rgb(0 0 0 / 30%);
352
379
  }
353
380
 
354
381
  /* =========================================================