@efolusi/meridian 1.13.0 → 1.14.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.
- package/components.css +1 -1
- package/display/Link.js +6 -0
- package/package.json +1 -1
- package/tailwind.preset.cjs +1 -0
- package/tokens/colors.css +2 -2
- package/tokens.json +4 -0
package/components.css
CHANGED
|
@@ -735,7 +735,7 @@ a.ef-sourcecard:focus-visible{outline:none;box-shadow:var(--focus-ring)}
|
|
|
735
735
|
.ef-kbd{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:19px;padding:0 5px;border:1px solid var(--border-strong);border-bottom-width:2px;border-radius:var(--radius-sm);background:var(--surface-card);font-family:var(--font-mono);font-size:11px;color:var(--text-secondary);line-height:1}
|
|
736
736
|
/* components/display/Link.jsx */
|
|
737
737
|
.ef-link{display:inline-flex;align-items:center;gap:4px;color:var(--text-link);text-decoration:none;font-weight:var(--weight-medium);cursor:pointer;border-radius:var(--radius-sm);transition:color var(--dur-fast) var(--ease-out)}
|
|
738
|
-
.ef-link:hover{color:var(--
|
|
738
|
+
.ef-link:hover{color:var(--text-link-hover);text-decoration:underline;text-underline-offset:3px}
|
|
739
739
|
.ef-link:focus-visible{outline:none;box-shadow:var(--focus-ring)}
|
|
740
740
|
.ef-link--quiet{color:var(--text-secondary)}
|
|
741
741
|
.ef-link--quiet:hover{color:var(--text-primary)}
|
package/display/Link.js
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { Icon } from "../icons/Icon.js";
|
|
5
|
+
|
|
6
|
+
// Hover deepens the link's own hue. It used to jump to --accent-hover, which is
|
|
7
|
+
// near-black in the light theme — a warm brown link turning almost black on
|
|
8
|
+
// hover reads as broken, not emphasised. The underline stays: colour alone is
|
|
9
|
+
// not a safe affordance (WCAG 1.4.1).
|
|
10
|
+
|
|
5
11
|
export function Link({
|
|
6
12
|
href = '#',
|
|
7
13
|
external,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@efolusi/meridian",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0",
|
|
4
4
|
"description": "A general-purpose open-source design system by Efolusi: accessible React components, design tokens, blocks and example apps.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://meridian.efolusi.com",
|
package/tailwind.preset.cjs
CHANGED
|
@@ -65,6 +65,7 @@ module.exports = { theme: { extend: {
|
|
|
65
65
|
"text-inverse": "var(--text-inverse)",
|
|
66
66
|
"text-inverse-muted": "var(--text-inverse-muted)",
|
|
67
67
|
"text-link": "var(--text-link)",
|
|
68
|
+
"text-link-hover": "var(--text-link-hover)",
|
|
68
69
|
"border-default": "var(--border-default)",
|
|
69
70
|
"border-strong": "var(--border-strong)",
|
|
70
71
|
"border-inverse": "var(--border-inverse)",
|
package/tokens/colors.css
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
--media-backdrop:#141210;/* generation backdrop */--media-backdrop-dot:rgba(243,239,231,.22);/* shimmer dots on the backdrop */
|
|
24
24
|
--media-scrim:rgba(20,16,12,.55);/* legibility gradient over the finished image */--media-scrim-soft:rgba(20,16,12,.45);/* action chip resting fill */--media-scrim-strong:rgba(20,16,12,.7);/* action chip hover fill */
|
|
25
25
|
--text-on-media:var(--sand-50);/* prompt text over imagery — stays light in both themes */--text-on-media-muted:rgba(250,249,246,.75);/* status line over imagery */
|
|
26
|
-
--text-primary:var(--sand-950);--text-secondary:var(--sand-700);--text-muted:#746A55;/* between sand-600/700: ≥4.5:1 on page, card, and sunken */--text-inverse:var(--sand-50);--text-inverse-muted:rgba(250,249,246,.6);/* dim ink on --surface-inverse (toast close button); remapped in dark where the inverse surface flips light */--text-link:var(--brand-700);
|
|
26
|
+
--text-primary:var(--sand-950);--text-secondary:var(--sand-700);--text-muted:#746A55;/* between sand-600/700: ≥4.5:1 on page, card, and sunken */--text-inverse:var(--sand-50);--text-inverse-muted:rgba(250,249,246,.6);/* dim ink on --surface-inverse (toast close button); remapped in dark where the inverse surface flips light */--text-link:var(--brand-700);--text-link-hover:var(--brand-900);
|
|
27
27
|
--border-default:var(--sand-200);--border-strong:var(--sand-300);--border-inverse:rgba(250,249,246,.18);
|
|
28
28
|
--accent:var(--brand-950);--accent-hover:#1D0E04;--accent-active:#120801;--accent-subtle:var(--brand-50);--accent-subtle-border:var(--brand-200);--accent-contrast:#FFFFFF;
|
|
29
29
|
--danger-contrast:#FFFFFF;/* label on a solid --danger-600 fill; flips in dark where the red lightens */--success-contrast:#FFFFFF;--warning-contrast:#FFFFFF;/* same contract as --danger-contrast, for the green and amber fills */
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
/* Dark theme — semantic remap only; ramps stay fixed */
|
|
38
38
|
[data-theme="dark"]{
|
|
39
39
|
--surface-page:#191512;--surface-card:#211C17;--surface-sunken:#2A251E;--surface-subtle:#1D1814;--surface-inverse:var(--sand-50);--surface-brand:var(--brand-950);
|
|
40
|
-
--text-primary:#F3EFE7;--text-secondary:#C9C0B2;--text-muted:#9C9280;--text-inverse:var(--sand-950);--text-inverse-muted:rgba(30,26,20,.55);--text-link:var(--brand-400);
|
|
40
|
+
--text-primary:#F3EFE7;--text-secondary:#C9C0B2;--text-muted:#9C9280;--text-inverse:var(--sand-950);--text-inverse-muted:rgba(30,26,20,.55);--text-link:var(--brand-400);--text-link-hover:var(--brand-300);
|
|
41
41
|
--border-default:#332C24;--border-strong:#453C31;--border-inverse:rgba(30,26,20,.2);
|
|
42
42
|
--accent:#F3EFE7;--accent-hover:#FFFFFF;--accent-active:#D5CFC0;--accent-subtle:#2A2119;--accent-subtle-border:#453728;--accent-contrast:#1E1A14;
|
|
43
43
|
--success-600:#5FB86E;--success-100:#1C2B1F;--success-300:#2E4A34;
|