@designa8/vibedesign-linear-internal-v1-b737 0.13.4 → 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 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.13.4**.
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
- { left: "-36%", width: "102%", height: "150%", bottom: "-86%", color: "var(--color-promo-sky)" },
315
- { left: "4%", width: "96%", height: "142%", bottom: "-98%", color: "var(--color-primary)" },
316
- { left: "44%", width: "90%", height: "136%", bottom: "-78%", color: "var(--color-promo-violet)" }
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-sm bg-canvas px-md py-lg shadow-sm",
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.jsxs)("span", { "aria-hidden": "true", className: "pointer-events-none absolute inset-0 overflow-hidden", children: [
342
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
343
- "span",
344
- {
345
- className: "absolute inset-0",
346
- style: {
347
- backgroundImage: "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%)"
348
- }
349
- }
350
- ),
351
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "absolute inset-y-0 right-0 w-3/5", children: HILLS.map((hill) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
352
- "span",
353
- {
354
- className: "absolute rounded-full",
355
- style: {
356
- left: hill.left,
357
- width: hill.width,
358
- height: hill.height,
359
- bottom: hill.bottom,
360
- backgroundColor: hill.color
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-body-sm text-muted", children: subtitle })
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)(Icon, { name: icon, size: 36, strokeWidth: 1.75, tone: "inverse", className: "relative shrink-0" })
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
  );
@@ -423,7 +434,7 @@ var variants = {
423
434
  soft: "border-transparent bg-surface-soft text-ink ring-1 ring-hairline ring-inset shadow-none enabled:hover:bg-surface-strong enabled:hover:ring-hairline-strong enabled:active:bg-surface-strong aria-pressed:bg-surface-strong disabled:ring-hairline-soft",
424
435
  tint: "border-hairline bg-surface-soft text-muted shadow-none enabled:hover:bg-surface-strong enabled:hover:text-ink enabled:active:bg-surface-strong aria-checked:border-primary aria-checked:bg-primary-soft aria-checked:text-primary aria-checked:enabled:hover:bg-primary-soft aria-checked:enabled:hover:text-primary",
425
436
  inverse: "border-transparent bg-inverse-canvas text-inverse-ink shadow-sm enabled:hover:opacity-90 enabled:active:opacity-80",
426
- neutral: "border-transparent bg-muted text-on-primary shadow-sm enabled:hover:bg-muted enabled:active:bg-muted",
437
+ neutral: "border-transparent bg-muted text-on-primary shadow-sm enabled:hover:bg-body enabled:active:bg-ink",
427
438
  media: "border-transparent bg-transparent p-0 focus-visible:ring-inset enabled:hover:bg-surface-soft enabled:active:bg-surface-strong"
428
439
  };
429
440
  var sizes = {
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
- { left: "-36%", width: "102%", height: "150%", bottom: "-86%", color: "var(--color-promo-sky)" },
169
- { left: "4%", width: "96%", height: "142%", bottom: "-98%", color: "var(--color-primary)" },
170
- { left: "44%", width: "90%", height: "136%", bottom: "-78%", color: "var(--color-promo-violet)" }
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-sm bg-canvas px-md py-lg shadow-sm",
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__ */ jsxs("span", { "aria-hidden": "true", className: "pointer-events-none absolute inset-0 overflow-hidden", children: [
196
- /* @__PURE__ */ jsx2(
197
- "span",
198
- {
199
- className: "absolute inset-0",
200
- style: {
201
- backgroundImage: "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%)"
202
- }
203
- }
204
- ),
205
- /* @__PURE__ */ jsx2("span", { className: "absolute inset-y-0 right-0 w-3/5", children: HILLS.map((hill) => /* @__PURE__ */ jsx2(
206
- "span",
207
- {
208
- className: "absolute rounded-full",
209
- style: {
210
- left: hill.left,
211
- width: hill.width,
212
- height: hill.height,
213
- bottom: hill.bottom,
214
- backgroundColor: hill.color
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-body-sm text-muted", children: subtitle })
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(Icon, { name: icon, size: 36, strokeWidth: 1.75, tone: "inverse", className: "relative shrink-0" })
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
  );
@@ -277,7 +288,7 @@ var variants = {
277
288
  soft: "border-transparent bg-surface-soft text-ink ring-1 ring-hairline ring-inset shadow-none enabled:hover:bg-surface-strong enabled:hover:ring-hairline-strong enabled:active:bg-surface-strong aria-pressed:bg-surface-strong disabled:ring-hairline-soft",
278
289
  tint: "border-hairline bg-surface-soft text-muted shadow-none enabled:hover:bg-surface-strong enabled:hover:text-ink enabled:active:bg-surface-strong aria-checked:border-primary aria-checked:bg-primary-soft aria-checked:text-primary aria-checked:enabled:hover:bg-primary-soft aria-checked:enabled:hover:text-primary",
279
290
  inverse: "border-transparent bg-inverse-canvas text-inverse-ink shadow-sm enabled:hover:opacity-90 enabled:active:opacity-80",
280
- neutral: "border-transparent bg-muted text-on-primary shadow-sm enabled:hover:bg-muted enabled:active:bg-muted",
291
+ neutral: "border-transparent bg-muted text-on-primary shadow-sm enabled:hover:bg-body enabled:active:bg-ink",
281
292
  media: "border-transparent bg-transparent p-0 focus-visible:ring-inset enabled:hover:bg-surface-soft enabled:active:bg-surface-strong"
282
293
  };
283
294
  var sizes = {
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
  }
@@ -2570,23 +2575,23 @@
2570
2575
  }
2571
2576
  }
2572
2577
  }
2573
- .enabled\:hover\:bg-inverse-ink\/10 {
2578
+ .enabled\:hover\:bg-body {
2574
2579
  &:enabled {
2575
2580
  &:hover {
2576
2581
  @media (hover: hover) {
2577
- background-color: color-mix(in srgb, #F7F8F8 10%, transparent);
2578
- @supports (color: color-mix(in lab, red, red)) {
2579
- background-color: color-mix(in oklab, var(--color-inverse-ink) 10%, transparent);
2580
- }
2582
+ background-color: var(--color-body);
2581
2583
  }
2582
2584
  }
2583
2585
  }
2584
2586
  }
2585
- .enabled\:hover\:bg-muted {
2587
+ .enabled\:hover\:bg-inverse-ink\/10 {
2586
2588
  &:enabled {
2587
2589
  &:hover {
2588
2590
  @media (hover: hover) {
2589
- background-color: var(--color-muted);
2591
+ background-color: color-mix(in srgb, #F7F8F8 10%, transparent);
2592
+ @supports (color: color-mix(in lab, red, red)) {
2593
+ background-color: color-mix(in oklab, var(--color-inverse-ink) 10%, transparent);
2594
+ }
2590
2595
  }
2591
2596
  }
2592
2597
  }
@@ -2685,10 +2690,10 @@
2685
2690
  }
2686
2691
  }
2687
2692
  }
2688
- .enabled\:active\:bg-muted {
2693
+ .enabled\:active\:bg-ink {
2689
2694
  &:enabled {
2690
2695
  &:active {
2691
- background-color: var(--color-muted);
2696
+ background-color: var(--color-ink);
2692
2697
  }
2693
2698
  }
2694
2699
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-linear-internal-v1-b737",
3
- "version": "0.13.4",
3
+ "version": "0.14.0",
4
4
  "description": "Complete design system \"My Project linear-internal-v1\" generated by Atoms Design.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -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 taller upgrade
13
- * card with the layered rolling-hills illustration.
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
- * Three overlapping domes whose crests step across the lower-right of the card, so
39
- * they read as rolling hills receding behind each other. Each is far taller than the
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 HILLS: Array<{ left: string; width: string; height: string; bottom: string; color: string }> = [
43
- { left: "-36%", width: "102%", height: "150%", bottom: "-86%", color: "var(--color-promo-sky)" },
44
- { left: "4%", width: "96%", height: "142%", bottom: "-98%", color: "var(--color-primary)" },
45
- { left: "44%", width: "90%", height: "136%", bottom: "-78%", color: "var(--color-promo-violet)" },
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-sm bg-canvas px-md py-lg shadow-sm",
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: warm corner glow, layered hills, fade to canvas on the left. */}
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
- backgroundImage:
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.color}
85
- className="absolute rounded-full"
116
+ key={hill.id}
117
+ className="absolute inset-0"
86
118
  style={{
87
- left: hill.left,
88
- width: hill.width,
89
- height: hill.height,
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-body-sm text-muted">{subtitle}</span>}
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 name={icon} size={36} strokeWidth={1.75} tone="inverse" className="relative shrink-0" />
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
  );
@@ -18,8 +18,9 @@ import { Icon } from "../Icon";
18
18
  * darkens on hover, and a brand-tinted `aria-checked` state — a pill-shaped
19
19
  * toggle (a switch-styled toolbar chip).
20
20
  * `inverse` is a filled ink surface with inverse text, for a solid neutral
21
- * action that must not read as brand primary. `neutral` is a muted grey fill
22
- * with an on-primary glyph, for a control that is inert until it has content.
21
+ * action that must not read as brand primary. `neutral` is a solid muted fill
22
+ * with an inverse glyph that deepens one step on hover and one more on press —
23
+ * a control that looks inert until it has content.
23
24
  * `media` is a borderless, full-width block trigger that wraps a thumbnail or
24
25
  * other media (no fixed height, no padding); clicking it opens a larger view.
25
26
  */
@@ -93,7 +94,7 @@ const variants: Record<ButtonVariant, string> = {
93
94
  inverse:
94
95
  "border-transparent bg-inverse-canvas text-inverse-ink shadow-sm enabled:hover:opacity-90 enabled:active:opacity-80",
95
96
  neutral:
96
- "border-transparent bg-muted text-on-primary shadow-sm enabled:hover:bg-muted enabled:active:bg-muted",
97
+ "border-transparent bg-muted text-on-primary shadow-sm enabled:hover:bg-body enabled:active:bg-ink",
97
98
  media:
98
99
  "border-transparent bg-transparent p-0 focus-visible:ring-inset enabled:hover:bg-surface-soft enabled:active:bg-surface-strong",
99
100
  };
@@ -4,10 +4,16 @@ import type { ButtonProps } from "../Button";
4
4
  import { Icon } from "../Icon";
5
5
  import type { IconName } from "../Icon";
6
6
 
7
+ /**
8
+ * `neutral` is a solid muted-grey fill with an inverse glyph — quiet and
9
+ * inactive-looking, so a send / submit control can sit greyed out until there
10
+ * is something to send and flip to `primary` when there is.
11
+ */
7
12
  export type IconButtonVariant =
8
13
  | "secondary"
9
14
  | "ghost"
10
15
  | "primary"
16
+ | "neutral"
11
17
  | "soft"
12
18
  | "inverse";
13
19
  export type IconButtonSize = "sm" | "md" | "lg";
@@ -1,9 +1,11 @@
1
1
  import * as React from "react";
2
+ import { Button } from "../Button";
2
3
  import { IconButton } from "./IconButton";
3
4
 
4
5
  export default function IconButtonPreview() {
5
6
  const [count, setCount] = React.useState(0);
6
7
  const [starred, setStarred] = React.useState(false);
8
+ const [hasText, setHasText] = React.useState(false);
7
9
 
8
10
  return (
9
11
  <div className="w-full max-w-3xl mx-auto p-lg space-y-lg text-ink">
@@ -25,11 +27,49 @@ export default function IconButtonPreview() {
25
27
  <IconButton icon="plus" disabled aria-label="Create issue (disabled)" />
26
28
  <span className="text-body-sm text-muted">Created {count}</span>
27
29
  </div>
30
+
28
31
  <div className="flex flex-wrap items-center gap-lg">
29
32
  <IconButton icon="plus" size="sm" aria-label="Small" />
30
33
  <IconButton icon="plus" size="md" aria-label="Medium" />
31
34
  <IconButton icon="plus" size="lg" aria-label="Large" />
32
35
  </div>
36
+
37
+ <div className="space-y-sm">
38
+ <p className="text-body-sm text-muted">
39
+ Neutral reads as inert until there is something to send.
40
+ </p>
41
+ <div className="flex flex-wrap items-center gap-lg">
42
+ <IconButton
43
+ icon="arrow-up"
44
+ variant={hasText ? "primary" : "neutral"}
45
+ aria-label={
46
+ hasText ? "Send message" : "Send message (nothing to send)"
47
+ }
48
+ onClick={() => setHasText((v) => !v)}
49
+ />
50
+ <IconButton
51
+ icon="arrow-up"
52
+ variant="neutral"
53
+ size="sm"
54
+ aria-label="Neutral small"
55
+ />
56
+ <IconButton
57
+ icon="arrow-up"
58
+ variant="neutral"
59
+ size="lg"
60
+ aria-label="Neutral large"
61
+ />
62
+ <IconButton
63
+ icon="arrow-up"
64
+ variant="neutral"
65
+ disabled
66
+ aria-label="Neutral disabled"
67
+ />
68
+ <Button variant="secondary" size="sm" onClick={() => setHasText((v) => !v)}>
69
+ {hasText ? "Clear draft" : "Type a draft"}
70
+ </Button>
71
+ </div>
72
+ </div>
33
73
  </div>
34
74
  );
35
75
  }
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);