@designa8/vibedesign-linear-internal-v1-b737 0.14.3 → 0.14.4
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 +6 -2
- package/dist/index.js +6 -2
- package/dist/styles.css +5 -11
- package/package.json +1 -1
- package/src/atoms/AnnouncementCard/AnnouncementCard.tsx +12 -3
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.14.
|
|
3
|
+
Complete design system generated by Atoms Design, version **0.14.4**.
|
|
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
|
@@ -379,14 +379,18 @@ var AnnouncementCard = React2.forwardRef(
|
|
|
379
379
|
),
|
|
380
380
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "relative flex min-w-0 flex-1 flex-col gap-xs", children: [
|
|
381
381
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "truncate text-body-md font-weight-label text-ink", children: title }),
|
|
382
|
-
subtitle && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "truncate text-caption text-ink
|
|
382
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "truncate text-caption text-ink opacity-80 dark:opacity-85", children: subtitle })
|
|
383
383
|
] }),
|
|
384
|
-
icon &&
|
|
384
|
+
icon && // `tone="default"` paints the glyph with `text-ink` and the SVG strokes with
|
|
385
|
+
// `currentColor`, so it is near-black here in light mode and near-white in
|
|
386
|
+
// dark mode. No inverse/white tone, no hard-coded stroke.
|
|
387
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
385
388
|
Icon,
|
|
386
389
|
{
|
|
387
390
|
name: icon,
|
|
388
391
|
size: 26,
|
|
389
392
|
strokeWidth: 2,
|
|
393
|
+
tone: "default",
|
|
390
394
|
className: "relative shrink-0 text-ink"
|
|
391
395
|
}
|
|
392
396
|
)
|
package/dist/index.js
CHANGED
|
@@ -233,14 +233,18 @@ var AnnouncementCard = React2.forwardRef(
|
|
|
233
233
|
),
|
|
234
234
|
/* @__PURE__ */ jsxs("span", { className: "relative flex min-w-0 flex-1 flex-col gap-xs", children: [
|
|
235
235
|
/* @__PURE__ */ jsx2("span", { className: "truncate text-body-md font-weight-label text-ink", children: title }),
|
|
236
|
-
subtitle && /* @__PURE__ */ jsx2("span", { className: "truncate text-caption text-ink
|
|
236
|
+
subtitle && /* @__PURE__ */ jsx2("span", { className: "truncate text-caption text-ink opacity-80 dark:opacity-85", children: subtitle })
|
|
237
237
|
] }),
|
|
238
|
-
icon &&
|
|
238
|
+
icon && // `tone="default"` paints the glyph with `text-ink` and the SVG strokes with
|
|
239
|
+
// `currentColor`, so it is near-black here in light mode and near-white in
|
|
240
|
+
// dark mode. No inverse/white tone, no hard-coded stroke.
|
|
241
|
+
/* @__PURE__ */ jsx2(
|
|
239
242
|
Icon,
|
|
240
243
|
{
|
|
241
244
|
name: icon,
|
|
242
245
|
size: 26,
|
|
243
246
|
strokeWidth: 2,
|
|
247
|
+
tone: "default",
|
|
244
248
|
className: "relative shrink-0 text-ink"
|
|
245
249
|
}
|
|
246
250
|
)
|
package/dist/styles.css
CHANGED
|
@@ -1900,12 +1900,6 @@
|
|
|
1900
1900
|
.text-ink {
|
|
1901
1901
|
color: var(--color-ink);
|
|
1902
1902
|
}
|
|
1903
|
-
.text-ink\/80 {
|
|
1904
|
-
color: color-mix(in srgb, #1B1C22 80%, transparent);
|
|
1905
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
1906
|
-
color: color-mix(in oklab, var(--color-ink) 80%, transparent);
|
|
1907
|
-
}
|
|
1908
|
-
}
|
|
1909
1903
|
.text-inverse-ink {
|
|
1910
1904
|
color: var(--color-inverse-ink);
|
|
1911
1905
|
}
|
|
@@ -1973,6 +1967,9 @@
|
|
|
1973
1967
|
.opacity-70 {
|
|
1974
1968
|
opacity: 70%;
|
|
1975
1969
|
}
|
|
1970
|
+
.opacity-80 {
|
|
1971
|
+
opacity: 80%;
|
|
1972
|
+
}
|
|
1976
1973
|
.opacity-100 {
|
|
1977
1974
|
opacity: 100%;
|
|
1978
1975
|
}
|
|
@@ -3050,12 +3047,9 @@
|
|
|
3050
3047
|
background-color: var(--color-ink);
|
|
3051
3048
|
}
|
|
3052
3049
|
}
|
|
3053
|
-
.dark\:
|
|
3050
|
+
.dark\:opacity-85 {
|
|
3054
3051
|
&:where([data-theme="dark"], [data-theme="dark"] *) {
|
|
3055
|
-
|
|
3056
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
3057
|
-
color: color-mix(in oklab, var(--color-ink) 85%, transparent);
|
|
3058
|
-
}
|
|
3052
|
+
opacity: 85%;
|
|
3059
3053
|
}
|
|
3060
3054
|
}
|
|
3061
3055
|
|
package/package.json
CHANGED
|
@@ -14,8 +14,8 @@ export interface AnnouncementCardProps {
|
|
|
14
14
|
*/
|
|
15
15
|
variant?: "default" | "promo";
|
|
16
16
|
/**
|
|
17
|
-
* Large glyph drawn over the illustration. Promo only.
|
|
18
|
-
*
|
|
17
|
+
* Large glyph drawn over the illustration. Promo only. Tinted with `currentColor`
|
|
18
|
+
* from the card's ink: near-black on light, near-white on dark.
|
|
19
19
|
*/
|
|
20
20
|
icon?: IconName;
|
|
21
21
|
/** Destination. Used as the fallback when `onClick` is not supplied. */
|
|
@@ -138,16 +138,25 @@ export const AnnouncementCard = React.forwardRef<HTMLAnchorElement, Announcement
|
|
|
138
138
|
{/* Near-black on the light card, near-white on the dark one — `ink` flips
|
|
139
139
|
with the theme, so no `dark:` override is needed for the title. */}
|
|
140
140
|
<span className="truncate text-body-md font-weight-label text-ink">{title}</span>
|
|
141
|
+
{/* Same `ink` as the title, knocked back with element opacity rather than a
|
|
142
|
+
muted color: 80% of ink still reads clearly dark in light mode, 85% reads
|
|
143
|
+
as soft white in dark mode. Never `text-muted` — that washes out here. */}
|
|
141
144
|
{subtitle && (
|
|
142
|
-
<span className="truncate text-caption text-ink
|
|
145
|
+
<span className="truncate text-caption text-ink opacity-80 dark:opacity-85">
|
|
146
|
+
{subtitle}
|
|
147
|
+
</span>
|
|
143
148
|
)}
|
|
144
149
|
</span>
|
|
145
150
|
|
|
146
151
|
{icon && (
|
|
152
|
+
// `tone="default"` paints the glyph with `text-ink` and the SVG strokes with
|
|
153
|
+
// `currentColor`, so it is near-black here in light mode and near-white in
|
|
154
|
+
// dark mode. No inverse/white tone, no hard-coded stroke.
|
|
147
155
|
<Icon
|
|
148
156
|
name={icon}
|
|
149
157
|
size={26}
|
|
150
158
|
strokeWidth={2}
|
|
159
|
+
tone="default"
|
|
151
160
|
className="relative shrink-0 text-ink"
|
|
152
161
|
/>
|
|
153
162
|
)}
|