@a-type/ui 6.0.81 → 6.1.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.
Files changed (164) hide show
  1. package/dist/arbor/arbor.d.ts +637 -691
  2. package/dist/arbor/arbor.js +51 -63
  3. package/dist/arbor/arbor.js.map +1 -1
  4. package/dist/colors.module.css +14 -14
  5. package/dist/components/actions/ActionBar.module.css +1 -1
  6. package/dist/components/actions/ActionButton.module.css +1 -1
  7. package/dist/components/avatar/Avatar.module.css +5 -5
  8. package/dist/components/box/Box.module.css +19 -19
  9. package/dist/components/box/Box.stories.js +1 -1
  10. package/dist/components/box/Box.stories.js.map +1 -1
  11. package/dist/components/button/Button.module.css +9 -9
  12. package/dist/components/camera/Camera.module.css +9 -9
  13. package/dist/components/card/Card.module.css +24 -24
  14. package/dist/components/card/Card.stories.js +2 -2
  15. package/dist/components/card/Card.stories.js.map +1 -1
  16. package/dist/components/checkbox/Checkbox.module.css +8 -8
  17. package/dist/components/chip/Chip.module.css +9 -9
  18. package/dist/components/collapsible/Collapsible.module.css +2 -2
  19. package/dist/components/combobox/Combobox.module.css +26 -26
  20. package/dist/components/datePicker/Calendar.module.css +32 -32
  21. package/dist/components/datePicker/dateRangePicker.module.css +1 -1
  22. package/dist/components/dialog/Dialog.module.css +25 -25
  23. package/dist/components/dialog/Dialog.stories.js +1 -1
  24. package/dist/components/dialog/Dialog.stories.js.map +1 -1
  25. package/dist/components/divider/Divider.module.css +2 -2
  26. package/dist/components/editableText/EditableText.module.css +5 -5
  27. package/dist/components/emojiPicker/EmojiPicker.module.css +10 -10
  28. package/dist/components/forms/Field.module.css +10 -12
  29. package/dist/components/forms/Form.module.css +1 -1
  30. package/dist/components/forms/NumberStepperField.module.css +1 -1
  31. package/dist/components/forms/TextField.module.css +1 -1
  32. package/dist/components/horizontalList/HorizontalList.module.css +7 -8
  33. package/dist/components/horizontalList/HorizontalList.stories.js +5 -5
  34. package/dist/components/horizontalList/HorizontalList.stories.js.map +1 -1
  35. package/dist/components/icon/Icon.module.css +1 -1
  36. package/dist/components/icon/Icon.stories.js +1 -1
  37. package/dist/components/icon/Icon.stories.js.map +1 -1
  38. package/dist/components/imageUploader/ImageUploader.module.css +9 -9
  39. package/dist/components/input/Input.module.css +13 -13
  40. package/dist/components/layouts/PageContent.module.css +3 -3
  41. package/dist/components/layouts/PageFixedArea.module.css +1 -1
  42. package/dist/components/layouts/PageNav.module.css +4 -4
  43. package/dist/components/layouts/PageNowPlaying.module.css +4 -4
  44. package/dist/components/layouts/PageRoot.module.css +1 -1
  45. package/dist/components/layouts/PageSection.module.css +4 -4
  46. package/dist/components/layouts/layouts.stories.js +1 -1
  47. package/dist/components/layouts/layouts.stories.js.map +1 -1
  48. package/dist/components/lightbox/Lightbox.module.css +5 -5
  49. package/dist/components/lists/lists.module.css +3 -3
  50. package/dist/components/marquee/marquee.module.css +1 -1
  51. package/dist/components/navBar/NavBar.module.css +19 -19
  52. package/dist/components/note/Note.module.css +16 -16
  53. package/dist/components/numberStepper/NumberStepper.module.css +4 -4
  54. package/dist/components/peek/Peek.module.css +9 -9
  55. package/dist/components/popover/Popover.module.css +5 -5
  56. package/dist/components/popover/Popover.stories.js +1 -1
  57. package/dist/components/popover/Popover.stories.js.map +1 -1
  58. package/dist/components/primitives/menus.module.css +29 -33
  59. package/dist/components/progress/Progress.module.css +11 -11
  60. package/dist/components/provider/Provider.js +1 -1
  61. package/dist/components/provider/Provider.js.map +1 -1
  62. package/dist/components/pwaInstall/PwaInstall.module.css +4 -4
  63. package/dist/components/quickAction/QuickAction.module.css +4 -4
  64. package/dist/components/richEditor/richEditor.module.css +18 -18
  65. package/dist/components/scrollArea/ScrollArea.module.css +8 -8
  66. package/dist/components/select/Select.module.css +3 -3
  67. package/dist/components/skeletons/skeletons.module.css +3 -3
  68. package/dist/components/slider/Slider.module.css +13 -13
  69. package/dist/components/spinner/Spinner.module.css +1 -1
  70. package/dist/components/switch/Switch.module.css +9 -9
  71. package/dist/components/tabs/tabs.module.css +16 -16
  72. package/dist/components/textArea/TextArea.module.css +1 -1
  73. package/dist/components/toasts/toasts.module.css +19 -19
  74. package/dist/components/toggleGroup/toggleGroup.module.css +12 -12
  75. package/dist/components/tooltip/Tooltip.module.css +10 -10
  76. package/dist/components/typography/typography.d.ts +1 -2
  77. package/dist/components/typography/typography.js +1 -2
  78. package/dist/components/typography/typography.js.map +1 -1
  79. package/dist/components/typography/typography.module.css +6 -9
  80. package/dist/components/viewport/Viewport.module.css +9 -9
  81. package/dist/css/base.css +1 -1
  82. package/dist/css/util.css +10 -10
  83. package/dist/hooks/useTitleBarColor.stories.js +1 -1
  84. package/dist/hooks/useTitleBarColor.stories.js.map +1 -1
  85. package/dist/keyboard.stories.js +1 -1
  86. package/dist/keyboard.stories.js.map +1 -1
  87. package/dist/shadows.stories.js +1 -1
  88. package/dist/shadows.stories.js.map +1 -1
  89. package/dist/theme.stories.module.css +1 -1
  90. package/package.json +5 -5
  91. package/src/arbor/arbor.ts +54 -67
  92. package/src/colors.module.css +14 -14
  93. package/src/components/actions/ActionBar.module.css +1 -1
  94. package/src/components/actions/ActionButton.module.css +1 -1
  95. package/src/components/avatar/Avatar.module.css +5 -5
  96. package/src/components/box/Box.module.css +19 -19
  97. package/src/components/box/Box.stories.tsx +1 -1
  98. package/src/components/button/Button.module.css +9 -9
  99. package/src/components/camera/Camera.module.css +9 -9
  100. package/src/components/card/Card.module.css +24 -24
  101. package/src/components/card/Card.stories.tsx +2 -2
  102. package/src/components/checkbox/Checkbox.module.css +8 -8
  103. package/src/components/chip/Chip.module.css +9 -9
  104. package/src/components/collapsible/Collapsible.module.css +2 -2
  105. package/src/components/combobox/Combobox.module.css +26 -26
  106. package/src/components/datePicker/Calendar.module.css +32 -32
  107. package/src/components/datePicker/dateRangePicker.module.css +1 -1
  108. package/src/components/dialog/Dialog.module.css +25 -25
  109. package/src/components/dialog/Dialog.stories.tsx +1 -1
  110. package/src/components/divider/Divider.module.css +2 -2
  111. package/src/components/editableText/EditableText.module.css +5 -5
  112. package/src/components/emojiPicker/EmojiPicker.module.css +10 -10
  113. package/src/components/forms/Field.module.css +10 -12
  114. package/src/components/forms/Form.module.css +1 -1
  115. package/src/components/forms/NumberStepperField.module.css +1 -1
  116. package/src/components/forms/TextField.module.css +1 -1
  117. package/src/components/horizontalList/HorizontalList.module.css +7 -8
  118. package/src/components/horizontalList/HorizontalList.stories.tsx +5 -5
  119. package/src/components/icon/Icon.module.css +1 -1
  120. package/src/components/icon/Icon.stories.tsx +1 -1
  121. package/src/components/imageUploader/ImageUploader.module.css +9 -9
  122. package/src/components/input/Input.module.css +13 -13
  123. package/src/components/layouts/PageContent.module.css +3 -3
  124. package/src/components/layouts/PageFixedArea.module.css +1 -1
  125. package/src/components/layouts/PageNav.module.css +4 -4
  126. package/src/components/layouts/PageNowPlaying.module.css +4 -4
  127. package/src/components/layouts/PageRoot.module.css +1 -1
  128. package/src/components/layouts/PageSection.module.css +4 -4
  129. package/src/components/layouts/layouts.stories.tsx +1 -1
  130. package/src/components/lightbox/Lightbox.module.css +5 -5
  131. package/src/components/lists/lists.module.css +3 -3
  132. package/src/components/marquee/marquee.module.css +1 -1
  133. package/src/components/navBar/NavBar.module.css +19 -19
  134. package/src/components/note/Note.module.css +16 -16
  135. package/src/components/numberStepper/NumberStepper.module.css +4 -4
  136. package/src/components/peek/Peek.module.css +9 -9
  137. package/src/components/popover/Popover.module.css +5 -5
  138. package/src/components/popover/Popover.stories.tsx +1 -1
  139. package/src/components/primitives/menus.module.css +29 -33
  140. package/src/components/progress/Progress.module.css +11 -11
  141. package/src/components/provider/Provider.tsx +1 -1
  142. package/src/components/pwaInstall/PwaInstall.module.css +4 -4
  143. package/src/components/quickAction/QuickAction.module.css +4 -4
  144. package/src/components/richEditor/richEditor.module.css +18 -18
  145. package/src/components/scrollArea/ScrollArea.module.css +8 -8
  146. package/src/components/select/Select.module.css +3 -3
  147. package/src/components/skeletons/skeletons.module.css +3 -3
  148. package/src/components/slider/Slider.module.css +13 -13
  149. package/src/components/spinner/Spinner.module.css +1 -1
  150. package/src/components/switch/Switch.module.css +9 -9
  151. package/src/components/tabs/tabs.module.css +16 -16
  152. package/src/components/textArea/TextArea.module.css +1 -1
  153. package/src/components/toasts/toasts.module.css +19 -19
  154. package/src/components/toggleGroup/toggleGroup.module.css +12 -12
  155. package/src/components/tooltip/Tooltip.module.css +10 -10
  156. package/src/components/typography/typography.module.css +6 -9
  157. package/src/components/typography/typography.tsx +0 -3
  158. package/src/components/viewport/Viewport.module.css +9 -9
  159. package/src/css/base.css +1 -1
  160. package/src/css/util.css +10 -10
  161. package/src/hooks/useTitleBarColor.stories.tsx +1 -1
  162. package/src/keyboard.stories.tsx +1 -1
  163. package/src/shadows.stories.tsx +1 -1
  164. package/src/theme.stories.module.css +1 -1
@@ -3,7 +3,7 @@ import {
3
3
  ArborPresetConfig,
4
4
  compileSingleColor,
5
5
  presetArbor,
6
- } from '@arbor-css/core/preset-arbor';
6
+ } from '@arbor-css/core/preset-v2';
7
7
  import { $userColorHue, $userColorSaturation } from './props.js';
8
8
 
9
9
  const defaultColors = {
@@ -103,7 +103,7 @@ export function presetAtype<
103
103
  fadeInUp: (css, $) => css`
104
104
  from {
105
105
  opacity: 0;
106
- transform: translateY(${$.mode.space.sm});
106
+ transform: translateY(${$.mode.sp.sm});
107
107
  }
108
108
  to {
109
109
  opacity: 1;
@@ -113,7 +113,7 @@ export function presetAtype<
113
113
  fadeInLeft: (css, $) => css`
114
114
  from {
115
115
  opacity: 0;
116
- transform: translateX(-${$.mode.space.sm});
116
+ transform: translateX(-${$.mode.sp.sm});
117
117
  }
118
118
  to {
119
119
  opacity: 1;
@@ -123,7 +123,7 @@ export function presetAtype<
123
123
  fadeInRight: (css, $) => css`
124
124
  from {
125
125
  opacity: 0;
126
- transform: translateX(${$.mode.space.sm});
126
+ transform: translateX(${$.mode.sp.sm});
127
127
  }
128
128
  to {
129
129
  opacity: 1;
@@ -137,7 +137,7 @@ export function presetAtype<
137
137
  }
138
138
  to {
139
139
  opacity: 0;
140
- transform: translateY(-${$.mode.space.sm});
140
+ transform: translateY(-${$.mode.sp.sm});
141
141
  }
142
142
  `,
143
143
  fadeOutLeft: (css, $) => css`
@@ -147,7 +147,7 @@ export function presetAtype<
147
147
  }
148
148
  to {
149
149
  opacity: 0;
150
- transform: translateX(-${$.mode.space.sm});
150
+ transform: translateX(-${$.mode.sp.sm});
151
151
  }
152
152
  `,
153
153
  fadeOutRight: (css, $) => css`
@@ -157,7 +157,7 @@ export function presetAtype<
157
157
  }
158
158
  to {
159
159
  opacity: 0;
160
- transform: translateX(${$.mode.space.sm});
160
+ transform: translateX(${$.mode.sp.sm});
161
161
  }
162
162
  `,
163
163
  fadeOutDown: (css, $) => css`
@@ -167,7 +167,7 @@ export function presetAtype<
167
167
  }
168
168
  to {
169
169
  opacity: 0;
170
- transform: translateY(${$.mode.space.sm});
170
+ transform: translateY(${$.mode.sp.sm});
171
171
  }
172
172
  `,
173
173
  fadeOut: (css) => css`
@@ -202,31 +202,31 @@ export function presetAtype<
202
202
  name: 'a-type',
203
203
  extends: [base],
204
204
  baseMode: ($) => ({
205
+ accent: $.mode.color[defaultAccent],
205
206
  color: {
206
- accent: $.mode.color.palette[defaultAccent],
207
- palette: {
208
- user: compileSingleColor(
209
- {
210
- hue: $.mode.user.hue,
211
- saturation: $.mode.user.saturation,
212
- },
213
- $.mode.global,
214
- ),
215
- },
207
+ user: compileSingleColor(
208
+ {
209
+ hue: $.mode.user.hue,
210
+ saturation: $.mode.user.saturation,
211
+ },
212
+ $.mode.global,
213
+ ),
216
214
  },
217
215
  action: {
218
216
  roundness: config?.roundActions === false ? undefined : 2,
219
217
 
220
218
  light: {
221
- bg: $.mode.color.main.light,
219
+ bg: $.mode.tint.light,
222
220
  fg: $.mode.global.trueHeavyColor,
223
- border: css`
224
- ${$.mode.action.light.borderWidth} ${$.mode.action.light
225
- .borderStyle} ${$.mode.action.light.borderColor}
226
- `,
227
- borderColor: $.mixins.fg.ref,
228
- borderStyle: 'solid',
229
- borderWidth: $.mode.lineWidth.$root,
221
+ b: {
222
+ $root: css`
223
+ ${$.mode.action.light.b.width} ${$.mode.action.light.b.style} ${$
224
+ .mode.action.light.b.color}
225
+ `,
226
+ width: $.mode.lw.$root,
227
+ color: $.mixins.fg.ref,
228
+ style: 'solid',
229
+ },
230
230
  },
231
231
  primary: {
232
232
  borderColor: $.mixins.fg.ref,
@@ -236,13 +236,17 @@ export function presetAtype<
236
236
  },
237
237
  },
238
238
  control: {
239
- roundness: config?.roundControls ? 2 : undefined,
240
- padding: {
241
- block: $.mode.space.sm,
239
+ config: {
240
+ roundness: config?.roundControls ? 2 : undefined,
241
+ },
242
+ p: {
243
+ block: $.mode.sp.sm,
242
244
  },
243
245
  },
244
246
  surface: {
245
- roundness: 1,
247
+ config: {
248
+ roundness: 1,
249
+ },
246
250
  },
247
251
  user: {
248
252
  hue: 0,
@@ -261,9 +265,7 @@ export function presetAtype<
261
265
  },
262
266
  }),
263
267
  modeSchema: {
264
- color: {
265
- accent: base.modeSchema.color.main,
266
- },
268
+ accent: base.modeSchema.tint,
267
269
  user: {
268
270
  hue: {
269
271
  purpose: 'other',
@@ -285,12 +287,12 @@ export function presetAtype<
285
287
  ${base.mixins.bg.apply({ '--color': $.mode.action.light.bg })}
286
288
  ${base.mixins.fg.apply({ '--color': $.mode.action.light.fg })}
287
289
  ${base.mixins.borderColor.apply({
288
- '--color': $.mode.action.light.borderColor,
290
+ '--color': $.mode.action.light.b.color,
289
291
  })}
290
- border-width: ${$.mode.action.light.borderWidth};
291
- border-style: ${$.mode.action.light.borderStyle};
292
- border-radius: ${$.mode.action.radius};
293
- padding: ${$.mode.action.padding.$root};
292
+ border-width: ${$.mode.action.light.b.width};
293
+ border-style: ${$.mode.action.light.b.style};
294
+ border-radius: ${$.mode.action.rd};
295
+ padding: ${$.mode.action.p.$root};
294
296
  `,
295
297
  }),
296
298
  hover: create('hover', {
@@ -322,7 +324,7 @@ export function presetAtype<
322
324
  ${base.mixins.bgLighter.apply({ '--step': 1 })}
323
325
  ${base.mixins.ring.apply({
324
326
  '--ring': base.functions.ring.compute({
325
- '--color': $.mode.color.main.heavy,
327
+ '--color': $.mode.tint.heavy,
326
328
  '--size': '2px',
327
329
  }),
328
330
  })}
@@ -353,7 +355,7 @@ export function presetAtype<
353
355
  ${base.mixins.bgDesaturated.apply({ '--step': 8 })}
354
356
  ${base.mixins.fgFaded.apply({
355
357
  '--opacity': 0.65,
356
- '--source': $.mode.color.neutral.ink,
358
+ '--source': $.mode.gray.ink,
357
359
  })}
358
360
  }
359
361
  `,
@@ -368,45 +370,32 @@ export function presetAtype<
368
370
  fallback: '2px',
369
371
  },
370
372
  ],
371
- definition: (css, width) =>
372
- css`0 0 0 ${width} ${$.mode.color.main.heavy}`,
373
+ definition: (css, width) => css`0 0 0 ${width} ${$.mode.tint.heavy}`,
373
374
  }),
374
375
  }),
375
376
  });
376
377
 
377
378
  preset.bundleMode('primary', {
378
- color: {
379
- main: preset.$.mode.color.palette[config?.mainColor ?? 'lemon'] as any,
380
- },
379
+ tint: preset.$.mode.color[config?.mainColor ?? 'lemon'] as any,
381
380
  });
382
381
  preset.bundleMode('accent', {
383
- color: {
384
- main: preset.$.mode.color.accent,
385
- },
382
+ tint: preset.$.mode.accent,
386
383
  });
387
384
  preset.bundleMode('success', {
388
- color: {
389
- main: preset.$.mode.color.palette.success,
390
- },
385
+ tint: preset.$.mode.color.success,
391
386
  });
392
387
  preset.bundleMode('attention', {
393
- color: {
394
- main: preset.$.mode.color.palette.attention,
395
- },
388
+ tint: preset.$.mode.color.attention,
396
389
  });
397
390
  preset.bundleMode('neutral', {
398
- color: {
399
- main: preset.$.mode.color.neutral,
400
- },
391
+ tint: preset.$.mode.gray,
401
392
  });
402
393
  preset.bundleMode('user', {
403
394
  user: {
404
395
  hue: `var(${$userColorHue}, 200)`,
405
396
  saturation: `var(${$userColorSaturation}, 1)`,
406
397
  },
407
- color: {
408
- main: preset.$.mode.color.palette.user,
409
- },
398
+ tint: preset.$.mode.color.user,
410
399
  });
411
400
 
412
401
  const allColorNames = new Set<DefaultColorRangeName>([
@@ -417,13 +406,11 @@ export function presetAtype<
417
406
  ]);
418
407
  for (const colorName of allColorNames) {
419
408
  preset.bundleMode(colorName, {
420
- color: {
421
- main: preset.$.mode.color.palette[colorName],
422
- // avoid assigning leek to both main and accent
423
- accent: (colorName === defaultAccent
424
- ? preset.$.mode.color.palette[fallbackAccent]
425
- : preset.$.mode.color.palette[defaultAccent]) as any,
426
- },
409
+ tint: preset.$.mode.color[colorName],
410
+ // avoid assigning leek to both main and accent
411
+ accent: (colorName === defaultAccent
412
+ ? preset.$.mode.color[fallbackAccent]
413
+ : preset.$.mode.color[defaultAccent]) as any,
427
414
  });
428
415
  }
429
416
 
@@ -1,41 +1,41 @@
1
1
  .bgWash {
2
- @apply --mx-bg(var(--m-color-main-wash));
2
+ @apply --mx-bg(var(--m-tint-wash));
3
3
  }
4
4
  .bgLight {
5
- @apply --mx-bg(var(--m-color-main-light));
5
+ @apply --mx-bg(var(--m-tint-light));
6
6
  }
7
7
  .bgMid {
8
- @apply --mx-bg(var(--m-color-main));
8
+ @apply --mx-bg(var(--m-tint));
9
9
  }
10
10
  .bgHeavy {
11
- @apply --mx-bg(var(--m-color-main-heavy));
11
+ @apply --mx-bg(var(--m-tint-heavy));
12
12
  }
13
13
  .bgInk {
14
- @apply --mx-bg(var(--m-color-main-ink));
14
+ @apply --mx-bg(var(--m-tint-ink));
15
15
  }
16
16
 
17
17
  .bgNeutralInk {
18
- @apply --mx-bg(var(--m-color-neutral-ink));
18
+ @apply --mx-bg(var(--m-gray-ink));
19
19
  }
20
20
  .bgNeutralPaper {
21
- @apply --mx-bg(var(--m-color-neutral-paper));
21
+ @apply --mx-bg(var(--m-gray-paper));
22
22
  }
23
23
  .bgNeutralWash {
24
- @apply --mx-bg(var(--m-color-neutral-wash));
24
+ @apply --mx-bg(var(--m-gray-wash));
25
25
  }
26
26
 
27
27
  .rangeLabel {
28
28
  position: absolute;
29
29
  left: 0;
30
30
  top: 0;
31
- @apply --mx-fg(var(--m-color-neutral));
32
- @apply --mx-bg(var(--m-color-neutral-ink));
31
+ @apply --mx-fg(var(--m-gray));
32
+ @apply --mx-bg(var(--m-gray-ink));
33
33
  @apply --mx-bg-faded(50%);
34
34
  font-size: var(--m-prose-ambient-size);
35
35
  line-height: var(--m-prose-ambient-lineHeight);
36
36
  font-weight: var(--m-prose-ambient-weight);
37
- padding: var(--m-space-xs);
38
- border-radius: var(--m-radius-sm);
37
+ padding: var(--m-sp-xs);
38
+ border-radius: var(--m-rd-sm);
39
39
  }
40
40
 
41
41
  .bgLighten1 {
@@ -52,8 +52,8 @@
52
52
  }
53
53
 
54
54
  .bgBetweenMidLight {
55
- @apply --mx-bg(--fn-color-between(var(--m-color-main), var(--m-color-main-light)));
55
+ @apply --mx-bg(--fn-color-between(var(--m-tint), var(--m-tint-light)));
56
56
  }
57
57
  .bgBetweenMidHeavy {
58
- @apply --mx-bg(--fn-color-between(var(--m-color-main), var(--m-color-main-heavy)));
58
+ @apply --mx-bg(--fn-color-between(var(--m-tint), var(--m-tint-heavy)));
59
59
  }
@@ -7,7 +7,7 @@
7
7
  align-items: center;
8
8
  justify-content: flex-start;
9
9
  overflow: clip;
10
- transition: height var(--m-duration) var(--m-easing);
10
+ transition: height var(--m-dur) var(--m-ease);
11
11
 
12
12
  &:empty {
13
13
  height: 0;
@@ -2,5 +2,5 @@
2
2
  font-weight: normal;
3
3
  }
4
4
  .collapse {
5
- padding: var(--m-space-sm);
5
+ padding: var(--m-sp-sm);
6
6
  }
@@ -10,17 +10,17 @@
10
10
  justify-content: center;
11
11
  overflow: hidden;
12
12
 
13
- @apply --mx-bg(var(--m-color-neutral-paper));
13
+ @apply --mx-bg(var(--m-gray-paper));
14
14
 
15
- border-width: var(--m-lineWidth-sm);
15
+ border-width: var(--m-lw-sm);
16
16
  border-style: solid;
17
- border-color: var(--m-color-neutral-ink);
17
+ border-color: var(--m-gray-ink);
18
18
 
19
- border-radius: var(--m-radius-lg);
19
+ border-radius: var(--m-rd-lg);
20
20
 
21
21
  &[data-empty='true'] {
22
22
  border-style: dashed;
23
- @apply --mx-bg(var(--m-color-neutral-light));
23
+ @apply --mx-bg(var(--m-gray-light));
24
24
  }
25
25
  }
26
26
 
@@ -26,20 +26,20 @@
26
26
  gap: 0;
27
27
  }
28
28
  &[data-gap='xs'] {
29
- gap: var(--m-space-xs);
29
+ gap: var(--m-sp-xs);
30
30
  }
31
31
  &[data-gap='sm'] {
32
- gap: var(--m-space-sm);
32
+ gap: var(--m-sp-sm);
33
33
  }
34
34
  &[data-gap='md'],
35
35
  &[data-gap='true'] {
36
- gap: var(--m-space-md);
36
+ gap: var(--m-sp-md);
37
37
  }
38
38
  &[data-gap='lg'] {
39
- gap: var(--m-space-lg);
39
+ gap: var(--m-sp-lg);
40
40
  }
41
41
  &[data-gap='xl'] {
42
- gap: var(--m-space-xl);
42
+ gap: var(--m-sp-xl);
43
43
  }
44
44
 
45
45
  &[data-items='start'] {
@@ -92,20 +92,20 @@
92
92
  --padding: 0;
93
93
  }
94
94
  &[data-p='xs'] {
95
- --padding: var(--m-space-xs);
95
+ --padding: var(--m-sp-xs);
96
96
  }
97
97
  &[data-p='sm'] {
98
- --padding: var(--m-space-sm);
98
+ --padding: var(--m-sp-sm);
99
99
  }
100
100
  &[data-p='md'] {
101
- --padding: var(--m-space-md);
101
+ --padding: var(--m-sp-md);
102
102
  }
103
103
  &[data-p='lg'],
104
104
  &[data-p='true'] {
105
- --padding: var(--m-space-lg);
105
+ --padding: var(--m-sp-lg);
106
106
  }
107
107
  &[data-p='xl'] {
108
- --padding: var(--m-space-xl);
108
+ --padding: var(--m-sp-xl);
109
109
  }
110
110
  padding: var(--padding, 0);
111
111
  &[data-squish='vertical'] {
@@ -119,17 +119,17 @@
119
119
  border-radius: 0;
120
120
  }
121
121
  &[data-rounded='xs'] {
122
- border-radius: var(--m-radius-xs);
122
+ border-radius: var(--m-rd-xs);
123
123
  }
124
124
  &[data-rounded='sm'] {
125
- border-radius: var(--m-radius-sm);
125
+ border-radius: var(--m-rd-sm);
126
126
  }
127
127
  &[data-rounded='md'],
128
128
  &[data-rounded='true'] {
129
- border-radius: var(--m-radius-md);
129
+ border-radius: var(--m-rd-md);
130
130
  }
131
131
  &[data-rounded='lg'] {
132
- border-radius: var(--m-radius-lg);
132
+ border-radius: var(--m-rd-lg);
133
133
  }
134
134
 
135
135
  &[data-w='full'] {
@@ -182,7 +182,7 @@
182
182
  }
183
183
 
184
184
  &[data-border='true'] {
185
- @apply --mx-borderColor(var(--m-surface-ambient-borderColor));
185
+ @apply --mx-borderColor(var(--m-surface-ambient-b-color));
186
186
  }
187
187
 
188
188
  &[data-surface='ambient'],
@@ -190,21 +190,21 @@
190
190
  @apply --mx-bg(var(--m-surface-ambient-bg));
191
191
  @apply --mx-fg(var(--m-surface-ambient-fg));
192
192
  &[data-border='true'] {
193
- @apply --mx-borderColor(var(--m-surface-ambient-borderColor));
193
+ @apply --mx-borderColor(var(--m-surface-ambient-b-color));
194
194
  }
195
195
  }
196
196
  &[data-surface='secondary'] {
197
197
  @apply --mx-bg(var(--m-surface-secondary-bg));
198
198
  @apply --mx-fg(var(--m-surface-secondary-fg));
199
199
  &[data-border='true'] {
200
- @apply --mx-borderColor(var(--m-surface-secondary-borderColor));
200
+ @apply --mx-borderColor(var(--m-surface-secondary-b-color));
201
201
  }
202
202
  }
203
203
  &[data-surface='primary'] {
204
204
  @apply --mx-bg(var(--m-surface-primary-bg));
205
205
  @apply --mx-fg(var(--m-surface-primary-fg));
206
206
  &[data-border='true'] {
207
- @apply --mx-borderColor(var(--m-surface-primary-borderColor));
207
+ @apply --mx-borderColor(var(--m-surface-primary-b-color));
208
208
  }
209
209
  }
210
210
 
@@ -214,7 +214,7 @@
214
214
  }
215
215
  /* reduce specificity so surface styles override */
216
216
  &:where([data-dim='true']) {
217
- @apply --mx-fg(var(--m-color-neutral-ink));
217
+ @apply --mx-fg(var(--m-gray-ink));
218
218
  }
219
219
  &[data-dim='true'] {
220
220
  @apply --mx-fg-lighter(2.5);
@@ -138,7 +138,7 @@ export const Surfaces: Story = {
138
138
  style={{
139
139
  display: 'grid',
140
140
  gridTemplateColumns: 'repeat(2, 1fr)',
141
- gap: 'var(--m-space-lg)',
141
+ gap: 'var(--m-sp-lg)',
142
142
  }}
143
143
  {...args}
144
144
  >
@@ -2,13 +2,13 @@
2
2
  user-select: none;
3
3
  appearance: none;
4
4
  cursor: pointer;
5
- transition: all var(--m-duration) var(--m-easing);
5
+ transition: all var(--m-dur) var(--m-ease);
6
6
 
7
7
  display: flex;
8
8
  flex-direction: row;
9
9
  align-items: center;
10
10
  justify-content: start;
11
- gap: var(--m-space-sm);
11
+ gap: var(--m-sp-sm);
12
12
 
13
13
  position: relative;
14
14
  overflow: visible;
@@ -37,7 +37,7 @@
37
37
  &:focus {
38
38
  --mx-bg-applied: inherit;
39
39
  --mx-bg-ref: --fn-color-heavier(
40
- color-mix(var(--mx-bg-applied), var(--m-color-main-light) 20%),
40
+ color-mix(var(--mx-bg-applied), var(--m-tint-light) 20%),
41
41
  1
42
42
  );
43
43
  }
@@ -45,7 +45,7 @@
45
45
  &[data-emphasis='ghost'],
46
46
  &[data-emphasis='default'] {
47
47
  &[aria-pressed='true'] {
48
- @apply --mx-bg(var(--m-color-main-light));
48
+ @apply --mx-bg(var(--m-tint-light));
49
49
  }
50
50
  }
51
51
 
@@ -53,10 +53,10 @@
53
53
  [data-disable-icon-mode='true']
54
54
  ):not([data-size='wrapper']),
55
55
  &[data-force-icon-mode='true']:not([data-size='wrapper']) {
56
- padding: var(--m-space-md);
56
+ padding: var(--m-sp-md);
57
57
 
58
58
  &[data-size='small'] {
59
- padding: var(--m-space-sm);
59
+ padding: var(--m-sp-sm);
60
60
  }
61
61
 
62
62
  &:not([aria-pressed='true']) {
@@ -115,7 +115,7 @@
115
115
  outline: none;
116
116
  }
117
117
  &:focus-visible {
118
- box-shadow: 0 0 0 4px var(--m-color-main-ink);
118
+ box-shadow: 0 0 0 4px var(--m-tint-ink);
119
119
  }
120
120
  }
121
121
 
@@ -126,13 +126,13 @@
126
126
 
127
127
  .toggleIndicator {
128
128
  width: 0;
129
- transition: width var(--m-duration) var(--m-easing);
129
+ transition: width var(--m-dur) var(--m-ease);
130
130
 
131
131
  &[data-open='true'] {
132
132
  width: --fn-literal(15px);
133
133
  }
134
134
  &[data-open='false'] {
135
- margin-left: calc(-1 * var(--m-space-sm));
135
+ margin-left: calc(-1 * var(--m-sp-sm));
136
136
  }
137
137
  }
138
138
 
@@ -20,22 +20,22 @@
20
20
 
21
21
  .shutterButton {
22
22
  position: absolute;
23
- bottom: var(--m-space-md);
23
+ bottom: var(--m-sp-md);
24
24
  left: 50%;
25
25
  width: calc(48px / var(--m-global-space-density));
26
26
  height: calc(48px / var(--m-global-space-density));
27
27
  cursor: pointer;
28
28
  transform: translateX(-50%);
29
29
  opacity: 80%;
30
- transition: all var(--m-duration) var(--m-easing);
30
+ transition: all var(--m-dur) var(--m-ease);
31
31
 
32
32
  @apply --mx-shadow;
33
33
  --mx-ring-value: --fn-ring(var(--m-action-secondary-bg), 2px);
34
34
  @apply --mx-bg(var(--m-action-secondary-bg));
35
35
  @apply --mx-fg(color-contrast(var(--mx-bg-ref)));
36
36
  @apply --mx-borderColor(var(--mx-fg-ref));
37
- border-width: var(--m-lineWidth);
38
- border-radius: var(--m-action-radius);
37
+ border-width: var(--m-lw);
38
+ border-radius: var(--m-action-rd);
39
39
 
40
40
  &:hover {
41
41
  opacity: 100%;
@@ -48,18 +48,18 @@
48
48
  }
49
49
  &:focus-visible {
50
50
  @apply --mx-bg-lighter(1);
51
- --mx-ring-value: --fn-ring(var(--m-color-main-ink), 4px);
51
+ --mx-ring-value: --fn-ring(var(--m-tint-ink), 4px);
52
52
  }
53
53
  }
54
54
 
55
55
  .swapButton {
56
56
  position: absolute;
57
- bottom: var(--m-space-xs);
58
- left: var(--m-space-xs);
57
+ bottom: var(--m-sp-xs);
58
+ left: var(--m-sp-xs);
59
59
  }
60
60
 
61
61
  .fullscreenButton {
62
62
  position: absolute;
63
- top: var(--m-space-xs);
64
- right: var(--m-space-xs);
63
+ top: var(--m-sp-xs);
64
+ right: var(--m-sp-xs);
65
65
  }