@designa8/vibedesign-linear-internal-v1-b737 0.13.5 → 0.14.1

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.5**.
3
+ Complete design system generated by Atoms Design, version **0.14.1**.
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 56%, color-mix(in srgb, black 18%, transparent) 66%, color-mix(in srgb, black 62%, transparent) 78%, black 90%)";
314
+ var GLOW = "radial-gradient(62% 54% at 100% -18%, var(--color-promo-glow) 0%, color-mix(in srgb, var(--color-promo-glow-pink) 62%, transparent) 48%, transparent 88%)";
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: "violet",
318
+ shape: "radial-gradient(48% 80% at 76% 122%, black 0 98.6%, transparent 100%)",
319
+ fill: "linear-gradient(188deg, var(--color-promo-hill-mid) 0%, var(--color-promo-hill-mid-deep) 88%)"
320
+ },
321
+ {
322
+ id: "indigo",
323
+ shape: "radial-gradient(32% 100% at 100% 130%, black 0 98.6%, transparent 100%)",
324
+ fill: "linear-gradient(190deg, var(--color-promo-hill-back) 0%, var(--color-promo-hill-back-deep) 90%)"
325
+ },
326
+ {
327
+ id: "cyan",
328
+ shape: "radial-gradient(38% 68% at 54% 136%, black 0 98.6%, transparent 100%)",
329
+ fill: "linear-gradient(to bottom, var(--color-promo-hill-front) 0%, var(--color-promo-hill-front-deep) 92%)"
330
+ }
317
331
  ];
318
332
  var AnnouncementCard = React2.forwardRef(
319
333
  ({ eyebrow, title, subtitle, variant = "default", icon, href = "#", onClick, className }, ref) => {
@@ -333,50 +347,48 @@ 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-md 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
- ] }),
375
- /* @__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 })
355
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
356
+ "span",
357
+ {
358
+ "aria-hidden": "true",
359
+ className: "pointer-events-none absolute inset-0 overflow-hidden",
360
+ style: { maskImage: LEFT_FADE, WebkitMaskImage: LEFT_FADE },
361
+ children: [
362
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "absolute inset-0", style: { backgroundImage: GLOW } }),
363
+ HILLS.map((hill) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
364
+ "span",
365
+ {
366
+ className: "absolute inset-0",
367
+ style: {
368
+ backgroundImage: hill.fill,
369
+ maskImage: hill.shape,
370
+ WebkitMaskImage: hill.shape
371
+ }
372
+ },
373
+ hill.id
374
+ ))
375
+ ]
376
+ }
377
+ ),
378
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "relative flex min-w-0 flex-1 flex-col gap-xs", children: [
379
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "truncate text-body-md font-weight-heading-md text-ink", children: title }),
380
+ subtitle && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "truncate text-caption text-muted", children: subtitle })
378
381
  ] }),
379
- icon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Icon, { name: icon, size: 36, strokeWidth: 1.75, tone: "inverse", className: "relative shrink-0" })
382
+ icon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
383
+ Icon,
384
+ {
385
+ name: icon,
386
+ size: 26,
387
+ strokeWidth: 2,
388
+ tone: "inverse",
389
+ className: "relative shrink-0"
390
+ }
391
+ )
380
392
  ]
381
393
  }
382
394
  );
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 56%, color-mix(in srgb, black 18%, transparent) 66%, color-mix(in srgb, black 62%, transparent) 78%, black 90%)";
168
+ var GLOW = "radial-gradient(62% 54% at 100% -18%, var(--color-promo-glow) 0%, color-mix(in srgb, var(--color-promo-glow-pink) 62%, transparent) 48%, transparent 88%)";
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: "violet",
172
+ shape: "radial-gradient(48% 80% at 76% 122%, black 0 98.6%, transparent 100%)",
173
+ fill: "linear-gradient(188deg, var(--color-promo-hill-mid) 0%, var(--color-promo-hill-mid-deep) 88%)"
174
+ },
175
+ {
176
+ id: "indigo",
177
+ shape: "radial-gradient(32% 100% at 100% 130%, black 0 98.6%, transparent 100%)",
178
+ fill: "linear-gradient(190deg, var(--color-promo-hill-back) 0%, var(--color-promo-hill-back-deep) 90%)"
179
+ },
180
+ {
181
+ id: "cyan",
182
+ shape: "radial-gradient(38% 68% at 54% 136%, black 0 98.6%, transparent 100%)",
183
+ fill: "linear-gradient(to bottom, var(--color-promo-hill-front) 0%, var(--color-promo-hill-front-deep) 92%)"
184
+ }
171
185
  ];
172
186
  var AnnouncementCard = React2.forwardRef(
173
187
  ({ eyebrow, title, subtitle, variant = "default", icon, href = "#", onClick, className }, ref) => {
@@ -187,50 +201,48 @@ 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-md 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
- ] }),
229
- /* @__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 })
209
+ /* @__PURE__ */ jsxs(
210
+ "span",
211
+ {
212
+ "aria-hidden": "true",
213
+ className: "pointer-events-none absolute inset-0 overflow-hidden",
214
+ style: { maskImage: LEFT_FADE, WebkitMaskImage: LEFT_FADE },
215
+ children: [
216
+ /* @__PURE__ */ jsx2("span", { className: "absolute inset-0", style: { backgroundImage: GLOW } }),
217
+ HILLS.map((hill) => /* @__PURE__ */ jsx2(
218
+ "span",
219
+ {
220
+ className: "absolute inset-0",
221
+ style: {
222
+ backgroundImage: hill.fill,
223
+ maskImage: hill.shape,
224
+ WebkitMaskImage: hill.shape
225
+ }
226
+ },
227
+ hill.id
228
+ ))
229
+ ]
230
+ }
231
+ ),
232
+ /* @__PURE__ */ jsxs("span", { className: "relative flex min-w-0 flex-1 flex-col gap-xs", children: [
233
+ /* @__PURE__ */ jsx2("span", { className: "truncate text-body-md font-weight-heading-md text-ink", children: title }),
234
+ subtitle && /* @__PURE__ */ jsx2("span", { className: "truncate text-caption text-muted", children: subtitle })
232
235
  ] }),
233
- icon && /* @__PURE__ */ jsx2(Icon, { name: icon, size: 36, strokeWidth: 1.75, tone: "inverse", className: "relative shrink-0" })
236
+ icon && /* @__PURE__ */ jsx2(
237
+ Icon,
238
+ {
239
+ name: icon,
240
+ size: 26,
241
+ strokeWidth: 2,
242
+ tone: "inverse",
243
+ className: "relative shrink-0"
244
+ }
245
+ )
234
246
  ]
235
247
  }
236
248
  );
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-linear-internal-v1-b737",
3
- "version": "0.13.5",
3
+ "version": "0.14.1",
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,57 @@ 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: fully transparent across the copy
39
+ * column, then a long slow ramp. Nothing opaque appears before ~62% of the width, so
40
+ * the title and subtitle always read on plain white — on a narrow rail and on a wide
41
+ * card alike.
41
42
  */
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)" },
43
+ const LEFT_FADE =
44
+ "linear-gradient(to right, transparent 56%, color-mix(in srgb, black 18%, transparent) 66%, color-mix(in srgb, black 62%, transparent) 78%, black 90%)";
45
+
46
+ /**
47
+ * The warm corner wash — peach at the top-right corner drifting through pink on its
48
+ * way down. Painted as the bottom layer, so the hills stay saturated and the wash
49
+ * only shows on the near-white field above their crests.
50
+ */
51
+ const GLOW =
52
+ "radial-gradient(62% 54% at 100% -18%, var(--color-promo-glow) 0%, color-mix(in srgb, var(--color-promo-glow-pink) 62%, transparent) 48%, transparent 88%)";
53
+
54
+ interface Hill {
55
+ id: string;
56
+ /**
57
+ * One very wide ellipse whose centre sits below the card, so only its gently
58
+ * curved crest falls inside and the flanks sink out of the bottom edge — a rolling
59
+ * hill, never a diagonal sweep. Each crest height is quoted in the layer comments.
60
+ */
61
+ shape: string;
62
+ /** Vertical shading within the hill, so each layer falls off toward its base. */
63
+ fill: string;
64
+ }
65
+
66
+ /**
67
+ * Back to front, crests quoted as a share of the card height. The band occupies only
68
+ * the bottom ~55-60% and the top-right keeps its warm glow.
69
+ * violet: crest ~42%, peaking around three-quarters of the width — the main hill.
70
+ * indigo: crest ~30% at the far right, so the glyph sits on saturated violet.
71
+ * cyan: crest ~62%, drawn last, the bright front hill along the lower-left.
72
+ */
73
+ const HILLS: Hill[] = [
74
+ {
75
+ id: "violet",
76
+ shape: "radial-gradient(48% 80% at 76% 122%, black 0 98.6%, transparent 100%)",
77
+ fill: "linear-gradient(188deg, var(--color-promo-hill-mid) 0%, var(--color-promo-hill-mid-deep) 88%)",
78
+ },
79
+ {
80
+ id: "indigo",
81
+ shape: "radial-gradient(32% 100% at 100% 130%, black 0 98.6%, transparent 100%)",
82
+ fill: "linear-gradient(190deg, var(--color-promo-hill-back) 0%, var(--color-promo-hill-back-deep) 90%)",
83
+ },
84
+ {
85
+ id: "cyan",
86
+ shape: "radial-gradient(38% 68% at 54% 136%, black 0 98.6%, transparent 100%)",
87
+ fill: "linear-gradient(to bottom, var(--color-promo-hill-front) 0%, var(--color-promo-hill-front-deep) 92%)",
88
+ },
46
89
  ];
47
90
 
48
91
  export const AnnouncementCard = React.forwardRef<HTMLAnchorElement, AnnouncementCardProps>(
@@ -63,52 +106,45 @@ export const AnnouncementCard = React.forwardRef<HTMLAnchorElement, Announcement
63
106
  aria-label={subtitle ? `${eyebrow}: ${title} — ${subtitle}` : `${eyebrow}: ${title}`}
64
107
  className={cn(
65
108
  cardBase,
66
- "items-center gap-sm bg-canvas px-md py-lg shadow-sm",
109
+ "items-center gap-md bg-canvas py-base pl-md pr-sm shadow-card",
67
110
  "hover:-translate-y-px hover:shadow-md active:translate-y-0 motion-reduce:transition-none motion-reduce:hover:translate-y-0",
68
111
  className,
69
112
  )}
70
113
  >
71
- {/* Decorative illustration: warm corner glow, layered hills, fade to canvas on the left. */}
72
- <span aria-hidden="true" className="pointer-events-none absolute inset-0 overflow-hidden">
73
- <span
74
- 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">
82
- {HILLS.map((hill) => (
83
- <span
84
- key={hill.color}
85
- className="absolute rounded-full"
86
- style={{
87
- left: hill.left,
88
- width: hill.width,
89
- height: hill.height,
90
- bottom: hill.bottom,
91
- backgroundColor: hill.color,
92
- }}
93
- />
94
- ))}
95
- </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
- />
114
+ {/* Decorative illustration only: one masked layer, so the hills and the glow
115
+ both dissolve well before they reach the copy. */}
116
+ <span
117
+ aria-hidden="true"
118
+ className="pointer-events-none absolute inset-0 overflow-hidden"
119
+ style={{ maskImage: LEFT_FADE, WebkitMaskImage: LEFT_FADE }}
120
+ >
121
+ <span className="absolute inset-0" style={{ backgroundImage: GLOW }} />
122
+ {HILLS.map((hill) => (
123
+ <span
124
+ key={hill.id}
125
+ className="absolute inset-0"
126
+ style={{
127
+ backgroundImage: hill.fill,
128
+ maskImage: hill.shape,
129
+ WebkitMaskImage: hill.shape,
130
+ }}
131
+ />
132
+ ))}
103
133
  </span>
104
134
 
105
- <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>}
135
+ <span className="relative flex min-w-0 flex-1 flex-col gap-xs">
136
+ <span className="truncate text-body-md font-weight-heading-md text-ink">{title}</span>
137
+ {subtitle && <span className="truncate text-caption text-muted">{subtitle}</span>}
108
138
  </span>
109
139
 
110
140
  {icon && (
111
- <Icon name={icon} size={36} strokeWidth={1.75} tone="inverse" className="relative shrink-0" />
141
+ <Icon
142
+ name={icon}
143
+ size={26}
144
+ strokeWidth={2}
145
+ tone="inverse"
146
+ className="relative shrink-0"
147
+ />
112
148
  )}
113
149
  </a>
114
150
  );
@@ -7,7 +7,35 @@ export default function Preview() {
7
7
  return (
8
8
  <div className="w-full max-w-3xl mx-auto p-lg space-y-lg bg-canvas">
9
9
  <div className="space-y-sm">
10
- <p className="text-caption text-muted">Promo — upgrade card with illustration</p>
10
+ <p className="text-caption text-muted">
11
+ Promo in the rail — hills stay low and to the right, copy sits on clean white
12
+ </p>
13
+ {/* Rail frame only: fixed width so the card is judged at its real sidebar size. */}
14
+ <div className="space-y-sm" style={{ width: "256px" }}>
15
+ <AnnouncementCard
16
+ variant="promo"
17
+ eyebrow="Plan"
18
+ title="Upgrade to Pro"
19
+ subtitle="Unlock more features"
20
+ icon="crown"
21
+ href="#upgrade"
22
+ onClick={() => setClicks((n) => n + 1)}
23
+ />
24
+ <AnnouncementCard
25
+ variant="promo"
26
+ eyebrow="Credits"
27
+ title="Add credits"
28
+ subtitle="Top up when you run low"
29
+ icon="zap"
30
+ href="#credits"
31
+ onClick={() => setClicks((n) => n + 1)}
32
+ />
33
+ </div>
34
+ <p className="text-caption text-muted">Click handled: {clicks}</p>
35
+ </div>
36
+
37
+ <div className="space-y-sm">
38
+ <p className="text-caption text-muted">Promo at full width</p>
11
39
  <AnnouncementCard
12
40
  variant="promo"
13
41
  eyebrow="Plan"
@@ -17,7 +45,6 @@ export default function Preview() {
17
45
  href="#upgrade"
18
46
  onClick={() => setClicks((n) => n + 1)}
19
47
  />
20
- <p className="text-caption text-muted">Click handled: {clicks}</p>
21
48
  </div>
22
49
 
23
50
  <div className="space-y-sm">
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);