@zazz-ui/core 0.5.1 → 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"
@@ -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.1",
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
  }
@@ -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
  >