@adia-ai/web-components 0.7.3 → 0.7.4

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 (136) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/components/accordion/accordion.css +2 -2
  3. package/components/action-list/action-list.css +2 -2
  4. package/components/agent-artifact/agent-artifact.css +31 -31
  5. package/components/agent-feedback-bar/agent-feedback-bar.css +10 -10
  6. package/components/agent-questions/agent-questions.css +59 -57
  7. package/components/agent-reasoning/agent-reasoning.css +54 -54
  8. package/components/agent-suggestions/agent-suggestions.css +4 -4
  9. package/components/agent-trace/agent-trace.css +53 -53
  10. package/components/alert/alert.css +53 -53
  11. package/components/avatar/avatar.css +27 -27
  12. package/components/badge/badge.css +56 -53
  13. package/components/block/block.css +16 -16
  14. package/components/blockquote/blockquote.css +16 -16
  15. package/components/breadcrumb/breadcrumb.css +23 -23
  16. package/components/button/button.css +99 -100
  17. package/components/calendar-grid/calendar-grid.css +95 -92
  18. package/components/calendar-picker/calendar-picker.css +141 -139
  19. package/components/canvas/canvas.css +12 -12
  20. package/components/card/card.css +83 -83
  21. package/components/chart/chart.css +218 -218
  22. package/components/chart-legend/chart-legend.css +26 -26
  23. package/components/check/check.css +40 -40
  24. package/components/code/code.css +125 -125
  25. package/components/col/col.css +15 -15
  26. package/components/color-picker/color-picker.css +55 -55
  27. package/components/combobox/combobox.css +64 -62
  28. package/components/command/command.css +91 -91
  29. package/components/context-menu/context-menu.css +1 -1
  30. package/components/date-range-picker/date-range-picker.css +59 -59
  31. package/components/datetime-picker/datetime-picker.css +25 -25
  32. package/components/demo-toggle/demo-toggle.css +27 -27
  33. package/components/description-list/description-list.css +18 -18
  34. package/components/divider/divider.css +24 -24
  35. package/components/embed/embed.css +6 -6
  36. package/components/empty-state/empty-state.css +29 -29
  37. package/components/feed/feed.css +12 -12
  38. package/components/field/field.css +28 -28
  39. package/components/field/field.test.js +2 -2
  40. package/components/fields/fields.css +5 -5
  41. package/components/grid/grid.a2ui.json +10 -0
  42. package/components/grid/grid.css +23 -5
  43. package/components/grid/grid.d.ts +4 -0
  44. package/components/grid/grid.yaml +13 -0
  45. package/components/heatmap/heatmap.css +61 -61
  46. package/components/icon/icon.css +12 -12
  47. package/components/image/image.css +14 -14
  48. package/components/inline-edit/inline-edit.css +16 -16
  49. package/components/inline-message/inline-message.css +16 -16
  50. package/components/input/input.css +69 -66
  51. package/components/inspector/inspector.css +6 -6
  52. package/components/integration-card/integration-card.css +41 -41
  53. package/components/integration-card/integration-card.test.js +4 -4
  54. package/components/kbd/kbd.css +47 -40
  55. package/components/link/link.css +12 -12
  56. package/components/list/list.css +8 -8
  57. package/components/list-window/list-window.css +10 -10
  58. package/components/loading-overlay/loading-overlay.css +17 -18
  59. package/components/loading-overlay/loading-overlay.test.js +8 -8
  60. package/components/mark/mark.css +16 -16
  61. package/components/menu/menu.css +9 -9
  62. package/components/modal/modal.class.js +5 -9
  63. package/components/modal/modal.css +43 -43
  64. package/components/nav/nav.css +40 -40
  65. package/components/nav-group/nav-group.css +54 -54
  66. package/components/nav-item/nav-item.css +44 -44
  67. package/components/noodles/noodles.css +31 -31
  68. package/components/number-format/number-format.css +4 -4
  69. package/components/option-card/option-card.css +70 -70
  70. package/components/otp-input/otp-input.css +29 -29
  71. package/components/page/page.a2ui.json +1 -1
  72. package/components/page/page.css +27 -27
  73. package/components/page/page.d.ts +1 -1
  74. package/components/page/page.yaml +1 -1
  75. package/components/pagination/pagination.css +6 -6
  76. package/components/pane/pane.css +57 -57
  77. package/components/password-strength/password-strength.css +32 -32
  78. package/components/pipeline-status/pipeline-status.css +67 -67
  79. package/components/popover/popover.css +11 -11
  80. package/components/preview/preview.css +21 -21
  81. package/components/progress/progress.css +23 -23
  82. package/components/progress-row/progress-row.css +17 -17
  83. package/components/qr-code/qr-code.css +4 -4
  84. package/components/radio/radio.css +39 -39
  85. package/components/range/range.css +58 -55
  86. package/components/rating/rating.css +28 -28
  87. package/components/relative-time/relative-time.css +6 -6
  88. package/components/richtext/richtext.css +133 -133
  89. package/components/row/row.css +19 -19
  90. package/components/search/search.css +5 -5
  91. package/components/segment/segment.css +29 -24
  92. package/components/segmented/segmented.css +30 -25
  93. package/components/select/select.css +95 -93
  94. package/components/skeleton/skeleton.css +14 -14
  95. package/components/skip-nav/skip-nav.css +4 -4
  96. package/components/slider/slider.css +61 -61
  97. package/components/spinner/spinner.css +40 -40
  98. package/components/spinner/spinner.test.js +10 -12
  99. package/components/stack/stack.css +11 -11
  100. package/components/stat/stat.css +27 -27
  101. package/components/step-progress/step-progress.css +20 -20
  102. package/components/stepper/stepper.css +29 -29
  103. package/components/stream/stream.css +12 -12
  104. package/components/swatch/swatch.css +68 -68
  105. package/components/swiper/swiper.class.js +5 -12
  106. package/components/swiper/swiper.css +57 -57
  107. package/components/switch/switch.css +53 -53
  108. package/components/table/table.css +166 -163
  109. package/components/table-toolbar/table-toolbar.css +33 -33
  110. package/components/tabs/tabs.css +54 -51
  111. package/components/tag/tag.css +74 -71
  112. package/components/tag/tag.test.js +14 -14
  113. package/components/tags-input/tags-input.css +51 -49
  114. package/components/text/text.css +44 -44
  115. package/components/textarea/textarea.css +49 -46
  116. package/components/time-picker/time-picker.css +47 -47
  117. package/components/timeline/timeline.css +54 -54
  118. package/components/toast/toast.css +58 -58
  119. package/components/toc/toc.css +28 -28
  120. package/components/toggle-group/toggle-group.css +9 -6
  121. package/components/toggle-scheme/toggle-scheme.css +2 -2
  122. package/components/toolbar/toolbar.css +18 -18
  123. package/components/tooltip/tooltip.css +2 -2
  124. package/components/tour/tour.css +4 -4
  125. package/components/tree/tree.css +37 -37
  126. package/components/upload/upload.css +49 -49
  127. package/dist/host.min.css +1 -0
  128. package/dist/web-components.min.css +1 -1
  129. package/dist/web-components.min.js +2 -2
  130. package/package.json +1 -1
  131. package/styles/foundation/space.css +19 -18
  132. package/styles/host.css +48 -0
  133. package/styles/prose.css +187 -173
  134. package/styles/type/scale.css +6 -0
  135. package/styles/typography.css +10 -5
  136. package/styles/verse.css +122 -0
@@ -2,26 +2,26 @@
2
2
  root. Plain selector outside the @scope works. See
3
3
  docs/BROWSER-COMPAT.md §3a. */
4
4
  rating-ui:hover [data-rating-symbol] {
5
- color: var(--rating-fg-hover, var(--rating-fg-hover-default));
5
+ color: var(--rating-fg-hover);
6
6
  }
7
7
 
8
8
  @scope (rating-ui) {
9
9
  :where(:scope) {
10
10
  /* ── Layout ── */
11
- --rating-gap-default: var(--a-space-1);
12
- --rating-symbol-size-default: var(--a-space-5);
11
+ --rating-gap: var(--a-space-1);
12
+ --rating-symbol-size: var(--a-space-5);
13
13
 
14
14
  /* ── Colors ── */
15
- --rating-fg-empty-default: var(--a-fg-muted);
16
- --rating-fg-filled-default: var(--a-fg-strong);
17
- --rating-fg-hover-default: var(--a-fg-strong);
15
+ --rating-fg-empty: var(--a-fg-muted);
16
+ --rating-fg-filled: var(--a-fg-strong);
17
+ --rating-fg-hover: var(--a-fg-strong);
18
18
 
19
19
  /* ── Interaction ── */
20
- --rating-duration-default: var(--a-duration-fast);
21
- --rating-easing-default: var(--a-easing);
22
- --rating-focus-ring-default: 0 0 0 2px var(--a-focus-ring);
23
- --rating-focus-offset-default: var(--a-space-1);
24
- --rating-focus-radius-default: var(--a-radius-sm);
20
+ --rating-duration: var(--a-duration-fast);
21
+ --rating-easing: var(--a-easing);
22
+ --rating-focus-ring: 0 0 0 2px var(--a-focus-ring);
23
+ --rating-focus-offset: var(--a-space-1);
24
+ --rating-focus-radius: var(--a-radius-sm);
25
25
  }
26
26
 
27
27
  :scope {
@@ -29,7 +29,7 @@ rating-ui:hover [data-rating-symbol] {
29
29
  box-sizing: border-box;
30
30
  display: inline-flex;
31
31
  align-items: center;
32
- gap: var(--rating-gap, var(--rating-gap-default));
32
+ gap: var(--rating-gap);
33
33
  cursor: pointer;
34
34
  user-select: none;
35
35
  line-height: 1;
@@ -46,30 +46,30 @@ rating-ui:hover [data-rating-symbol] {
46
46
 
47
47
  :scope:focus-visible {
48
48
  outline: none;
49
- border-radius: var(--rating-focus-radius, var(--rating-focus-radius-default));
50
- box-shadow: var(--rating-focus-ring, var(--rating-focus-ring-default));
51
- outline-offset: var(--rating-focus-offset, var(--rating-focus-offset-default));
49
+ border-radius: var(--rating-focus-radius);
50
+ box-shadow: var(--rating-focus-ring);
51
+ outline-offset: var(--rating-focus-offset);
52
52
  }
53
53
 
54
54
  [data-rating-symbol] {
55
55
  position: relative;
56
56
  display: inline-block;
57
- width: var(--rating-symbol-size, var(--rating-symbol-size-default));
58
- height: var(--rating-symbol-size, var(--rating-symbol-size-default));
59
- color: var(--rating-fg-empty, var(--rating-fg-empty-default));
60
- transition: color var(--rating-duration, var(--rating-duration-default)) var(--rating-easing, var(--rating-easing-default));
57
+ width: var(--rating-symbol-size);
58
+ height: var(--rating-symbol-size);
59
+ color: var(--rating-fg-empty);
60
+ transition: color var(--rating-duration) var(--rating-easing);
61
61
  }
62
62
 
63
63
  [data-rating-symbol] icon-ui {
64
- --a-icon-size: var(--rating-symbol-size, var(--rating-symbol-size-default));
64
+ --a-icon-size: var(--rating-symbol-size);
65
65
  position: absolute;
66
66
  inset: 0;
67
67
  }
68
68
 
69
69
  [data-rating-symbol-fg] {
70
- color: var(--rating-fg-filled, var(--rating-fg-filled-default));
70
+ color: var(--rating-fg-filled);
71
71
  clip-path: inset(0 100% 0 0);
72
- transition: clip-path var(--rating-duration, var(--rating-duration-default)) var(--rating-easing, var(--rating-easing-default));
72
+ transition: clip-path var(--rating-duration) var(--rating-easing);
73
73
  }
74
74
 
75
75
  [data-rating-symbol][data-fill="half"] [data-rating-symbol-fg] {
@@ -81,15 +81,15 @@ rating-ui:hover [data-rating-symbol] {
81
81
 
82
82
  /* ── Variants override TOKENS only ── */
83
83
  :scope[variant="accent"] {
84
- --rating-fg-filled-default: var(--a-accent-bg);
85
- --rating-fg-hover-default: var(--a-accent-bg);
84
+ --rating-fg-filled: var(--a-accent-bg);
85
+ --rating-fg-hover: var(--a-accent-bg);
86
86
  }
87
87
  :scope[variant="warning"] {
88
- --rating-fg-filled-default: var(--a-warning-bg);
89
- --rating-fg-hover-default: var(--a-warning-bg);
88
+ --rating-fg-filled: var(--a-warning-bg);
89
+ --rating-fg-hover: var(--a-warning-bg);
90
90
  }
91
91
 
92
92
  /* ── Size ── */
93
- :scope[size="sm"] { --rating-symbol-size-default: var(--a-space-4); }
94
- :scope[size="lg"] { --rating-symbol-size-default: var(--a-space-7); }
93
+ :scope[size="sm"] { --rating-symbol-size: var(--a-space-4); }
94
+ :scope[size="lg"] { --rating-symbol-size: var(--a-space-7); }
95
95
  }
@@ -4,9 +4,9 @@
4
4
 
5
5
  @scope (relative-time-ui) {
6
6
  :where(:scope) {
7
- --relative-time-fg-default: var(--a-fg-muted);
8
- --relative-time-font-default: inherit;
9
- --relative-time-size-default: inherit;
7
+ --relative-time-fg: var(--a-fg-muted);
8
+ --relative-time-font: inherit;
9
+ --relative-time-size: inherit;
10
10
  }
11
11
 
12
12
  :scope {
@@ -14,9 +14,9 @@
14
14
  Overridable via the standard size-attr CSS or by setting display
15
15
  directly. */
16
16
  display: inline;
17
- color: var(--relative-time-fg, var(--relative-time-fg-default));
18
- font-family: var(--relative-time-font, var(--relative-time-font-default));
19
- font-size: var(--relative-time-size, var(--relative-time-size-default));
17
+ color: var(--relative-time-fg);
18
+ font-family: var(--relative-time-font);
19
+ font-size: var(--relative-time-size);
20
20
  font-variant-numeric: tabular-nums;
21
21
  }
22
22
  }
@@ -6,76 +6,76 @@
6
6
  :where(:scope) {
7
7
  /* ── Layout ── */
8
8
  /* Optimal reading measure; not on spatial scale (45rem ≈ 720px at 1rem=16px). */
9
- --richtext-max-width-default: 45rem;
10
- --richtext-px-default: var(--a-space-6);
11
- --richtext-py-default: var(--a-space-8);
9
+ --richtext-max-width: 45rem;
10
+ --richtext-px: var(--a-space-6);
11
+ --richtext-py: var(--a-space-8);
12
12
 
13
13
  /* ── Colors ── */
14
- --richtext-bg-default: var(--a-canvas-0);
15
- --richtext-fg-default: var(--a-fg);
16
- --richtext-fg-muted-default: var(--a-fg-muted);
17
- --richtext-fg-subtle-default: var(--a-fg-subtle);
18
- --richtext-code-bg-default: var(--a-canvas-2);
19
- --richtext-border-default: var(--a-border-subtle);
20
- --richtext-link-default: var(--a-accent-bg);
21
- --richtext-link-hover-default: var(--a-accent);
14
+ --richtext-bg: var(--a-canvas-0);
15
+ --richtext-fg: var(--a-fg);
16
+ --richtext-fg-muted: var(--a-fg-muted);
17
+ --richtext-fg-subtle: var(--a-fg-subtle);
18
+ --richtext-code-bg: var(--a-canvas-2);
19
+ --richtext-border: var(--a-border-subtle);
20
+ --richtext-link: var(--a-accent-bg);
21
+ --richtext-link-hover: var(--a-accent);
22
22
 
23
23
  /* ── Typography ── */
24
- --richtext-font-default: var(--a-font-family);
25
- --richtext-font-code-default: var(--a-font-family-code);
26
- --richtext-body-size-default: var(--a-body-size);
27
- --richtext-body-leading-default: var(--a-body-leading);
28
- --richtext-code-size-default: var(--a-ui-sm);
24
+ --richtext-font: var(--a-font-family);
25
+ --richtext-font-code: var(--a-font-family-code);
26
+ --richtext-body-size: var(--a-body-size);
27
+ --richtext-body-leading: var(--a-body-leading);
28
+ --richtext-code-size: var(--a-ui-sm);
29
29
 
30
30
  /* ── Heading typography ── */
31
- --richtext-h1-size-default: var(--a-heading-size);
32
- --richtext-h1-weight-default: var(--a-weight-bold);
33
- --richtext-h1-leading-default: var(--a-heading-leading);
34
- --richtext-h2-size-default: var(--a-section-size);
35
- --richtext-h2-weight-default: var(--a-section-weight);
36
- --richtext-h2-leading-default: var(--a-section-leading);
37
- --richtext-h3-size-default: var(--a-subsection-size);
38
- --richtext-h3-weight-default: var(--a-subsection-weight);
39
- --richtext-h4-weight-default: var(--a-weight-semibold);
31
+ --richtext-h1-size: var(--a-heading-size);
32
+ --richtext-h1-weight: var(--a-weight-bold);
33
+ --richtext-h1-leading: var(--a-heading-leading);
34
+ --richtext-h2-size: var(--a-section-size);
35
+ --richtext-h2-weight: var(--a-section-weight);
36
+ --richtext-h2-leading: var(--a-section-leading);
37
+ --richtext-h3-size: var(--a-subsection-size);
38
+ --richtext-h3-weight: var(--a-subsection-weight);
39
+ --richtext-h4-weight: var(--a-weight-semibold);
40
40
 
41
41
  /* ── Heading rhythm ── */
42
- --richtext-h1-margin-bottom-default: var(--a-space-2);
43
- --richtext-h2-margin-top-default: var(--a-space-8);
44
- --richtext-h2-margin-bottom-default: var(--a-space-3);
45
- --richtext-h2-pad-bottom-default: var(--a-space-2);
46
- --richtext-h3-margin-top-default: var(--a-space-6);
47
- --richtext-h3-margin-bottom-default: var(--a-space-2);
48
- --richtext-h4-margin-top-default: var(--a-space-4);
49
- --richtext-h4-margin-bottom-default: var(--a-space-1);
42
+ --richtext-h1-margin-bottom: var(--a-space-2);
43
+ --richtext-h2-margin-top: var(--a-space-8);
44
+ --richtext-h2-margin-bottom: var(--a-space-3);
45
+ --richtext-h2-pad-bottom: var(--a-space-2);
46
+ --richtext-h3-margin-top: var(--a-space-6);
47
+ --richtext-h3-margin-bottom: var(--a-space-2);
48
+ --richtext-h4-margin-top: var(--a-space-4);
49
+ --richtext-h4-margin-bottom: var(--a-space-1);
50
50
 
51
51
  /* ── Block rhythm ── */
52
- --richtext-p-margin-bottom-default: var(--a-space-3);
53
- --richtext-block-my-default: var(--a-space-3);
52
+ --richtext-p-margin-bottom: var(--a-space-3);
53
+ --richtext-block-my: var(--a-space-3);
54
54
 
55
55
  /* ── Inline code ── */
56
- --richtext-code-radius-default: var(--a-radius-sm);
56
+ --richtext-code-radius: var(--a-radius-sm);
57
57
 
58
58
  /* ── Code block ── */
59
- --richtext-pre-radius-default: var(--a-radius-md);
60
- --richtext-pre-inset-default: var(--a-space-3);
61
- --richtext-pre-my-default: var(--a-space-3);
59
+ --richtext-pre-radius: var(--a-radius-md);
60
+ --richtext-pre-inset: var(--a-space-3);
61
+ --richtext-pre-my: var(--a-space-3);
62
62
 
63
63
  /* ── Lists ── */
64
- --richtext-list-my-default: var(--a-space-2);
65
- --richtext-list-indent-default: var(--a-space-6);
66
- --richtext-li-margin-bottom-default: var(--a-space-1);
64
+ --richtext-list-my: var(--a-space-2);
65
+ --richtext-list-indent: var(--a-space-6);
66
+ --richtext-li-margin-bottom: var(--a-space-1);
67
67
 
68
68
  /* ── Tables ── */
69
- --richtext-table-my-default: var(--a-space-3);
70
- --richtext-th-py-default: var(--a-space-2);
71
- --richtext-th-px-default: var(--a-space-3);
72
- --richtext-th-weight-default: var(--a-weight-semibold);
69
+ --richtext-table-my: var(--a-space-3);
70
+ --richtext-th-py: var(--a-space-2);
71
+ --richtext-th-px: var(--a-space-3);
72
+ --richtext-th-weight: var(--a-weight-semibold);
73
73
 
74
74
  /* ── HR ── */
75
- --richtext-hr-my-default: var(--a-space-6);
75
+ --richtext-hr-my: var(--a-space-6);
76
76
 
77
77
  /* ── Strong ── */
78
- --richtext-strong-weight-default: var(--a-weight-semibold);
78
+ --richtext-strong-weight: var(--a-weight-semibold);
79
79
  }
80
80
 
81
81
  :scope {
@@ -83,9 +83,9 @@
83
83
  display: flex;
84
84
  flex-direction: column;
85
85
  align-items: center;
86
- background: var(--richtext-bg, var(--richtext-bg-default));
87
- color: var(--richtext-fg, var(--richtext-fg-default));
88
- font-family: var(--richtext-font, var(--richtext-font-default));
86
+ background: var(--richtext-bg);
87
+ color: var(--richtext-fg);
88
+ font-family: var(--richtext-font);
89
89
  overflow-y: auto;
90
90
  }
91
91
 
@@ -94,56 +94,56 @@
94
94
  [data-richtext-body] {
95
95
  box-sizing: border-box;
96
96
  width: 100%;
97
- max-width: var(--richtext-max-width, var(--richtext-max-width-default));
98
- padding: var(--richtext-py, var(--richtext-py-default)) var(--richtext-px, var(--richtext-px-default));
97
+ max-width: var(--richtext-max-width);
98
+ padding: var(--richtext-py) var(--richtext-px);
99
99
  }
100
100
 
101
101
  /* ── Headings ── */
102
102
 
103
103
  [data-richtext-body] h1 {
104
- font-size: var(--richtext-h1-size, var(--richtext-h1-size-default));
105
- font-weight: var(--richtext-h1-weight, var(--richtext-h1-weight-default));
106
- line-height: var(--richtext-h1-leading, var(--richtext-h1-leading-default));
107
- margin: 0 0 var(--richtext-h1-margin-bottom, var(--richtext-h1-margin-bottom-default));
104
+ font-size: var(--richtext-h1-size);
105
+ font-weight: var(--richtext-h1-weight);
106
+ line-height: var(--richtext-h1-leading);
107
+ margin: 0 0 var(--richtext-h1-margin-bottom);
108
108
  }
109
109
 
110
110
  [data-richtext-body] h2 {
111
- font-size: var(--richtext-h2-size, var(--richtext-h2-size-default));
112
- font-weight: var(--richtext-h2-weight, var(--richtext-h2-weight-default));
113
- line-height: var(--richtext-h2-leading, var(--richtext-h2-leading-default));
114
- margin: var(--richtext-h2-margin-top, var(--richtext-h2-margin-top-default)) 0 var(--richtext-h2-margin-bottom, var(--richtext-h2-margin-bottom-default));
115
- padding-bottom: var(--richtext-h2-pad-bottom, var(--richtext-h2-pad-bottom-default));
116
- border-bottom: 1px solid var(--richtext-border, var(--richtext-border-default));
111
+ font-size: var(--richtext-h2-size);
112
+ font-weight: var(--richtext-h2-weight);
113
+ line-height: var(--richtext-h2-leading);
114
+ margin: var(--richtext-h2-margin-top) 0 var(--richtext-h2-margin-bottom);
115
+ padding-bottom: var(--richtext-h2-pad-bottom);
116
+ border-bottom: 1px solid var(--richtext-border);
117
117
  }
118
118
 
119
119
  [data-richtext-body] h3 {
120
- font-size: var(--richtext-h3-size, var(--richtext-h3-size-default));
121
- font-weight: var(--richtext-h3-weight, var(--richtext-h3-weight-default));
122
- margin: var(--richtext-h3-margin-top, var(--richtext-h3-margin-top-default)) 0 var(--richtext-h3-margin-bottom, var(--richtext-h3-margin-bottom-default));
120
+ font-size: var(--richtext-h3-size);
121
+ font-weight: var(--richtext-h3-weight);
122
+ margin: var(--richtext-h3-margin-top) 0 var(--richtext-h3-margin-bottom);
123
123
  }
124
124
 
125
125
  [data-richtext-body] h4 {
126
- font-size: var(--richtext-body-size, var(--richtext-body-size-default));
127
- font-weight: var(--richtext-h4-weight, var(--richtext-h4-weight-default));
128
- margin: var(--richtext-h4-margin-top, var(--richtext-h4-margin-top-default)) 0 var(--richtext-h4-margin-bottom, var(--richtext-h4-margin-bottom-default));
126
+ font-size: var(--richtext-body-size);
127
+ font-weight: var(--richtext-h4-weight);
128
+ margin: var(--richtext-h4-margin-top) 0 var(--richtext-h4-margin-bottom);
129
129
  }
130
130
 
131
131
  [data-richtext-body] h5 {
132
- font-size: var(--richtext-body-size, var(--richtext-body-size-default));
133
- font-weight: var(--richtext-h4-weight, var(--richtext-h4-weight-default));
134
- color: var(--richtext-fg-muted, var(--richtext-fg-muted-default));
132
+ font-size: var(--richtext-body-size);
133
+ font-weight: var(--richtext-h4-weight);
134
+ color: var(--richtext-fg-muted);
135
135
  text-transform: uppercase;
136
136
  letter-spacing: 0.04em;
137
- margin: var(--richtext-h4-margin-top, var(--richtext-h4-margin-top-default)) 0 var(--richtext-h4-margin-bottom, var(--richtext-h4-margin-bottom-default));
137
+ margin: var(--richtext-h4-margin-top) 0 var(--richtext-h4-margin-bottom);
138
138
  }
139
139
 
140
140
  [data-richtext-body] h6 {
141
- font-size: var(--richtext-code-size, var(--richtext-code-size-default));
142
- font-weight: var(--richtext-h4-weight, var(--richtext-h4-weight-default));
143
- color: var(--richtext-fg-muted, var(--richtext-fg-muted-default));
141
+ font-size: var(--richtext-code-size);
142
+ font-weight: var(--richtext-h4-weight);
143
+ color: var(--richtext-fg-muted);
144
144
  text-transform: uppercase;
145
145
  letter-spacing: 0.06em;
146
- margin: var(--richtext-h4-margin-top, var(--richtext-h4-margin-top-default)) 0 var(--richtext-h4-margin-bottom, var(--richtext-h4-margin-bottom-default));
146
+ margin: var(--richtext-h4-margin-top) 0 var(--richtext-h4-margin-bottom);
147
147
  }
148
148
 
149
149
  /* First-element rhythm reset — first heading shouldn't push content
@@ -154,35 +154,35 @@
154
154
  /* ── Body text ── */
155
155
 
156
156
  [data-richtext-body] p {
157
- font-size: var(--richtext-body-size, var(--richtext-body-size-default));
158
- line-height: var(--richtext-body-leading, var(--richtext-body-leading-default));
159
- margin: 0 0 var(--richtext-p-margin-bottom, var(--richtext-p-margin-bottom-default));
157
+ font-size: var(--richtext-body-size);
158
+ line-height: var(--richtext-body-leading);
159
+ margin: 0 0 var(--richtext-p-margin-bottom);
160
160
  }
161
161
 
162
162
  [data-richtext-body] h2 + p,
163
163
  [data-richtext-body] h3 + p {
164
- color: var(--richtext-fg-subtle, var(--richtext-fg-subtle-default));
164
+ color: var(--richtext-fg-subtle);
165
165
  }
166
166
 
167
167
  /* ── Code ── */
168
168
 
169
169
  [data-richtext-body] code {
170
- background: var(--richtext-code-bg, var(--richtext-code-bg-default));
170
+ background: var(--richtext-code-bg);
171
171
  padding: 0.1em 0.35em;
172
- border-radius: var(--richtext-code-radius, var(--richtext-code-radius-default));
173
- font-family: var(--richtext-font-code, var(--richtext-font-code-default));
172
+ border-radius: var(--richtext-code-radius);
173
+ font-family: var(--richtext-font-code);
174
174
  font-size: 0.875em;
175
175
  }
176
176
 
177
177
  [data-richtext-body] pre {
178
- background: var(--richtext-code-bg, var(--richtext-code-bg-default));
179
- border: 1px solid var(--richtext-border, var(--richtext-border-default));
180
- border-radius: var(--richtext-pre-radius, var(--richtext-pre-radius-default));
181
- padding: var(--richtext-pre-inset, var(--richtext-pre-inset-default));
178
+ background: var(--richtext-code-bg);
179
+ border: 1px solid var(--richtext-border);
180
+ border-radius: var(--richtext-pre-radius);
181
+ padding: var(--richtext-pre-inset);
182
182
  overflow-x: auto;
183
- font-size: var(--richtext-code-size, var(--richtext-code-size-default));
183
+ font-size: var(--richtext-code-size);
184
184
  line-height: 1.5;
185
- margin: var(--richtext-pre-my, var(--richtext-pre-my-default)) 0;
185
+ margin: var(--richtext-pre-my) 0;
186
186
  }
187
187
 
188
188
  [data-richtext-body] pre code {
@@ -195,12 +195,12 @@
195
195
 
196
196
  [data-richtext-body] ul,
197
197
  [data-richtext-body] ol {
198
- margin: var(--richtext-list-my, var(--richtext-list-my-default)) 0;
199
- padding-left: var(--richtext-list-indent, var(--richtext-list-indent-default));
198
+ margin: var(--richtext-list-my) 0;
199
+ padding-left: var(--richtext-list-indent);
200
200
  }
201
201
 
202
202
  [data-richtext-body] li {
203
- margin-bottom: var(--richtext-li-margin-bottom, var(--richtext-li-margin-bottom-default));
203
+ margin-bottom: var(--richtext-li-margin-bottom);
204
204
  }
205
205
 
206
206
  /* Nested lists — collapse the vertical block margin so children
@@ -212,49 +212,49 @@
212
212
 
213
213
  /* ── Definition lists ── */
214
214
  [data-richtext-body] dl {
215
- margin: var(--richtext-list-my, var(--richtext-list-my-default)) 0;
215
+ margin: var(--richtext-list-my) 0;
216
216
  }
217
217
  [data-richtext-body] dt {
218
- font-weight: var(--richtext-strong-weight, var(--richtext-strong-weight-default));
219
- color: var(--richtext-fg, var(--richtext-fg-default));
218
+ font-weight: var(--richtext-strong-weight);
219
+ color: var(--richtext-fg);
220
220
  margin-top: var(--a-space-2);
221
221
  }
222
222
  [data-richtext-body] dd {
223
- margin: 0 0 var(--richtext-li-margin-bottom, var(--richtext-li-margin-bottom-default)) var(--richtext-list-indent, var(--richtext-list-indent-default));
224
- color: var(--richtext-fg-muted, var(--richtext-fg-muted-default));
223
+ margin: 0 0 var(--richtext-li-margin-bottom) var(--richtext-list-indent);
224
+ color: var(--richtext-fg-muted);
225
225
  }
226
226
 
227
227
  /* ── Blockquote ── */
228
228
  [data-richtext-body] blockquote {
229
- margin: var(--richtext-block-my, var(--richtext-block-my-default)) 0;
229
+ margin: var(--richtext-block-my) 0;
230
230
  padding: var(--a-space-1) var(--a-space-4);
231
- border-inline-start: 3px solid var(--richtext-border, var(--richtext-border-default));
232
- color: var(--richtext-fg-muted, var(--richtext-fg-muted-default));
231
+ border-inline-start: 3px solid var(--richtext-border);
232
+ color: var(--richtext-fg-muted);
233
233
  font-style: italic;
234
234
  }
235
235
  [data-richtext-body] blockquote > :last-child { margin-bottom: 0; }
236
236
 
237
237
  /* ── Inline emphasis & semantic glyphs ── */
238
238
  [data-richtext-body] mark {
239
- background: var(--a-warning-muted, var(--richtext-code-bg, var(--richtext-code-bg-default)));
239
+ background: var(--a-warning-muted, var(--richtext-code-bg));
240
240
  color: inherit;
241
241
  padding: 0 0.2em;
242
- border-radius: var(--richtext-code-radius, var(--richtext-code-radius-default));
242
+ border-radius: var(--richtext-code-radius);
243
243
  }
244
244
  [data-richtext-body] del,
245
245
  [data-richtext-body] s {
246
- color: var(--richtext-fg-muted, var(--richtext-fg-muted-default));
246
+ color: var(--richtext-fg-muted);
247
247
  text-decoration: line-through;
248
248
  }
249
249
  [data-richtext-body] kbd {
250
- font-family: var(--richtext-font-code, var(--richtext-font-code-default));
250
+ font-family: var(--richtext-font-code);
251
251
  font-size: 0.85em;
252
- background: var(--richtext-code-bg, var(--richtext-code-bg-default));
253
- border: 1px solid var(--richtext-border, var(--richtext-border-default));
252
+ background: var(--richtext-code-bg);
253
+ border: 1px solid var(--richtext-border);
254
254
  border-bottom-width: 2px;
255
- border-radius: var(--richtext-code-radius, var(--richtext-code-radius-default));
255
+ border-radius: var(--richtext-code-radius);
256
256
  padding: 0.05em 0.4em;
257
- box-shadow: inset 0 -1px 0 var(--richtext-border, var(--richtext-border-default));
257
+ box-shadow: inset 0 -1px 0 var(--richtext-border);
258
258
  white-space: nowrap;
259
259
  }
260
260
  [data-richtext-body] sup,
@@ -274,39 +274,39 @@
274
274
  max-width: 100%;
275
275
  height: auto;
276
276
  display: block;
277
- margin: var(--richtext-block-my, var(--richtext-block-my-default)) auto;
278
- border-radius: var(--richtext-pre-radius, var(--richtext-pre-radius-default));
277
+ margin: var(--richtext-block-my) auto;
278
+ border-radius: var(--richtext-pre-radius);
279
279
  }
280
280
  [data-richtext-body] figure {
281
- margin: var(--richtext-block-my, var(--richtext-block-my-default)) 0;
281
+ margin: var(--richtext-block-my) 0;
282
282
  }
283
283
  [data-richtext-body] figcaption {
284
- font-size: var(--richtext-code-size, var(--richtext-code-size-default));
285
- color: var(--richtext-fg-muted, var(--richtext-fg-muted-default));
284
+ font-size: var(--richtext-code-size);
285
+ color: var(--richtext-fg-muted);
286
286
  text-align: center;
287
287
  margin-top: var(--a-space-1);
288
288
  }
289
289
 
290
290
  /* ── Disclosure ── */
291
291
  [data-richtext-body] details {
292
- margin: var(--richtext-block-my, var(--richtext-block-my-default)) 0;
293
- border: 1px solid var(--richtext-border, var(--richtext-border-default));
294
- border-radius: var(--richtext-pre-radius, var(--richtext-pre-radius-default));
292
+ margin: var(--richtext-block-my) 0;
293
+ border: 1px solid var(--richtext-border);
294
+ border-radius: var(--richtext-pre-radius);
295
295
  padding: var(--a-space-3) var(--a-space-4);
296
296
  }
297
297
  [data-richtext-body] details[open] {
298
- background: var(--richtext-code-bg, var(--richtext-code-bg-default));
298
+ background: var(--richtext-code-bg);
299
299
  }
300
300
  [data-richtext-body] summary {
301
301
  cursor: pointer;
302
- font-weight: var(--richtext-strong-weight, var(--richtext-strong-weight-default));
302
+ font-weight: var(--richtext-strong-weight);
303
303
  margin: calc(-1 * var(--a-space-3)) calc(-1 * var(--a-space-4));
304
304
  padding: var(--a-space-3) var(--a-space-4);
305
305
  list-style-position: inside;
306
306
  }
307
307
  [data-richtext-body] details[open] summary {
308
308
  margin-bottom: var(--a-space-2);
309
- border-bottom: 1px solid var(--richtext-border, var(--richtext-border-default));
309
+ border-bottom: 1px solid var(--richtext-border);
310
310
  }
311
311
 
312
312
  /* ── Tables ── */
@@ -314,43 +314,43 @@
314
314
  [data-richtext-body] table {
315
315
  width: 100%;
316
316
  border-collapse: collapse;
317
- margin: var(--richtext-table-my, var(--richtext-table-my-default)) 0;
318
- font-size: var(--richtext-body-size, var(--richtext-body-size-default));
317
+ margin: var(--richtext-table-my) 0;
318
+ font-size: var(--richtext-body-size);
319
319
  }
320
320
 
321
321
  [data-richtext-body] th,
322
322
  [data-richtext-body] td {
323
323
  text-align: left;
324
- padding: var(--richtext-th-py, var(--richtext-th-py-default)) var(--richtext-th-px, var(--richtext-th-px-default));
325
- border-bottom: 1px solid var(--richtext-border, var(--richtext-border-default));
324
+ padding: var(--richtext-th-py) var(--richtext-th-px);
325
+ border-bottom: 1px solid var(--richtext-border);
326
326
  }
327
327
 
328
328
  [data-richtext-body] th {
329
- font-weight: var(--richtext-th-weight, var(--richtext-th-weight-default));
330
- color: var(--richtext-fg-muted, var(--richtext-fg-muted-default));
331
- font-size: var(--richtext-code-size, var(--richtext-code-size-default));
329
+ font-weight: var(--richtext-th-weight);
330
+ color: var(--richtext-fg-muted);
331
+ font-size: var(--richtext-code-size);
332
332
  }
333
333
 
334
334
  /* ── Misc ── */
335
335
 
336
336
  [data-richtext-body] hr {
337
337
  border: none;
338
- border-top: 1px solid var(--richtext-border, var(--richtext-border-default));
339
- margin: var(--richtext-hr-my, var(--richtext-hr-my-default)) 0;
338
+ border-top: 1px solid var(--richtext-border);
339
+ margin: var(--richtext-hr-my) 0;
340
340
  }
341
341
 
342
- [data-richtext-body] strong { font-weight: var(--richtext-strong-weight, var(--richtext-strong-weight-default)); }
342
+ [data-richtext-body] strong { font-weight: var(--richtext-strong-weight); }
343
343
  [data-richtext-body] em { font-style: italic; }
344
344
 
345
345
  [data-richtext-body] a {
346
- color: var(--richtext-link, var(--richtext-link-default));
346
+ color: var(--richtext-link);
347
347
  text-decoration: underline;
348
348
  text-underline-offset: 2px;
349
349
  transition: color var(--a-duration-fast) var(--a-easing);
350
350
  }
351
351
 
352
352
  [data-richtext-body] a:hover {
353
- color: var(--richtext-link-hover, var(--richtext-link-hover-default));
353
+ color: var(--richtext-link-hover);
354
354
  }
355
355
 
356
356
  [data-richtext-body] a:focus-visible {
@@ -359,5 +359,5 @@
359
359
  border-radius: var(--a-radius-sm);
360
360
  }
361
361
 
362
- [data-richtext-body] small { font-size: var(--richtext-code-size, var(--richtext-code-size-default)); color: var(--richtext-fg-muted, var(--richtext-fg-muted-default)); }
362
+ [data-richtext-body] small { font-size: var(--richtext-code-size); color: var(--richtext-fg-muted); }
363
363
  }
@@ -5,19 +5,19 @@
5
5
  ambient `--a-gap` (base `--a-gap-md`). Reading
6
6
  `var(--a-gap-self, var(--a-gap))` picks up `<row-ui gap="…">` on
7
7
  this element, else falls through to the inherited ambient. */
8
- --row-gap-default: var(--a-gap-self, var(--a-gap));
9
- --row-justify-default: flex-start;
10
- --row-align-default: center;
11
- --row-drag-bg-active-default: var(--a-accent-muted);
8
+ --row-gap: var(--a-gap-self, var(--a-gap));
9
+ --row-justify: flex-start;
10
+ --row-align: center;
11
+ --row-drag-bg-active: var(--a-accent-muted);
12
12
  }
13
13
 
14
14
  :scope {
15
15
  box-sizing: border-box;
16
16
  display: flex;
17
17
  flex-direction: row;
18
- gap: var(--row-gap, var(--row-gap-default));
19
- justify-content: var(--row-justify, var(--row-justify-default));
20
- align-items: var(--row-align, var(--row-align-default));
18
+ gap: var(--row-gap);
19
+ justify-content: var(--row-justify);
20
+ align-items: var(--row-align);
21
21
  /* Universal [padding] / [margin] opt-in — see tokens.css for scale. */
22
22
  padding: var(--a-padding, 0);
23
23
  margin: var(--a-margin, 0);
@@ -33,23 +33,23 @@
33
33
  :scope[draggable]:active,
34
34
  :scope[draggable][data-draggable-dragging] {
35
35
  cursor: grabbing;
36
- background: var(--row-drag-bg-active, var(--row-drag-bg-active-default));
36
+ background: var(--row-drag-bg-active);
37
37
  }
38
38
 
39
39
  /* Justify */
40
- :scope[justify="start"] { --row-justify-default: flex-start; }
41
- :scope[justify="center"] { --row-justify-default: center; }
42
- :scope[justify="end"] { --row-justify-default: flex-end; }
43
- :scope[justify="between"] { --row-justify-default: space-between; }
44
- :scope[justify="space-between"] { --row-justify-default: space-between; }
45
- :scope[justify="space-around"] { --row-justify-default: space-around; }
40
+ :scope[justify="start"] { --row-justify: flex-start; }
41
+ :scope[justify="center"] { --row-justify: center; }
42
+ :scope[justify="end"] { --row-justify: flex-end; }
43
+ :scope[justify="between"] { --row-justify: space-between; }
44
+ :scope[justify="space-between"] { --row-justify: space-between; }
45
+ :scope[justify="space-around"] { --row-justify: space-around; }
46
46
 
47
47
  /* Align */
48
- :scope[align="start"] { --row-align-default: flex-start; }
49
- :scope[align="center"] { --row-align-default: center; }
50
- :scope[align="end"] { --row-align-default: flex-end; }
51
- :scope[align="stretch"] { --row-align-default: stretch; }
52
- :scope[align="baseline"] { --row-align-default: baseline; }
48
+ :scope[align="start"] { --row-align: flex-start; }
49
+ :scope[align="center"] { --row-align: center; }
50
+ :scope[align="end"] { --row-align: flex-end; }
51
+ :scope[align="stretch"] { --row-align: stretch; }
52
+ :scope[align="baseline"] { --row-align: baseline; }
53
53
 
54
54
  /* Wrap */
55
55
  :scope[wrap] { flex-wrap: wrap; }