@designa8/vibedesign-linear-internal-v1-b737 0.13.5 → 0.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/README.md +1 -1
- package/dist/index.cjs +52 -41
- package/dist/index.js +52 -41
- package/dist/styles.css +10 -5
- package/package.json +1 -1
- package/src/atoms/AnnouncementCard/AnnouncementCard.tsx +65 -35
- package/src/tokens.css +7 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @designa8/vibedesign-linear-internal-v1-b737
|
|
2
2
|
|
|
3
|
-
Complete design system generated by Atoms Design, version **0.
|
|
3
|
+
Complete design system generated by Atoms Design, version **0.14.0**.
|
|
4
4
|
Tokens, atoms, molecules, organisms, and templates — import from the package root;
|
|
5
5
|
never hardcode visual values in consumer code.
|
|
6
6
|
|
package/dist/index.cjs
CHANGED
|
@@ -310,10 +310,24 @@ Icon.displayName = "Icon";
|
|
|
310
310
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
311
311
|
var cn = (...parts) => parts.filter(Boolean).join(" ");
|
|
312
312
|
var cardBase = "group relative flex w-full cursor-pointer overflow-hidden rounded-xl border border-hairline transition duration-200 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-blue";
|
|
313
|
+
var LEFT_FADE = "linear-gradient(to right, transparent 30%, color-mix(in srgb, black 40%, transparent) 44%, color-mix(in srgb, black 84%, transparent) 56%, black 64%)";
|
|
314
|
+
var GLOW = "radial-gradient(42% 58% at 100% -8%, var(--color-promo-glow) 0%, color-mix(in srgb, var(--color-promo-glow-pink) 72%, transparent) 44%, transparent 84%)";
|
|
313
315
|
var HILLS = [
|
|
314
|
-
{
|
|
315
|
-
|
|
316
|
-
|
|
316
|
+
{
|
|
317
|
+
id: "back",
|
|
318
|
+
shape: "radial-gradient(64% 118% at 104% 108%, black 0 99.2%, transparent 100%)",
|
|
319
|
+
fill: "linear-gradient(200deg, var(--color-promo-hill-back) 0%, var(--color-promo-hill-back-deep) 94%)"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
id: "middle",
|
|
323
|
+
shape: "radial-gradient(54% 104% at 70% 120%, black 0 99.2%, transparent 100%)",
|
|
324
|
+
fill: "linear-gradient(188deg, var(--color-promo-hill-mid) 0%, var(--color-promo-hill-mid-deep) 92%)"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
id: "front",
|
|
328
|
+
shape: "radial-gradient(66% 88% at 30% 142%, black 0 99.2%, transparent 100%)",
|
|
329
|
+
fill: "linear-gradient(to bottom, var(--color-promo-hill-front) 0%, var(--color-promo-hill-front-deep) 96%)"
|
|
330
|
+
}
|
|
317
331
|
];
|
|
318
332
|
var AnnouncementCard = React2.forwardRef(
|
|
319
333
|
({ eyebrow, title, subtitle, variant = "default", icon, href = "#", onClick, className }, ref) => {
|
|
@@ -333,50 +347,47 @@ var AnnouncementCard = React2.forwardRef(
|
|
|
333
347
|
"aria-label": subtitle ? `${eyebrow}: ${title} \u2014 ${subtitle}` : `${eyebrow}: ${title}`,
|
|
334
348
|
className: cn(
|
|
335
349
|
cardBase,
|
|
336
|
-
"items-center gap-
|
|
350
|
+
"items-center gap-xs bg-canvas py-base pl-md pr-sm shadow-card",
|
|
337
351
|
"hover:-translate-y-px hover:shadow-md active:translate-y-0 motion-reduce:transition-none motion-reduce:hover:translate-y-0",
|
|
338
352
|
className
|
|
339
353
|
),
|
|
340
354
|
children: [
|
|
341
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
hill.color
|
|
364
|
-
)) }),
|
|
365
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
366
|
-
"span",
|
|
367
|
-
{
|
|
368
|
-
className: "absolute inset-y-0 left-0 w-3/5",
|
|
369
|
-
style: {
|
|
370
|
-
backgroundImage: "linear-gradient(to right, var(--color-canvas) 0%, var(--color-canvas) 34%, color-mix(in srgb, var(--color-canvas) 80%, transparent) 68%, transparent 100%)"
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
)
|
|
374
|
-
] }),
|
|
355
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { "aria-hidden": "true", className: "pointer-events-none absolute inset-0 overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
356
|
+
"span",
|
|
357
|
+
{
|
|
358
|
+
className: "absolute inset-0",
|
|
359
|
+
style: { maskImage: LEFT_FADE, WebkitMaskImage: LEFT_FADE },
|
|
360
|
+
children: [
|
|
361
|
+
HILLS.map((hill) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
362
|
+
"span",
|
|
363
|
+
{
|
|
364
|
+
className: "absolute inset-0",
|
|
365
|
+
style: {
|
|
366
|
+
backgroundImage: hill.fill,
|
|
367
|
+
maskImage: hill.shape,
|
|
368
|
+
WebkitMaskImage: hill.shape
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
hill.id
|
|
372
|
+
)),
|
|
373
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "absolute inset-0", style: { backgroundImage: GLOW } })
|
|
374
|
+
]
|
|
375
|
+
}
|
|
376
|
+
) }),
|
|
375
377
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "relative flex min-w-0 flex-1 flex-col gap-xxs", children: [
|
|
376
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "text-heading-sm text-ink", children: title }),
|
|
377
|
-
subtitle && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "text-
|
|
378
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "truncate text-body-md font-weight-heading-sm text-ink", children: title }),
|
|
379
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "truncate text-caption text-muted", children: subtitle })
|
|
378
380
|
] }),
|
|
379
|
-
icon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
381
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
382
|
+
Icon,
|
|
383
|
+
{
|
|
384
|
+
name: icon,
|
|
385
|
+
size: 26,
|
|
386
|
+
strokeWidth: 2,
|
|
387
|
+
tone: "inverse",
|
|
388
|
+
className: "relative shrink-0"
|
|
389
|
+
}
|
|
390
|
+
)
|
|
380
391
|
]
|
|
381
392
|
}
|
|
382
393
|
);
|
package/dist/index.js
CHANGED
|
@@ -164,10 +164,24 @@ Icon.displayName = "Icon";
|
|
|
164
164
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
165
165
|
var cn = (...parts) => parts.filter(Boolean).join(" ");
|
|
166
166
|
var cardBase = "group relative flex w-full cursor-pointer overflow-hidden rounded-xl border border-hairline transition duration-200 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-blue";
|
|
167
|
+
var LEFT_FADE = "linear-gradient(to right, transparent 30%, color-mix(in srgb, black 40%, transparent) 44%, color-mix(in srgb, black 84%, transparent) 56%, black 64%)";
|
|
168
|
+
var GLOW = "radial-gradient(42% 58% at 100% -8%, var(--color-promo-glow) 0%, color-mix(in srgb, var(--color-promo-glow-pink) 72%, transparent) 44%, transparent 84%)";
|
|
167
169
|
var HILLS = [
|
|
168
|
-
{
|
|
169
|
-
|
|
170
|
-
|
|
170
|
+
{
|
|
171
|
+
id: "back",
|
|
172
|
+
shape: "radial-gradient(64% 118% at 104% 108%, black 0 99.2%, transparent 100%)",
|
|
173
|
+
fill: "linear-gradient(200deg, var(--color-promo-hill-back) 0%, var(--color-promo-hill-back-deep) 94%)"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
id: "middle",
|
|
177
|
+
shape: "radial-gradient(54% 104% at 70% 120%, black 0 99.2%, transparent 100%)",
|
|
178
|
+
fill: "linear-gradient(188deg, var(--color-promo-hill-mid) 0%, var(--color-promo-hill-mid-deep) 92%)"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
id: "front",
|
|
182
|
+
shape: "radial-gradient(66% 88% at 30% 142%, black 0 99.2%, transparent 100%)",
|
|
183
|
+
fill: "linear-gradient(to bottom, var(--color-promo-hill-front) 0%, var(--color-promo-hill-front-deep) 96%)"
|
|
184
|
+
}
|
|
171
185
|
];
|
|
172
186
|
var AnnouncementCard = React2.forwardRef(
|
|
173
187
|
({ eyebrow, title, subtitle, variant = "default", icon, href = "#", onClick, className }, ref) => {
|
|
@@ -187,50 +201,47 @@ var AnnouncementCard = React2.forwardRef(
|
|
|
187
201
|
"aria-label": subtitle ? `${eyebrow}: ${title} \u2014 ${subtitle}` : `${eyebrow}: ${title}`,
|
|
188
202
|
className: cn(
|
|
189
203
|
cardBase,
|
|
190
|
-
"items-center gap-
|
|
204
|
+
"items-center gap-xs bg-canvas py-base pl-md pr-sm shadow-card",
|
|
191
205
|
"hover:-translate-y-px hover:shadow-md active:translate-y-0 motion-reduce:transition-none motion-reduce:hover:translate-y-0",
|
|
192
206
|
className
|
|
193
207
|
),
|
|
194
208
|
children: [
|
|
195
|
-
/* @__PURE__ */
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
hill.color
|
|
218
|
-
)) }),
|
|
219
|
-
/* @__PURE__ */ jsx2(
|
|
220
|
-
"span",
|
|
221
|
-
{
|
|
222
|
-
className: "absolute inset-y-0 left-0 w-3/5",
|
|
223
|
-
style: {
|
|
224
|
-
backgroundImage: "linear-gradient(to right, var(--color-canvas) 0%, var(--color-canvas) 34%, color-mix(in srgb, var(--color-canvas) 80%, transparent) 68%, transparent 100%)"
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
)
|
|
228
|
-
] }),
|
|
209
|
+
/* @__PURE__ */ jsx2("span", { "aria-hidden": "true", className: "pointer-events-none absolute inset-0 overflow-hidden", children: /* @__PURE__ */ jsxs(
|
|
210
|
+
"span",
|
|
211
|
+
{
|
|
212
|
+
className: "absolute inset-0",
|
|
213
|
+
style: { maskImage: LEFT_FADE, WebkitMaskImage: LEFT_FADE },
|
|
214
|
+
children: [
|
|
215
|
+
HILLS.map((hill) => /* @__PURE__ */ jsx2(
|
|
216
|
+
"span",
|
|
217
|
+
{
|
|
218
|
+
className: "absolute inset-0",
|
|
219
|
+
style: {
|
|
220
|
+
backgroundImage: hill.fill,
|
|
221
|
+
maskImage: hill.shape,
|
|
222
|
+
WebkitMaskImage: hill.shape
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
hill.id
|
|
226
|
+
)),
|
|
227
|
+
/* @__PURE__ */ jsx2("span", { className: "absolute inset-0", style: { backgroundImage: GLOW } })
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
) }),
|
|
229
231
|
/* @__PURE__ */ jsxs("span", { className: "relative flex min-w-0 flex-1 flex-col gap-xxs", children: [
|
|
230
|
-
/* @__PURE__ */ jsx2("span", { className: "text-heading-sm text-ink", children: title }),
|
|
231
|
-
subtitle && /* @__PURE__ */ jsx2("span", { className: "text-
|
|
232
|
+
/* @__PURE__ */ jsx2("span", { className: "truncate text-body-md font-weight-heading-sm text-ink", children: title }),
|
|
233
|
+
subtitle && /* @__PURE__ */ jsx2("span", { className: "truncate text-caption text-muted", children: subtitle })
|
|
232
234
|
] }),
|
|
233
|
-
icon && /* @__PURE__ */ jsx2(
|
|
235
|
+
icon && /* @__PURE__ */ jsx2(
|
|
236
|
+
Icon,
|
|
237
|
+
{
|
|
238
|
+
name: icon,
|
|
239
|
+
size: 26,
|
|
240
|
+
strokeWidth: 2,
|
|
241
|
+
tone: "inverse",
|
|
242
|
+
className: "relative shrink-0"
|
|
243
|
+
}
|
|
244
|
+
)
|
|
234
245
|
]
|
|
235
246
|
}
|
|
236
247
|
);
|
package/dist/styles.css
CHANGED
|
@@ -63,9 +63,14 @@
|
|
|
63
63
|
--color-link-blue: #5E6AD2;
|
|
64
64
|
--color-focus-blue: #5E6AD2;
|
|
65
65
|
--color-scrim: #000000;
|
|
66
|
-
--color-promo-sky: #A8CDF2;
|
|
67
|
-
--color-promo-violet: #8F6BE0;
|
|
68
66
|
--color-promo-glow: #FFC69C;
|
|
67
|
+
--color-promo-hill-front: #7ED3F7;
|
|
68
|
+
--color-promo-hill-front-deep: #3AAFE4;
|
|
69
|
+
--color-promo-hill-mid: #A98CFA;
|
|
70
|
+
--color-promo-hill-mid-deep: #7C4DDE;
|
|
71
|
+
--color-promo-hill-back: #6B52D8;
|
|
72
|
+
--color-promo-hill-back-deep: #4630A8;
|
|
73
|
+
--color-promo-glow-pink: #F58ACF;
|
|
69
74
|
--font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
70
75
|
--text-display-lg: 40px;
|
|
71
76
|
--text-display-lg--font-weight: 600;
|
|
@@ -1310,9 +1315,6 @@
|
|
|
1310
1315
|
.overscroll-y-contain {
|
|
1311
1316
|
overscroll-behavior-y: contain;
|
|
1312
1317
|
}
|
|
1313
|
-
.rounded {
|
|
1314
|
-
border-radius: 0.25rem;
|
|
1315
|
-
}
|
|
1316
1318
|
.rounded-3xl {
|
|
1317
1319
|
border-radius: var(--radius-3xl);
|
|
1318
1320
|
}
|
|
@@ -1765,6 +1767,9 @@
|
|
|
1765
1767
|
.pl-lg {
|
|
1766
1768
|
padding-left: var(--spacing-lg);
|
|
1767
1769
|
}
|
|
1770
|
+
.pl-md {
|
|
1771
|
+
padding-left: var(--spacing-md);
|
|
1772
|
+
}
|
|
1768
1773
|
.pl-xl {
|
|
1769
1774
|
padding-left: var(--spacing-xl);
|
|
1770
1775
|
}
|
package/package.json
CHANGED
|
@@ -9,8 +9,8 @@ export interface AnnouncementCardProps {
|
|
|
9
9
|
/** Secondary line under the title. Promo only. */
|
|
10
10
|
subtitle?: string;
|
|
11
11
|
/**
|
|
12
|
-
* `"default"` is the plain "what's new" card. `"promo"` is the
|
|
13
|
-
*
|
|
12
|
+
* `"default"` is the plain "what's new" card. `"promo"` is the upgrade card with
|
|
13
|
+
* the layered rolling-hills illustration, the warm corner glow, and the glyph.
|
|
14
14
|
*/
|
|
15
15
|
variant?: "default" | "promo";
|
|
16
16
|
/**
|
|
@@ -35,14 +35,50 @@ const cardBase =
|
|
|
35
35
|
"group relative flex w-full cursor-pointer overflow-hidden rounded-xl border border-hairline transition duration-200 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-blue";
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* card, so only its rounded crown shows. Percentages are relative to the hill box.
|
|
38
|
+
* The illustration dissolves toward the copy: the left of the card stays clean
|
|
39
|
+
* canvas, so the copy sits on a pale wash while the colour builds on the right.
|
|
41
40
|
*/
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
const LEFT_FADE =
|
|
42
|
+
"linear-gradient(to right, transparent 30%, color-mix(in srgb, black 40%, transparent) 44%, color-mix(in srgb, black 84%, transparent) 56%, black 64%)";
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The warm corner wash: peach at the very top-right, drifting through pink violet
|
|
46
|
+
* until it blends into the hills. Painted above them so it warms their crests the
|
|
47
|
+
* way the reference does, kept tight so it never whitens the whole card.
|
|
48
|
+
*/
|
|
49
|
+
const GLOW =
|
|
50
|
+
"radial-gradient(42% 58% at 100% -8%, var(--color-promo-glow) 0%, color-mix(in srgb, var(--color-promo-glow-pink) 72%, transparent) 44%, transparent 84%)";
|
|
51
|
+
|
|
52
|
+
interface Hill {
|
|
53
|
+
id: string;
|
|
54
|
+
/**
|
|
55
|
+
* Alpha mask: one broad ellipse whose centre sits just below the card, so its
|
|
56
|
+
* gently curved crest falls inside the card — a rolling hill, never a circle. The
|
|
57
|
+
* crests step down from the back hill at the right to the front hill, which
|
|
58
|
+
* sweeps along the bottom-left like the reference.
|
|
59
|
+
*/
|
|
60
|
+
shape: string;
|
|
61
|
+
/** Vertical shading within the hill, so each layer falls off toward its base. */
|
|
62
|
+
fill: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** Back to front: deep indigo-violet, then violet, then the bright cyan front hill. */
|
|
66
|
+
const HILLS: Hill[] = [
|
|
67
|
+
{
|
|
68
|
+
id: "back",
|
|
69
|
+
shape: "radial-gradient(64% 118% at 104% 108%, black 0 99.2%, transparent 100%)",
|
|
70
|
+
fill: "linear-gradient(200deg, var(--color-promo-hill-back) 0%, var(--color-promo-hill-back-deep) 94%)",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: "middle",
|
|
74
|
+
shape: "radial-gradient(54% 104% at 70% 120%, black 0 99.2%, transparent 100%)",
|
|
75
|
+
fill: "linear-gradient(188deg, var(--color-promo-hill-mid) 0%, var(--color-promo-hill-mid-deep) 92%)",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
id: "front",
|
|
79
|
+
shape: "radial-gradient(66% 88% at 30% 142%, black 0 99.2%, transparent 100%)",
|
|
80
|
+
fill: "linear-gradient(to bottom, var(--color-promo-hill-front) 0%, var(--color-promo-hill-front-deep) 96%)",
|
|
81
|
+
},
|
|
46
82
|
];
|
|
47
83
|
|
|
48
84
|
export const AnnouncementCard = React.forwardRef<HTMLAnchorElement, AnnouncementCardProps>(
|
|
@@ -63,52 +99,46 @@ export const AnnouncementCard = React.forwardRef<HTMLAnchorElement, Announcement
|
|
|
63
99
|
aria-label={subtitle ? `${eyebrow}: ${title} — ${subtitle}` : `${eyebrow}: ${title}`}
|
|
64
100
|
className={cn(
|
|
65
101
|
cardBase,
|
|
66
|
-
"items-center gap-
|
|
102
|
+
"items-center gap-xs bg-canvas py-base pl-md pr-sm shadow-card",
|
|
67
103
|
"hover:-translate-y-px hover:shadow-md active:translate-y-0 motion-reduce:transition-none motion-reduce:hover:translate-y-0",
|
|
68
104
|
className,
|
|
69
105
|
)}
|
|
70
106
|
>
|
|
71
|
-
{/* Decorative illustration:
|
|
107
|
+
{/* Decorative illustration only: the whole layer is masked to a horizontal
|
|
108
|
+
fade, so the hills and the glow both dissolve before reaching the copy. */}
|
|
72
109
|
<span aria-hidden="true" className="pointer-events-none absolute inset-0 overflow-hidden">
|
|
73
110
|
<span
|
|
74
111
|
className="absolute inset-0"
|
|
75
|
-
style={{
|
|
76
|
-
|
|
77
|
-
"radial-gradient(68% 116% at 99% 0%, var(--color-promo-glow) 0%, color-mix(in srgb, var(--color-promo-glow) 46%, transparent) 42%, transparent 74%)",
|
|
78
|
-
}}
|
|
79
|
-
/>
|
|
80
|
-
{/* Hills live in the right-hand strip so the copy keeps a clear surface. */}
|
|
81
|
-
<span className="absolute inset-y-0 right-0 w-3/5">
|
|
112
|
+
style={{ maskImage: LEFT_FADE, WebkitMaskImage: LEFT_FADE }}
|
|
113
|
+
>
|
|
82
114
|
{HILLS.map((hill) => (
|
|
83
115
|
<span
|
|
84
|
-
key={hill.
|
|
85
|
-
className="absolute
|
|
116
|
+
key={hill.id}
|
|
117
|
+
className="absolute inset-0"
|
|
86
118
|
style={{
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
bottom: hill.bottom,
|
|
91
|
-
backgroundColor: hill.color,
|
|
119
|
+
backgroundImage: hill.fill,
|
|
120
|
+
maskImage: hill.shape,
|
|
121
|
+
WebkitMaskImage: hill.shape,
|
|
92
122
|
}}
|
|
93
123
|
/>
|
|
94
124
|
))}
|
|
125
|
+
<span className="absolute inset-0" style={{ backgroundImage: GLOW }} />
|
|
95
126
|
</span>
|
|
96
|
-
<span
|
|
97
|
-
className="absolute inset-y-0 left-0 w-3/5"
|
|
98
|
-
style={{
|
|
99
|
-
backgroundImage:
|
|
100
|
-
"linear-gradient(to right, var(--color-canvas) 0%, var(--color-canvas) 34%, color-mix(in srgb, var(--color-canvas) 80%, transparent) 68%, transparent 100%)",
|
|
101
|
-
}}
|
|
102
|
-
/>
|
|
103
127
|
</span>
|
|
104
128
|
|
|
105
129
|
<span className="relative flex min-w-0 flex-1 flex-col gap-xxs">
|
|
106
|
-
<span className="text-heading-sm text-ink">{title}</span>
|
|
107
|
-
{subtitle && <span className="text-
|
|
130
|
+
<span className="truncate text-body-md font-weight-heading-sm text-ink">{title}</span>
|
|
131
|
+
{subtitle && <span className="truncate text-caption text-muted">{subtitle}</span>}
|
|
108
132
|
</span>
|
|
109
133
|
|
|
110
134
|
{icon && (
|
|
111
|
-
<Icon
|
|
135
|
+
<Icon
|
|
136
|
+
name={icon}
|
|
137
|
+
size={26}
|
|
138
|
+
strokeWidth={2}
|
|
139
|
+
tone="inverse"
|
|
140
|
+
className="relative shrink-0"
|
|
141
|
+
/>
|
|
112
142
|
)}
|
|
113
143
|
</a>
|
|
114
144
|
);
|
package/src/tokens.css
CHANGED
|
@@ -37,6 +37,13 @@
|
|
|
37
37
|
--color-promo-sky: #A8CDF2;
|
|
38
38
|
--color-promo-violet: #8F6BE0;
|
|
39
39
|
--color-promo-glow: #FFC69C;
|
|
40
|
+
--color-promo-hill-front: #7ED3F7;
|
|
41
|
+
--color-promo-hill-front-deep: #3AAFE4;
|
|
42
|
+
--color-promo-hill-mid: #A98CFA;
|
|
43
|
+
--color-promo-hill-mid-deep: #7C4DDE;
|
|
44
|
+
--color-promo-hill-back: #6B52D8;
|
|
45
|
+
--color-promo-hill-back-deep: #4630A8;
|
|
46
|
+
--color-promo-glow-pink: #F58ACF;
|
|
40
47
|
--font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
41
48
|
--font-heading: var(--font-body);
|
|
42
49
|
--font-display-lg: var(--font-body);
|