@marwes-ui/presets 1.2.0 → 1.4.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.
Files changed (58) hide show
  1. package/README.md +19 -9
  2. package/dist/chunk-PWG4S55U.js +131 -0
  3. package/dist/chunk-PWG4S55U.js.map +1 -0
  4. package/dist/firstEdition/index.d.ts +18 -1
  5. package/dist/firstEdition/index.js +1 -1
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.js +1 -1
  8. package/package.json +3 -3
  9. package/src/firstEdition/accordion.css +25 -12
  10. package/src/firstEdition/avatar.css +32 -14
  11. package/src/firstEdition/badge.css +35 -64
  12. package/src/firstEdition/banner.css +190 -0
  13. package/src/firstEdition/breadcrumb.css +125 -0
  14. package/src/firstEdition/button.css +77 -18
  15. package/src/firstEdition/card.css +28 -24
  16. package/src/firstEdition/checkbox.css +9 -9
  17. package/src/firstEdition/context-menu.css +114 -0
  18. package/src/firstEdition/date-picker.css +6 -9
  19. package/src/firstEdition/dialog.css +17 -10
  20. package/src/firstEdition/drawer.css +258 -0
  21. package/src/firstEdition/index.ts +10 -0
  22. package/src/firstEdition/input-otp.css +16 -8
  23. package/src/firstEdition/input.css +7 -4
  24. package/src/firstEdition/molecules/accordion-field.css +9 -5
  25. package/src/firstEdition/molecules/checkbox-field.css +12 -12
  26. package/src/firstEdition/molecules/checkbox-group-field.css +29 -17
  27. package/src/firstEdition/molecules/date-picker-field.css +28 -0
  28. package/src/firstEdition/molecules/dialog-modal.css +16 -1
  29. package/src/firstEdition/molecules/input-field.css +31 -13
  30. package/src/firstEdition/molecules/input-otp-field.css +26 -0
  31. package/src/firstEdition/molecules/pagination-field.css +23 -0
  32. package/src/firstEdition/molecules/radio-group-field.css +30 -9
  33. package/src/firstEdition/molecules/segmented-control-field.css +23 -0
  34. package/src/firstEdition/molecules/slider-field.css +9 -4
  35. package/src/firstEdition/molecules/switch-field.css +8 -4
  36. package/src/firstEdition/molecules/tab-group.css +15 -2
  37. package/src/firstEdition/pagination.css +180 -0
  38. package/src/firstEdition/personality.css +66 -0
  39. package/src/firstEdition/presets.ts +97 -0
  40. package/src/firstEdition/progress-bar.css +108 -0
  41. package/src/firstEdition/radio.css +10 -5
  42. package/src/firstEdition/rich-text.css +5 -2
  43. package/src/firstEdition/segmented-control.css +133 -0
  44. package/src/firstEdition/select.css +26 -31
  45. package/src/firstEdition/skip-link.css +45 -0
  46. package/src/firstEdition/slider.css +10 -4
  47. package/src/firstEdition/spinner.css +150 -3
  48. package/src/firstEdition/stat-tile.css +54 -21
  49. package/src/firstEdition/styles.css +20 -0
  50. package/src/firstEdition/switch.css +4 -4
  51. package/src/firstEdition/tab.css +10 -10
  52. package/src/firstEdition/textarea.css +9 -6
  53. package/src/firstEdition/toast.css +139 -84
  54. package/src/firstEdition/tokens.css +6 -5
  55. package/src/firstEdition/tooltip.css +5 -5
  56. package/src/firstEdition/typography.css +21 -0
  57. package/dist/chunk-62D3F6GN.js +0 -49
  58. package/dist/chunk-62D3F6GN.js.map +0 -1
@@ -14,7 +14,7 @@
14
14
 
15
15
  .mw-spinner {
16
16
  --mw-spinner-size: 24px;
17
- --mw-spinner-track-color: var(--mw-color-text-muted, #a3a3a3);
17
+ --mw-spinner-track-color: #a3a3a3;
18
18
  --mw-spinner-indicator-color: var(--mw-color-primary-base, #2f31fc);
19
19
  --mw-spinner-rotation-duration: 800ms;
20
20
 
@@ -34,10 +34,17 @@
34
34
  transform-origin: center;
35
35
  }
36
36
 
37
- .mw-spinner--cross .mw-spinner__svg {
37
+ /* ── Segment-shift variants (no SVG rotation, individual opacity cycling) ── */
38
+
39
+ .mw-spinner--cross .mw-spinner__svg,
40
+ .mw-spinner--dots-round .mw-spinner__svg,
41
+ .mw-spinner--dots-square .mw-spinner__svg,
42
+ .mw-spinner--lines .mw-spinner__svg {
38
43
  animation: none;
39
44
  }
40
45
 
46
+ /* Cross — 4 segments */
47
+
41
48
  .mw-spinner--cross .mw-spinner__svg rect {
42
49
  animation: mw-spinner-cross-shift var(--mw-spinner-rotation-duration) steps(4, end) infinite;
43
50
  }
@@ -54,6 +61,108 @@
54
61
  animation-delay: calc(var(--mw-spinner-rotation-duration) * -0.25);
55
62
  }
56
63
 
64
+ /* Dots-round — 8 circle segments */
65
+
66
+ .mw-spinner--dots-round .mw-spinner__svg circle {
67
+ animation: mw-spinner-segment-shift-8 var(--mw-spinner-rotation-duration) steps(8, end) infinite;
68
+ }
69
+
70
+ .mw-spinner--dots-round .mw-spinner__svg circle:nth-child(2) {
71
+ animation-delay: calc(var(--mw-spinner-rotation-duration) * -0.875);
72
+ }
73
+
74
+ .mw-spinner--dots-round .mw-spinner__svg circle:nth-child(3) {
75
+ animation-delay: calc(var(--mw-spinner-rotation-duration) * -0.75);
76
+ }
77
+
78
+ .mw-spinner--dots-round .mw-spinner__svg circle:nth-child(4) {
79
+ animation-delay: calc(var(--mw-spinner-rotation-duration) * -0.625);
80
+ }
81
+
82
+ .mw-spinner--dots-round .mw-spinner__svg circle:nth-child(5) {
83
+ animation-delay: calc(var(--mw-spinner-rotation-duration) * -0.5);
84
+ }
85
+
86
+ .mw-spinner--dots-round .mw-spinner__svg circle:nth-child(6) {
87
+ animation-delay: calc(var(--mw-spinner-rotation-duration) * -0.375);
88
+ }
89
+
90
+ .mw-spinner--dots-round .mw-spinner__svg circle:nth-child(7) {
91
+ animation-delay: calc(var(--mw-spinner-rotation-duration) * -0.25);
92
+ }
93
+
94
+ .mw-spinner--dots-round .mw-spinner__svg circle:nth-child(8) {
95
+ animation-delay: calc(var(--mw-spinner-rotation-duration) * -0.125);
96
+ }
97
+
98
+ /* Dots-square — 8 rect segments */
99
+
100
+ .mw-spinner--dots-square .mw-spinner__svg rect {
101
+ animation: mw-spinner-segment-shift-8 var(--mw-spinner-rotation-duration) steps(8, end) infinite;
102
+ }
103
+
104
+ .mw-spinner--dots-square .mw-spinner__svg rect:nth-child(2) {
105
+ animation-delay: calc(var(--mw-spinner-rotation-duration) * -0.875);
106
+ }
107
+
108
+ .mw-spinner--dots-square .mw-spinner__svg rect:nth-child(3) {
109
+ animation-delay: calc(var(--mw-spinner-rotation-duration) * -0.75);
110
+ }
111
+
112
+ .mw-spinner--dots-square .mw-spinner__svg rect:nth-child(4) {
113
+ animation-delay: calc(var(--mw-spinner-rotation-duration) * -0.625);
114
+ }
115
+
116
+ .mw-spinner--dots-square .mw-spinner__svg rect:nth-child(5) {
117
+ animation-delay: calc(var(--mw-spinner-rotation-duration) * -0.5);
118
+ }
119
+
120
+ .mw-spinner--dots-square .mw-spinner__svg rect:nth-child(6) {
121
+ animation-delay: calc(var(--mw-spinner-rotation-duration) * -0.375);
122
+ }
123
+
124
+ .mw-spinner--dots-square .mw-spinner__svg rect:nth-child(7) {
125
+ animation-delay: calc(var(--mw-spinner-rotation-duration) * -0.25);
126
+ }
127
+
128
+ .mw-spinner--dots-square .mw-spinner__svg rect:nth-child(8) {
129
+ animation-delay: calc(var(--mw-spinner-rotation-duration) * -0.125);
130
+ }
131
+
132
+ /* Lines — 8 rect segments */
133
+
134
+ .mw-spinner--lines .mw-spinner__svg rect {
135
+ animation: mw-spinner-segment-shift-8 var(--mw-spinner-rotation-duration) steps(8, end) infinite;
136
+ }
137
+
138
+ .mw-spinner--lines .mw-spinner__svg rect:nth-child(2) {
139
+ animation-delay: calc(var(--mw-spinner-rotation-duration) * -0.875);
140
+ }
141
+
142
+ .mw-spinner--lines .mw-spinner__svg rect:nth-child(3) {
143
+ animation-delay: calc(var(--mw-spinner-rotation-duration) * -0.75);
144
+ }
145
+
146
+ .mw-spinner--lines .mw-spinner__svg rect:nth-child(4) {
147
+ animation-delay: calc(var(--mw-spinner-rotation-duration) * -0.625);
148
+ }
149
+
150
+ .mw-spinner--lines .mw-spinner__svg rect:nth-child(5) {
151
+ animation-delay: calc(var(--mw-spinner-rotation-duration) * -0.5);
152
+ }
153
+
154
+ .mw-spinner--lines .mw-spinner__svg rect:nth-child(6) {
155
+ animation-delay: calc(var(--mw-spinner-rotation-duration) * -0.375);
156
+ }
157
+
158
+ .mw-spinner--lines .mw-spinner__svg rect:nth-child(7) {
159
+ animation-delay: calc(var(--mw-spinner-rotation-duration) * -0.25);
160
+ }
161
+
162
+ .mw-spinner--lines .mw-spinner__svg rect:nth-child(8) {
163
+ animation-delay: calc(var(--mw-spinner-rotation-duration) * -0.125);
164
+ }
165
+
57
166
  @keyframes mw-spinner-rotate {
58
167
  from {
59
168
  transform: rotate(0deg);
@@ -83,12 +192,50 @@
83
192
  }
84
193
  }
85
194
 
195
+ @keyframes mw-spinner-segment-shift-8 {
196
+ 0%,
197
+ 100% {
198
+ opacity: 1;
199
+ }
200
+
201
+ 12.5% {
202
+ opacity: 0.875;
203
+ }
204
+
205
+ 25% {
206
+ opacity: 0.75;
207
+ }
208
+
209
+ 37.5% {
210
+ opacity: 0.625;
211
+ }
212
+
213
+ 50% {
214
+ opacity: 0.5;
215
+ }
216
+
217
+ 62.5% {
218
+ opacity: 0.375;
219
+ }
220
+
221
+ 75% {
222
+ opacity: 0.25;
223
+ }
224
+
225
+ 87.5% {
226
+ opacity: 0.125;
227
+ }
228
+ }
229
+
86
230
  @media (prefers-reduced-motion: reduce) {
87
231
  .mw-spinner__svg {
88
232
  animation-duration: 1600ms;
89
233
  }
90
234
 
91
- .mw-spinner--cross .mw-spinner__svg rect {
235
+ .mw-spinner--cross .mw-spinner__svg rect,
236
+ .mw-spinner--dots-round .mw-spinner__svg circle,
237
+ .mw-spinner--dots-square .mw-spinner__svg rect,
238
+ .mw-spinner--lines .mw-spinner__svg rect {
92
239
  animation-duration: 1600ms;
93
240
  }
94
241
  }
@@ -23,41 +23,42 @@
23
23
  padding: var(--mw-spacing-sp-24, 24px);
24
24
  color: var(--mw-stat-tile-text);
25
25
  background: var(--mw-stat-tile-surface);
26
- border: 1px solid var(--mw-stat-tile-border);
26
+ border: none;
27
27
  border-radius: var(--mw-stat-tile-radius);
28
+ box-shadow: inset 0 0 0 1px var(--mw-stat-tile-border);
28
29
  font-family: var(--mw-font-primary, inherit);
29
30
  }
30
31
 
31
32
  .mw-stat-tile--brand {
32
- --mw-stat-tile-surface: var(--mw-stat-tile-tone-surface, #eeeeff);
33
- --mw-stat-tile-border: var(--mw-stat-tile-tone-border, #ababfd);
34
- --mw-stat-tile-text: var(--mw-stat-tile-tone-text, #1b1d97);
35
- --mw-stat-tile-muted: var(--mw-stat-tile-tone-muted, #1b1d97);
36
- --mw-stat-tile-trend: var(--mw-stat-tile-tone-trend, #2527ca);
33
+ --mw-stat-tile-surface: var(--mw-color-status-info-background, #eeeeff);
34
+ --mw-stat-tile-border: var(--mw-color-status-info-border-strong, #5859fc);
35
+ --mw-stat-tile-text: var(--mw-color-status-info-text, #1b1d97);
36
+ --mw-stat-tile-muted: var(--mw-color-status-info-text, #1b1d97);
37
+ --mw-stat-tile-trend: var(--mw-color-status-info-icon, #2f31fc);
37
38
  }
38
39
 
39
40
  .mw-stat-tile--success {
40
- --mw-stat-tile-surface: var(--mw-stat-tile-tone-surface, #e6f4ed);
41
- --mw-stat-tile-border: var(--mw-stat-tile-tone-border, #90caad);
42
- --mw-stat-tile-text: var(--mw-stat-tile-tone-text, #006633);
43
- --mw-stat-tile-muted: var(--mw-stat-tile-tone-muted, #006633);
44
- --mw-stat-tile-trend: var(--mw-stat-tile-tone-trend, #006d48);
41
+ --mw-stat-tile-surface: var(--mw-color-status-success-background, #e6f4ed);
42
+ --mw-stat-tile-border: var(--mw-color-status-success-border-strong, #2e9970);
43
+ --mw-stat-tile-text: var(--mw-color-status-success-text, #006633);
44
+ --mw-stat-tile-muted: var(--mw-color-status-success-text, #006633);
45
+ --mw-stat-tile-trend: var(--mw-color-status-success-icon, #006d48);
45
46
  }
46
47
 
47
48
  .mw-stat-tile--warning {
48
- --mw-stat-tile-surface: var(--mw-stat-tile-tone-surface, #fff8e6);
49
- --mw-stat-tile-border: var(--mw-stat-tile-tone-border, #fde08a);
50
- --mw-stat-tile-text: var(--mw-stat-tile-tone-text, #b45309);
51
- --mw-stat-tile-muted: var(--mw-stat-tile-tone-muted, #b45309);
52
- --mw-stat-tile-trend: var(--mw-stat-tile-tone-trend, #b45309);
49
+ --mw-stat-tile-surface: var(--mw-color-status-warning-background, #fff8e6);
50
+ --mw-stat-tile-border: var(--mw-color-status-warning-border-strong, #e46f00);
51
+ --mw-stat-tile-text: var(--mw-color-status-warning-text, #b45309);
52
+ --mw-stat-tile-muted: var(--mw-color-status-warning-text, #b45309);
53
+ --mw-stat-tile-trend: var(--mw-color-status-warning-text, #b45309);
53
54
  }
54
55
 
55
56
  .mw-stat-tile--danger {
56
- --mw-stat-tile-surface: var(--mw-stat-tile-tone-surface, #ffe8eb);
57
- --mw-stat-tile-border: var(--mw-stat-tile-tone-border, #ff8a95);
58
- --mw-stat-tile-text: var(--mw-stat-tile-tone-text, #a8031f);
59
- --mw-stat-tile-muted: var(--mw-stat-tile-tone-muted, #a8031f);
60
- --mw-stat-tile-trend: var(--mw-stat-tile-tone-trend, #a8031f);
57
+ --mw-stat-tile-surface: var(--mw-color-status-error-background, #ffe8eb);
58
+ --mw-stat-tile-border: var(--mw-color-status-error-border-strong, #ff2847);
59
+ --mw-stat-tile-text: var(--mw-color-status-error-text, #a8031f);
60
+ --mw-stat-tile-muted: var(--mw-color-status-error-text, #a8031f);
61
+ --mw-stat-tile-trend: var(--mw-color-status-error-text, #a8031f);
61
62
  }
62
63
 
63
64
  .mw-stat-tile__header {
@@ -135,3 +136,35 @@
135
136
  --mw-stat-tile-text: var(--mw-color-text, #f9fafb);
136
137
  --mw-stat-tile-muted: var(--mw-color-text-muted, #a3a3a3);
137
138
  }
139
+
140
+ .mw-theme--dark .mw-stat-tile--brand {
141
+ --mw-stat-tile-surface: var(--mw-color-status-info-background, #040519);
142
+ --mw-stat-tile-border: var(--mw-color-status-info-border-strong, #252599);
143
+ --mw-stat-tile-text: var(--mw-color-status-info-text, #ababfd);
144
+ --mw-stat-tile-muted: var(--mw-color-status-info-text, #ababfd);
145
+ --mw-stat-tile-trend: var(--mw-color-status-info-icon, #8182fc);
146
+ }
147
+
148
+ .mw-theme--dark .mw-stat-tile--success {
149
+ --mw-stat-tile-surface: var(--mw-color-status-success-background, #001a0c);
150
+ --mw-stat-tile-border: var(--mw-color-status-success-border-strong, #006d48);
151
+ --mw-stat-tile-text: var(--mw-color-status-success-text, #90caad);
152
+ --mw-stat-tile-muted: var(--mw-color-status-success-text, #90caad);
153
+ --mw-stat-tile-trend: var(--mw-color-status-success-icon, #5db189);
154
+ }
155
+
156
+ .mw-theme--dark .mw-stat-tile--warning {
157
+ --mw-stat-tile-surface: var(--mw-color-status-warning-background, #221004);
158
+ --mw-stat-tile-border: var(--mw-color-status-warning-border-strong, #b45308);
159
+ --mw-stat-tile-text: var(--mw-color-status-warning-text, #fcc94a);
160
+ --mw-stat-tile-muted: var(--mw-color-status-warning-text, #fcc94a);
161
+ --mw-stat-tile-trend: var(--mw-color-status-warning-icon, #f9b21a);
162
+ }
163
+
164
+ .mw-theme--dark .mw-stat-tile--danger {
165
+ --mw-stat-tile-surface: var(--mw-color-status-error-background, #240006);
166
+ --mw-stat-tile-border: var(--mw-color-status-error-border-strong, #ff2847);
167
+ --mw-stat-tile-text: var(--mw-color-status-error-text, #ff5566);
168
+ --mw-stat-tile-muted: var(--mw-color-status-error-text, #ff5566);
169
+ --mw-stat-tile-trend: var(--mw-color-status-error-icon, #ff2847);
170
+ }
@@ -5,15 +5,24 @@
5
5
  * Each component has its own CSS file for better organization.
6
6
  */
7
7
 
8
+ @import "@fontsource/instrument-sans/400.css";
9
+ @import "@fontsource/instrument-sans/500.css";
10
+ @import "@fontsource/instrument-sans/600.css";
11
+ @import "@fontsource/instrument-sans/700.css";
12
+
8
13
  @import "./tokens.css";
9
14
 
10
15
  @import "./accordion.css";
11
16
  @import "./avatar.css";
12
17
  @import "./card.css";
18
+ @import "./context-menu.css";
19
+ @import "./breadcrumb.css";
13
20
  @import "./dialog.css";
21
+ @import "./drawer.css";
14
22
  @import "./toast.css";
15
23
  @import "./tooltip.css";
16
24
  @import "./badge.css";
25
+ @import "./banner.css";
17
26
  @import "./button.css";
18
27
  @import "./input.css";
19
28
  @import "./input-otp.css";
@@ -25,6 +34,7 @@
25
34
  @import "./divider.css";
26
35
  @import "./spinner.css";
27
36
  @import "./skeleton.css";
37
+ @import "./progress-bar.css";
28
38
  @import "./stat-tile.css";
29
39
  @import "./date-picker.css";
30
40
  @import "./spacing.css";
@@ -32,16 +42,26 @@
32
42
  @import "./switch.css";
33
43
  @import "./slider.css";
34
44
  @import "./tab.css";
45
+ @import "./segmented-control.css";
46
+ @import "./pagination.css";
47
+ @import "./skip-link.css";
35
48
  @import "./typography.css";
36
49
 
37
50
  /* Molecules */
38
51
  @import "./molecules/accordion-field.css";
39
52
  @import "./molecules/checkbox-field.css";
40
53
  @import "./molecules/checkbox-group-field.css";
54
+ @import "./molecules/date-picker-field.css";
41
55
  @import "./molecules/dialog-modal.css";
56
+ @import "./molecules/pagination-field.css";
57
+ @import "./molecules/segmented-control-field.css";
42
58
  @import "./molecules/input-field.css";
59
+ @import "./molecules/input-otp-field.css";
43
60
  @import "./molecules/radio-group-field.css";
44
61
  @import "./molecules/slider-field.css";
45
62
  @import "./molecules/switch-field.css";
46
63
  @import "./molecules/tab-group.css";
47
64
  @import "./molecules/toast-container.css";
65
+
66
+ /* Personality signatures — opt-in visual identity, no-op unless selected. */
67
+ @import "./personality.css";
@@ -12,16 +12,16 @@
12
12
  */
13
13
 
14
14
  .mw-switch {
15
- --mw-switch-track-off: var(--mw-color-border-subtle);
16
- --mw-switch-track-off-hover: color-mix(in srgb, var(--mw-color-border) 60%, var(--mw-color-text));
15
+ --mw-switch-track-off: var(--mw-color-border-low);
16
+ --mw-switch-track-off-hover: var(--mw-color-border-strong);
17
17
  --mw-switch-track-off-active: var(--mw-color-border);
18
18
  --mw-switch-track-off-disabled: var(--mw-color-border-disabled);
19
19
  --mw-switch-track-on: var(--mw-color-primary-base, #2f31fc);
20
20
  --mw-switch-track-on-hover: var(--mw-color-primary-hover, #2527ca);
21
21
  --mw-switch-track-on-active: var(--mw-color-primary-pressed, #1b1d97);
22
22
  --mw-switch-track-on-disabled: var(--mw-color-primary-disabled, #8182fc);
23
- --mw-switch-thumb-off: var(--mw-color-surface);
24
- --mw-switch-thumb-off-disabled: var(--mw-color-surface-disabled);
23
+ --mw-switch-thumb-off: var(--mw-color-surface-primary);
24
+ --mw-switch-thumb-off-disabled: var(--mw-color-surface-subtle);
25
25
  --mw-switch-thumb-on: var(--mw-color-primary-label);
26
26
  --mw-switch-thumb-on-disabled: var(--mw-color-primary-label-disabled);
27
27
  --mw-switch-label: var(--mw-color-text);
@@ -7,14 +7,14 @@
7
7
  */
8
8
 
9
9
  .mw-tab {
10
- --mw-tab-surface: var(--mw-color-surface-elevated);
11
- --mw-tab-surface-hover: var(--mw-color-surface-subtle);
12
- --mw-tab-surface-pressed: var(--mw-color-border-subtle);
13
- --mw-tab-label: var(--mw-color-text-muted);
10
+ --mw-tab-surface: var(--mw-color-surface, transparent);
11
+ --mw-tab-surface-hover: color-mix(in srgb, var(--mw-color-text, #000000) 5%, transparent);
12
+ --mw-tab-surface-pressed: color-mix(in srgb, var(--mw-color-text, #000000) 10%, transparent);
13
+ --mw-tab-label: var(--mw-color-text-muted, #595959);
14
14
  --mw-tab-label-active: var(--mw-color-text, #141414);
15
15
  --mw-tab-label-disabled: var(--mw-color-text-disabled);
16
- --mw-tab-indicator: var(--mw-color-primary-base, #2f31fc);
17
- --mw-tab-indicator-disabled: var(--mw-color-border-disabled);
16
+ --mw-tab-indicator: var(--mw-color-border-brand, #2f31fc);
17
+ --mw-tab-indicator-disabled: var(--mw-color-border-low);
18
18
 
19
19
  appearance: none;
20
20
  position: relative;
@@ -70,10 +70,10 @@
70
70
  }
71
71
 
72
72
  .mw-theme--dark .mw-tab {
73
- --mw-tab-surface: var(--mw-color-surface-elevated);
74
- --mw-tab-surface-hover: var(--mw-color-surface-subtle);
75
- --mw-tab-surface-pressed: var(--mw-color-border);
76
- --mw-tab-label: var(--mw-color-text-muted);
73
+ --mw-tab-surface: transparent;
74
+ --mw-tab-surface-hover: color-mix(in srgb, var(--mw-color-text, #ffffff) 5%, transparent);
75
+ --mw-tab-surface-pressed: color-mix(in srgb, var(--mw-color-text, #ffffff) 10%, transparent);
76
+ --mw-tab-label: var(--mw-color-text);
77
77
  --mw-tab-label-active: var(--mw-color-text);
78
78
  --mw-tab-label-disabled: var(--mw-color-text-disabled);
79
79
  --mw-tab-indicator: var(--mw-color-primary-base, #5859fc);
@@ -4,17 +4,20 @@
4
4
  */
5
5
 
6
6
  .mw-textarea {
7
- min-height: calc(var(--mw-density-height) * 3);
7
+ box-sizing: border-box;
8
+ min-height: 100px;
8
9
  padding: var(--mw-density-padding-y) var(--mw-density-padding-x);
9
10
  border-radius: var(--mw-ui-radius);
10
11
  border: 1px solid var(--mw-color-border);
11
- background: var(--mw-color-surface);
12
+ background: var(--mw-color-surface-primary);
12
13
  color: var(--mw-color-text);
13
14
  font-family: var(--mw-font-primary, inherit);
14
15
  font-size: var(--mw-density-font-size);
15
- width: 260px;
16
- line-height: 1.5;
17
- resize: var(--mw-textarea-resize, vertical);
16
+ width: 100%;
17
+ min-width: 0;
18
+ max-width: 100%;
19
+ line-height: 16px;
20
+ resize: var(--mw-textarea-resize, none);
18
21
  transition: border-color 150ms ease, outline 150ms ease;
19
22
  }
20
23
 
@@ -59,5 +62,5 @@
59
62
  }
60
63
 
61
64
  .mw-theme--dark .mw-textarea {
62
- background: var(--mw-color-surface);
65
+ background: var(--mw-color-surface-primary);
63
66
  }