@zazz-ui/core 0.5.0 → 0.5.2

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.
@@ -115978,10 +115978,6 @@
115978
115978
  "name": "--ui-prose-img-radius",
115979
115979
  "description": "Primitive hook: the public override surface."
115980
115980
  },
115981
- {
115982
- "name": "--ui-prose-link-text",
115983
- "description": "Primitive hook: the public override surface."
115984
- },
115985
115981
  {
115986
115982
  "name": "--ui-radio-bg",
115987
115983
  "description": "Primitive hook: the public override surface."
@@ -271,6 +271,9 @@
271
271
  {
272
272
  "name": "text-lg"
273
273
  },
274
+ {
275
+ "name": "text-link"
276
+ },
274
277
  {
275
278
  "name": "text-md"
276
279
  },
@@ -232,6 +232,10 @@
232
232
  "primitive": null,
233
233
  "file": "base/_typography.css"
234
234
  },
235
+ "text-link": {
236
+ "primitive": null,
237
+ "file": "base/_typography.css"
238
+ },
235
239
  "text-md": {
236
240
  "primitive": null,
237
241
  "file": "base/_typography.css"
@@ -1400,7 +1404,7 @@
1400
1404
  "file": "primitives/callout/callout.css"
1401
1405
  },
1402
1406
  "--ui-card-bg": {
1403
- "value": "var(--color-card)",
1407
+ "value": "transparent",
1404
1408
  "file": "primitives/card/card.css"
1405
1409
  },
1406
1410
  "--ui-card-border-color": {
@@ -2671,10 +2675,6 @@
2671
2675
  "value": "var(--radius-md)",
2672
2676
  "file": "base/_typography.css"
2673
2677
  },
2674
- "--ui-prose-link-text": {
2675
- "value": "inherit",
2676
- "file": "base/_typography.css"
2677
- },
2678
2678
  "--ui-radio-bg": {
2679
2679
  "value": "var(--ui-field-bg)",
2680
2680
  "file": "primitives/radio/radio.css"
@@ -4157,6 +4157,12 @@
4157
4157
  "light": "underline",
4158
4158
  "dark": "underline"
4159
4159
  },
4160
+ "--decoration-offset": {
4161
+ "value": "1px",
4162
+ "file": "base/_variables.css",
4163
+ "light": "1px",
4164
+ "dark": "1px"
4165
+ },
4160
4166
  "--decoration-style": {
4161
4167
  "value": "solid",
4162
4168
  "file": "base/_variables.css",
@@ -58,6 +58,7 @@
58
58
  "text-h5",
59
59
  "text-h6",
60
60
  "text-lg",
61
+ "text-link",
61
62
  "text-md",
62
63
  "text-sm",
63
64
  "text-xl",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zazz-ui/core",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "Zazz Design Framework — a zero-build, semantic-token CSS + vanilla JS UI kit built on modern web standards.",
5
5
  "keywords": [
6
6
  "cascade-layers",
@@ -20,7 +20,6 @@
20
20
  --ui-prose-figcaption-gap: 0px;
21
21
  --ui-prose-img-radius: var(--radius-md);
22
22
  --ui-prose-img-border: none;
23
- --ui-prose-link-text: inherit;
24
23
  }
25
24
  }
26
25
 
@@ -559,22 +558,15 @@
559
558
  font-variation-settings: var(--font-settings-body);
560
559
  }
561
560
 
562
- :where(p a[href]:not([data-ui~="button"])) {
563
- color: var(--ui-prose-link-text);
564
- text-decoration-line: var(--decoration-line);
565
- text-decoration-style: var(--decoration-style);
566
- text-decoration-color: var(--decoration-color);
567
- text-underline-offset: var(--decoration-offset);
561
+ :where([data-ui~="text-link"]) {
562
+ text-decoration: underline;
568
563
  text-decoration-thickness: var(--decoration-thickness);
569
- transition: var(--default-transition);
570
- }
571
-
572
- :where(p a[href]:not([data-ui~="button"]):hover) {
573
- --decoration-offset: calc(var(--decoration-thickness) * 2);
564
+ text-underline-offset: var(--decoration-offset);
565
+ transition: text-decoration-color var(--default-transition-duration)
566
+ var(--default-transition-timing-function);
574
567
  }
575
568
 
576
- :where(p a[href]:not([data-ui~="button"]):active) {
577
- --decoration-offset: inherit;
578
- /* back to the base offset while pressed */
569
+ :where([data-ui~="text-link"]:hover) {
570
+ text-decoration-color: oklch(from currentColor l c h / 0.3);
579
571
  }
580
572
  }
@@ -33,7 +33,8 @@
33
33
  Joins adjacent controls (buttons, and any child it wraps) into a single
34
34
  segmented unit. Children keep their own --ui-button-rounded, so the outer corners
35
35
  follow the buttons' size preset automatically; only the *inner* corners are
36
- squared off and the doubled border is collapsed with a -1px overlap.
36
+ squared off and the doubled border is collapsed by dropping
37
+ each later control's leading border (no overlap).
37
38
  =========================================================================== */
38
39
 
39
40
  :where(ui-button-group, [data-ui~="button-group"]) {
@@ -56,8 +57,8 @@
56
57
  position: relative;
57
58
  }
58
59
 
59
- /* the focused/hovered/pressed control floats above its neighbours so its
60
- border and box-shadow ring paint over the overlapped edge */
60
+ /* the focused/hovered/pressed control floats above its neighbors so its
61
+ focus ring paints over its neighbors */
61
62
  :where(ui-button-group, [data-ui~="button-group"])
62
63
  > *:hover:not(:disabled, [aria-disabled="true"]),
63
64
  :where(ui-button-group, [data-ui~="button-group"]) > *:focus-visible,
@@ -84,8 +85,8 @@
84
85
 
85
86
  :where(ui-button-group, [data-ui~="button-group"]):not([data-button-group-orientation="vertical"])
86
87
  > :not(:first-child) {
87
- /* pull onto the previous control's border so the seam is one line, not two */
88
- margin-inline-start: -1px;
88
+ /* drop the leading border so neighbors share one seam, not two */
89
+ border-inline-start-width: 0;
89
90
  border-start-start-radius: 0;
90
91
  border-end-start-radius: 0;
91
92
  }
@@ -115,7 +116,8 @@
115
116
  [data-ui~="button-group"][data-button-group-orientation="vertical"]
116
117
  )
117
118
  > :not(:first-child) {
118
- margin-block-start: -1px;
119
+ /* drop the leading border so neighbors share one seam, not two */
120
+ border-block-start-width: 0;
119
121
  border-start-start-radius: 0;
120
122
  border-start-end-radius: 0;
121
123
  }
@@ -18,7 +18,8 @@
18
18
 
19
19
  @layer variables {
20
20
  :root {
21
- --ui-card-bg: var(--color-card);
21
+ /* a bare card has no surface; the outline and floating variants paint --color-card */
22
+ --ui-card-bg: transparent;
22
23
  --ui-card-text: var(--color-card-foreground);
23
24
  --ui-card-rounded: var(--radius-lg);
24
25
  --ui-card-shadow: none;
@@ -101,7 +102,6 @@
101
102
 
102
103
  :where([data-ui~="card"]:not([data-card-variant])) {
103
104
  --_card-rounded: 0;
104
- --_card-bg: transparent;
105
105
  }
106
106
 
107
107
  :where([data-ui~="card"][data-card-variant="outline"]) {
@@ -3,6 +3,7 @@
3
3
  style="
4
4
  --py: 8;
5
5
  --mx: auto;
6
+ --w: 100%;
6
7
  --max-w: var(--article-lg);
7
8
  "
8
9
  >
@@ -34,7 +34,8 @@
34
34
  (radios sharing a `name`) or a multi-select set (checkboxes). Children keep
35
35
  their own --ui-toggle-rounded, so the outer corners follow the toggles' size
36
36
  preset automatically; only the *inner* corners are squared off and the
37
- doubled border is collapsed with a -1px overlap.
37
+ doubled border is collapsed by dropping
38
+ each later control's leading border (no overlap).
38
39
  =========================================================================== */
39
40
 
40
41
  :where(ui-toggle-group, [data-ui~="toggle-group"]) {
@@ -57,8 +58,8 @@
57
58
  position: relative;
58
59
  }
59
60
 
60
- /* the focused/hovered/checked toggle floats above its neighbours so its
61
- border and box-shadow ring paint over the overlapped edge */
61
+ /* the focused/hovered/checked toggle floats above its neighbors so its
62
+ focus ring paints over its neighbors */
62
63
  :where(ui-toggle-group, [data-ui~="toggle-group"]) > *:hover:not(:has(> input:disabled)),
63
64
  :where(ui-toggle-group, [data-ui~="toggle-group"]) > *:focus-within,
64
65
  :where(ui-toggle-group, [data-ui~="toggle-group"]) > *:has(> input:checked) {
@@ -83,8 +84,8 @@
83
84
 
84
85
  :where(ui-toggle-group, [data-ui~="toggle-group"]):not([data-toggle-group-orientation="vertical"])
85
86
  > :not(:first-child) {
86
- /* pull onto the previous control's border so the seam is one line, not two */
87
- margin-inline-start: -1px;
87
+ /* drop the leading border so neighbors share one seam, not two */
88
+ border-inline-start-width: 0;
88
89
  border-start-start-radius: 0;
89
90
  border-end-start-radius: 0;
90
91
  }
@@ -114,7 +115,8 @@
114
115
  [data-ui~="toggle-group"][data-toggle-group-orientation="vertical"]
115
116
  )
116
117
  > :not(:first-child) {
117
- margin-block-start: -1px;
118
+ /* drop the leading border so neighbors share one seam, not two */
119
+ border-block-start-width: 0;
118
120
  border-start-start-radius: 0;
119
121
  border-start-end-radius: 0;
120
122
  }