Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(ui): replace the text-transparency ladder with solid tones (MUL-5452) (#6152)

Jiayuan Zhang9c90327ce4fe
diff --git a/apps/desktop/src/renderer/src/components/daemon-panel.tsx b/apps/desktop/src/renderer/src/components/daemon-panel.tsx
index b6feade61a..3e041834d1 100644
--- a/apps/desktop/src/renderer/src/components/daemon-panel.tsx
+++ b/apps/desktop/src/renderer/src/components/daemon-panel.tsx
@@ -44,8 +44,8 @@ const MAX_LOG_LINES = 500;
const LEVELS: readonly LogLevel[] = ["DEBUG", "INFO", "WARN", "ERROR"];
const LEVEL_BADGE_CLASS: Record<LogLevel, string> = {
- DEBUG: "border-muted-foreground/25 text-muted-foreground/70",
- INFO: "border-foreground/15 text-foreground/80",
+ DEBUG: "border-muted-foreground/25 text-muted-foreground",
+ INFO: "border-foreground/15 text-foreground",
WARN: "border-warning/40 text-warning",
ERROR: "border-destructive/40 text-destructive",
};
@@ -366,7 +366,7 @@ export function DaemonPanel({
<span className="tabular-nums">
Showing {filtered.length} of {logs.length}
{logs.length === MAX_LOG_LINES && (
- <span className="ml-1 text-muted-foreground/60">
+ <span className="ml-1 text-muted-foreground">
(buffer full)
</span>
)}
@@ -450,14 +450,14 @@ function FilterChip({
? variant
? LEVEL_BADGE_CLASS[variant]
: "bg-accent text-accent-foreground"
- : "border-dashed text-muted-foreground/50",
+ : "border-dashed text-muted-foreground",
)}
>
{label}
<span
className={cn(
"tabular-nums",
- active ? "text-current/80" : "text-muted-foreground/40",
+ active ? "text-current" : "text-muted-foreground",
)}
>
{count}
@@ -497,7 +497,7 @@ function LogLineRow({
// for panic stack traces and partial writes during log rotation.
if (!line.timestamp || !line.level) {
return (
- <div className="break-all whitespace-pre-wrap px-2 py-0.5 text-muted-foreground/70">
+ <div className="break-all whitespace-pre-wrap px-2 py-0.5 text-muted-foreground">
{highlight(line.raw, search)}
</div>
);
@@ -511,7 +511,7 @@ function LogLineRow({
)}
onClick={hasFields ? onToggle : undefined}
>
- <span className="shrink-0 tabular-nums text-muted-foreground/60">
+ <span className="shrink-0 tabular-nums text-muted-foreground">
{line.timestamp}
</span>
<LevelBadge level={line.level} />
@@ -519,7 +519,7 @@ function LogLineRow({
<div className="flex min-w-0 items-baseline gap-2">
<span className="break-words">{highlight(line.message, search)}</span>
{hasFields && !expanded && (
- <span className="min-w-0 truncate text-muted-foreground/60">
+ <span className="min-w-0 truncate text-muted-foreground">
{fieldEntries
.map(([k, v]) => `${k}=${truncateValue(v)}`)
.join(" ")}
@@ -530,8 +530,8 @@ function LogLineRow({
<div className="ml-1 mt-1 grid grid-cols-[max-content_minmax(0,1fr)] gap-x-3 gap-y-0.5 text-muted-foreground">
{fieldEntries.map(([k, v]) => (
<Fragment key={k}>
- <span className="text-muted-foreground/70">{k}</span>
- <span className="break-all text-foreground/85">{v}</span>
+ <span className="text-muted-foreground">{k}</span>
+ <span className="break-all text-foreground">{v}</span>
</Fragment>
))}
</div>
@@ -574,7 +574,7 @@ function GroupRows({
<button
type="button"
onClick={onToggle}
- className="my-0.5 ml-2 inline-flex w-fit items-center gap-2 rounded border border-dashed border-muted-foreground/25 bg-muted/30 px-2 py-0.5 text-micro italic text-muted-foreground/70 hover:bg-muted/60 hover:text-foreground"
+ className="my-0.5 ml-2 inline-flex w-fit items-center gap-2 rounded border border-dashed border-muted-foreground/25 bg-muted/30 px-2 py-0.5 text-micro italic text-muted-foreground hover:bg-muted/60 hover:text-foreground"
>
<span>···</span>
<span>
@@ -608,7 +608,7 @@ function GroupRows({
<button
type="button"
onClick={onToggle}
- className="my-0.5 ml-2 inline-flex w-fit items-center gap-2 rounded border border-dashed border-muted-foreground/25 px-2 py-0.5 text-micro italic text-muted-foreground/60 hover:text-foreground"
+ className="my-0.5 ml-2 inline-flex w-fit items-center gap-2 rounded border border-dashed border-muted-foreground/25 px-2 py-0.5 text-micro italic text-muted-foreground hover:text-foreground"
>
<span>···</span>
<span>collapse {rest.length + 1} repeated</span>
@@ -642,9 +642,9 @@ function EmptyState({
subtitle = "";
}
return (
- <div className="flex h-full flex-col items-center justify-center gap-1 text-center text-muted-foreground/70">
+ <div className="flex h-full flex-col items-center justify-center gap-1 text-center text-muted-foreground">
<p className="text-body">{title}</p>
- <p className="text-caption text-muted-foreground/50">{subtitle}</p>
+ <p className="text-caption text-muted-foreground">{subtitle}</p>
</div>
);
}
diff --git a/apps/desktop/src/renderer/src/components/desktop-layout.tsx b/apps/desktop/src/renderer/src/components/desktop-layout.tsx
index f58cd8cf5e..e55569cded 100644
--- a/apps/desktop/src/renderer/src/components/desktop-layout.tsx
+++ b/apps/desktop/src/renderer/src/components/desktop-layout.tsx
@@ -36,7 +36,7 @@ const toolbarMotion = {
function WindowToolbar() {
const { canGoBack, canGoForward, goBack, goForward } = useTabHistory();
const navButtonClassName =
- "flex size-7 items-center justify-center rounded-md text-muted-foreground/70 transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-30";
+ "flex size-7 items-center justify-center rounded-md text-faint-foreground transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-30";
return (
<div
@@ -51,7 +51,7 @@ function WindowToolbar() {
style={{ WebkitAppRegion: "no-drag" } as React.CSSProperties}
>
<SidebarTrigger
- className="size-7 text-muted-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"
+ className="size-7 text-faint-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"
style={{ WebkitAppRegion: "no-drag" } as React.CSSProperties}
/>
<div className="flex items-center gap-1">
diff --git a/apps/desktop/src/renderer/src/components/tab-bar.tsx b/apps/desktop/src/renderer/src/components/tab-bar.tsx
index 7056e4f92e..dad859361d 100644
--- a/apps/desktop/src/renderer/src/components/tab-bar.tsx
+++ b/apps/desktop/src/renderer/src/components/tab-bar.tsx
@@ -500,7 +500,7 @@ function NewTabButton() {
aria-label="New tab"
title="New tab"
style={{ WebkitAppRegion: "no-drag" } as React.CSSProperties}
- className="mb-1 flex size-7 shrink-0 items-center justify-center self-end rounded-md text-muted-foreground/70 transition-colors hover:bg-muted/50 hover:text-muted-foreground"
+ className="mb-1 flex size-7 shrink-0 items-center justify-center self-end rounded-md text-faint-foreground transition-colors hover:bg-muted/50 hover:text-muted-foreground"
>
<Plus className="size-3.5" />
</button>
diff --git a/apps/web/app/custom.css b/apps/web/app/custom.css
index e1c272b7cf..a2d83ceb60 100644
--- a/apps/web/app/custom.css
+++ b/apps/web/app/custom.css
@@ -42,6 +42,9 @@
/* Kept in lockstep with the light value in tokens.css — see the AA
reasoning there before changing this number. */
--muted-foreground: oklch(0.505 0.016 285.938);
+ /* Same lockstep rule. Without this line the landing chevrons would inherit
+ the .dark value of --faint-foreground while sitting on a white surface. */
+ --faint-foreground: oklch(0.606 0.016 285.938);
--accent: oklch(0.967 0.001 286.375);
--accent-foreground: oklch(0.21 0.006 285.885);
--destructive: oklch(0.577 0.245 27.325);
diff --git a/apps/web/app/muted-foreground-contrast.test.ts b/apps/web/app/muted-foreground-contrast.test.ts
deleted file mode 100644
index 11589321ea..0000000000
--- a/apps/web/app/muted-foreground-contrast.test.ts
+++ /dev/null
@@ -1,168 +0,0 @@
-import { readFileSync } from "node:fs";
-import { resolve } from "node:path";
-import { describe, expect, it } from "vitest";
-
-/**
- * Is muted text actually readable on the surfaces it lands on?
- *
- * `text-muted-foreground` is the single most-used colour class in the app
- * (~2k call sites, including the primary nav labels in
- * `packages/views/layout/app-sidebar.tsx`), so one token decides whether a
- * large share of the product's secondary text clears WCAG AA. Light mode used
- * to fail it: at `oklch(0.552 ...)` the nav-hover pair (--sidebar-accent) was
- * 3.98:1 against a 4.5:1 floor.
- *
- * This asserts on the token file rather than on rendered components because
- * the token IS the contract — every consumer inherits whatever value lives
- * here, and a component test would only ever prove that a class name is
- * present, not that the pixels are legible.
- */
-
-const repoRoot = resolve(process.cwd(), "../..");
-const WCAG_AA_NORMAL_TEXT = 4.5;
-
-/**
- * Surfaces that muted text is painted on. Border/input/ring tokens are
- * excluded: they are not text backgrounds, and several carry alpha, which has
- * no single contrast answer without knowing what is underneath.
- */
-const backgroundTokens = [
- "--app-shell",
- "--page-canvas",
- "--background",
- "--surface",
- "--surface-raised",
- "--surface-hover",
- "--surface-selected",
- "--card",
- "--popover",
- "--muted",
- "--secondary",
- "--accent",
- "--sidebar",
- "--sidebar-accent",
-];
-
-type Rgb = [number, number, number];
-
-function readBlock(source: string, selector: string): Map<string, string> {
- const start = source.indexOf(`${selector} {`);
- if (start < 0) throw new Error(`${selector} block not found`);
- const end = source.indexOf("\n}", start);
- if (end < 0) throw new Error(`${selector} block is unterminated`);
-
- const declarations = new Map<string, string>();
- for (const match of source.slice(start, end).matchAll(/(--[\w-]+):\s*([^;]+);/g)) {
- const [, name, value] = match;
- if (name && value) declarations.set(name, value.trim());
- }
- return declarations;
-}
-
-/** Follows `--card: var(--surface)` style indirection to a literal colour. */
-function resolveToken(declarations: Map<string, string>, name: string): string {
- let current = name;
-
- for (let hops = 0; hops < 8; hops++) {
- const value = declarations.get(current);
- if (value === undefined) {
- throw new Error(`${current} is not declared (while resolving ${name})`);
- }
- const alias = /^var\((--[\w-]+)\)$/.exec(value)?.[1];
- if (!alias) return value;
- current = alias;
- }
- throw new Error(`${name} did not resolve to a literal colour`);
-}
-
-const clamp01 = (x: number) => Math.min(1, Math.max(0, x));
-const encodeSrgb = (c: number) =>
- c <= 0.0031308 ? 12.92 * c : 1.055 * Math.pow(c, 1 / 2.4) - 0.055;
-const decodeSrgb = (c: number) =>
- c <= 0.04045 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);
-
-/**
- * Quantises to 8-bit on purpose: contrast is judged on what the display
- * actually paints, not on the unrounded float behind it.
- */
-function oklchToRgb(value: string): Rgb {
- const match = /^oklch\(\s*([\d.]+)\s+([\d.]+)\s+([\d.]+)\s*\)$/.exec(value);
- if (!match?.[1] || !match[2] || !match[3]) {
- throw new Error(`expected an alpha-free oklch() colour, got "${value}"`);
- }
-
- const lightness = Number(match[1]);
- const chroma = Number(match[2]);
- const hue = (Number(match[3]) * Math.PI) / 180;
- const a = chroma * Math.cos(hue);
- const b = chroma * Math.sin(hue);
-
- const l = (lightness + 0.3963377774 * a + 0.2158037573 * b) ** 3;
- const m = (lightness - 0.1055613458 * a - 0.0638541728 * b) ** 3;
- const s = (lightness - 0.0894841775 * a - 1.291485548 * b) ** 3;
-
- const channel = (linear: number) =>
- Math.round(clamp01(encodeSrgb(clamp01(linear))) * 255);
-
- return [
- channel(4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s),
- channel(-1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s),
- channel(-0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s),
- ];
-}
-
-function relativeLuminance([r, g, b]: Rgb): number {
- return (
- 0.2126 * decodeSrgb(r / 255) +
- 0.7152 * decodeSrgb(g / 255) +
- 0.0722 * decodeSrgb(b / 255)
- );
-}
-
-function contrastRatio(foreground: Rgb, background: Rgb): number {
- const a = relativeLuminance(foreground);
- const b = relativeLuminance(background);
- const [lighter, darker] = a > b ? [a, b] : [b, a];
- return (lighter + 0.05) / (darker + 0.05);
-}
-
-function expectMutedForegroundPassesAA(declarations: Map<string, string>) {
- const foreground = oklchToRgb(resolveToken(declarations, "--muted-foreground"));
-
- for (const token of backgroundTokens) {
- const background = oklchToRgb(resolveToken(declarations, token));
- const ratio = contrastRatio(foreground, background);
-
- expect(
- Number(ratio.toFixed(2)),
- `--muted-foreground on ${token} is ${ratio.toFixed(2)}:1`,
- ).toBeGreaterThanOrEqual(WCAG_AA_NORMAL_TEXT);
- }
-}
-
-const tokensCss = () =>
- readFileSync(resolve(repoRoot, "packages/ui/styles/tokens.css"), "utf8");
-
-describe("muted-foreground contrast", () => {
- it("clears WCAG AA on every light surface", () => {
- expectMutedForegroundPassesAA(readBlock(tokensCss(), ":root"));
- });
-
- it("clears WCAG AA on every dark surface", () => {
- expectMutedForegroundPassesAA(readBlock(tokensCss(), ".dark"));
- });
-
- // The landing route tree re-declares the light palette so token-driven
- // components stay light under next-themes' `.dark` class. That copy is only
- // correct while it matches the source, so drift here is a bug in itself.
- it("keeps the landing-light copy in sync with the light token", () => {
- const landing = readBlock(
- readFileSync(resolve(repoRoot, "apps/web/app/custom.css"), "utf8"),
- ".landing-light",
- );
-
- expect(resolveToken(landing, "--muted-foreground")).toBe(
- resolveToken(readBlock(tokensCss(), ":root"), "--muted-foreground"),
- );
- });
-});
diff --git a/apps/web/app/text-contrast.test.ts b/apps/web/app/text-contrast.test.ts
new file mode 100644
index 0000000000..f2f4ca5818
--- /dev/null
+++ b/apps/web/app/text-contrast.test.ts
@@ -0,0 +1,518 @@
+import { readFileSync, readdirSync, statSync } from "node:fs";
+import { resolve, join, relative } from "node:path";
+import { describe, expect, it } from "vitest";
+
+/**
+ * Is every tone the product paints text and marks with actually legible, and is
+ * hierarchy still expressed with tokens rather than with transparency?
+ *
+ * The two questions are one contract, because the answer to the first used to
+ * depend on the second. `text-muted-foreground/70` reads as "muted, a bit
+ * quieter"; on a light surface it is 2.69:1, which is not quieter, it is gone.
+ * 152 call sites spread across /30 to /80 and every one failed AA in light
+ * mode — not because anyone chose an illegible grey, but because the palette
+ * stopped at --muted-foreground and transparency was the only way left to say
+ * "quieter".
+ *
+ * So the palette got one more step, and it is deliberately a NON-TEXT step.
+ * --faint-foreground clears 3:1 (WCAG 1.4.11, icons and glyphs) but not 4.5:1,
+ * because there is no room for a third readable text tone: AA caps a lighter
+ * text tone at L 0.523 on our darkest light surface and muted already sits at
+ * 0.505. A tier 0.018 apart is a tier nobody can see, so text keeps exactly one
+ * floor and it is --muted-foreground.
+ *
+ * Assertions recompute contrast from the token files rather than hard-coding
+ * ratios, so editing a token value is what fails the test — the only way a
+ * colour guard stays true. Ratios are WCAG 2.x relative luminance.
+ */
+
+const repoRoot = resolve(process.cwd(), "../..");
+
+/** WCAG 1.4.3 for body and label text; 1.4.11 for icons and other marks. */
+const WCAG_AA_NORMAL_TEXT = 4.5;
+const WCAG_AA_NON_TEXT = 3.0;
+
+/**
+ * Surfaces that product text and marks are painted on. Border/input/ring tokens
+ * are excluded: they are not text backgrounds, and several carry alpha, which
+ * has no single contrast answer without knowing what is underneath.
+ */
+const backgroundTokens = [
+ "--app-shell",
+ "--page-canvas",
+ "--background",
+ "--surface",
+ "--surface-raised",
+ "--surface-hover",
+ "--surface-selected",
+ "--card",
+ "--popover",
+ "--muted",
+ "--secondary",
+ "--accent",
+ "--sidebar",
+ "--sidebar-accent",
+];
+
+type Rgb = [number, number, number];
+
+function readBlock(source: string, selector: string): Map<string, string> {
+ const start = source.indexOf(`${selector} {`);
+ if (start < 0) throw new Error(`${selector} block not found`);
+ const end = source.indexOf("\n}", start);
+ if (end < 0) throw new Error(`${selector} block is unterminated`);
+
+ const declarations = new Map<string, string>();
+ for (const match of source.slice(start, end).matchAll(/(--[\w-]+):\s*([^;]+);/g)) {
+ const [, name, value] = match;
+ if (name && value) declarations.set(name, value.trim());
+ }
+ return declarations;
+}
+
+/** Follows `--card: var(--surface)` style indirection to a literal colour. */
+function resolveToken(declarations: Map<string, string>, name: string): string {
+ let current = name;
+
+ for (let hops = 0; hops < 8; hops++) {
+ const value = declarations.get(current);
+ if (value === undefined) {
+ throw new Error(`${current} is not declared (while resolving ${name})`);
+ }
+ const alias = /^var\((--[\w-]+)\)$/.exec(value)?.[1];
+ if (!alias) return value;
+ current = alias;
+ }
+ throw new Error(`${name} did not resolve to a literal colour`);
+}
+
+const clamp01 = (x: number) => Math.min(1, Math.max(0, x));
+const encodeSrgb = (c: number) =>
+ c <= 0.0031308 ? 12.92 * c : 1.055 * Math.pow(c, 1 / 2.4) - 0.055;
+const decodeSrgb = (c: number) =>
+ c <= 0.04045 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);
+
+/**
+ * Quantises to 8-bit on purpose: contrast is judged on what the display
+ * actually paints, not on the unrounded float behind it.
+ */
+function oklchToRgb(value: string): Rgb {
+ const match = /^oklch\(\s*([\d.]+)\s+([\d.]+)\s+([\d.]+)\s*\)$/.exec(value);
+ if (!match?.[1] || !match[2] || !match[3]) {
+ throw new Error(`expected an alpha-free oklch() colour, got "${value}"`);
+ }
+
+ const lightness = Number(match[1]);
+ const chroma = Number(match[2]);
+ const hue = (Number(match[3]) * Math.PI) / 180;
+ const a = chroma * Math.cos(hue);
+ const b = chroma * Math.sin(hue);
+
+ const l = (lightness + 0.3963377774 * a + 0.2158037573 * b) ** 3;
+ const m = (lightness - 0.1055613458 * a - 0.0638541728 * b) ** 3;
+ const s = (lightness - 0.0894841775 * a - 1.291485548 * b) ** 3;
+
+ const channel = (linear: number) =>
+ Math.round(clamp01(encodeSrgb(clamp01(linear))) * 255);
+
+ return [
+ channel(4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s),
+ channel(-1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s),
+ channel(-0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s),
+ ];
+}
+
+function relativeLuminance([r, g, b]: Rgb): number {
+ return (
+ 0.2126 * decodeSrgb(r / 255) +
+ 0.7152 * decodeSrgb(g / 255) +
+ 0.0722 * decodeSrgb(b / 255)
+ );
+}
+
+function contrastRatio(foreground: Rgb, background: Rgb): number {
+ const a = relativeLuminance(foreground);
+ const b = relativeLuminance(background);
+ const [lighter, darker] = a > b ? [a, b] : [b, a];
+ return (lighter + 0.05) / (darker + 0.05);
+}
+
+function expectTonePasses(
+ declarations: Map<string, string>,
+ tone: string,
+ floor: number,
+) {
+ const foreground = oklchToRgb(resolveToken(declarations, tone));
+
+ for (const token of backgroundTokens) {
+ const background = oklchToRgb(resolveToken(declarations, token));
+ const ratio = contrastRatio(foreground, background);
+
+ expect(
+ Number(ratio.toFixed(2)),
+ `${tone} on ${token} is ${ratio.toFixed(2)}:1`,
+ ).toBeGreaterThanOrEqual(floor);
+ }
+}
+
+const tokensCss = () =>
+ readFileSync(resolve(repoRoot, "packages/ui/styles/tokens.css"), "utf8");
+const landingCss = () =>
+ readFileSync(resolve(repoRoot, "apps/web/app/custom.css"), "utf8");
+
+// ── source scanning ────────────────────────────────────────────────────────
+
+const scanRoots = ["packages/ui", "packages/views", "apps/web", "apps/desktop/src"];
+const skipDirs = new Set(["node_modules", ".next", "dist", "out", "build", ".turbo"]);
+const sourceExtensions = [".ts", ".tsx", ".css"];
+
+/**
+ * Colours whose hierarchy is fully expressed by solid tokens, so a fraction of
+ * one is always someone inventing a tier. `white` and `background` are absent
+ * on purpose: they paint text on photos, gradients, and inverted cards, where
+ * no solid secondary token exists and transparency is the honest mechanism.
+ */
+const guardedColors = [
+ "foreground",
+ "muted-foreground",
+ "sidebar-foreground",
+ "destructive",
+ "current",
+];
+
+/**
+ * Transparency behind an interaction or disabled state is not a hierarchy
+ * level: the resting state carries the contrast obligation and it is solid,
+ * and WCAG exempts disabled controls outright. `dark:` is deliberately absent —
+ * it paints a resting state.
+ *
+ * The test for admission to this list is narrow: the state must be transient
+ * and user-driven, and the element's resting appearance must already be solid.
+ * `dragging` qualifies for the same reason `active` does — a drag ghost at 60%
+ * is feedback for an in-flight gesture, not a tier the text lives in.
+ *
+ * The exemption is never decided by "a state word appears somewhere nearby".
+ * That is how `"text-muted-foreground hover:text-foreground opacity-50"` slips
+ * through: the `hover:` belongs to the colour, not to the opacity, and the
+ * opacity is resting-state. It is decided by exactly two things — the variant
+ * prefix carried by the opacity utility itself, and the condition that governs
+ * the literal the utility sits in — because those are the only two places the
+ * state can actually live.
+ */
+const stateWords =
+ /\b(?:hover|focus|focus-visible|focus-within|active|disabled|visited|dragging|isDragging|group-hover|group-focus|peer-hover|peer-focus|aria-disabled|data-disabled)\b/;
+
+/**
+ * `text-muted-foreground/70`, and equally `/[0.5]` and `/[50%]` — Tailwind
+ * accepts an arbitrary alpha too, and a guard that only knows the bare-number
+ * form is a guard with a documented way around it.
+ */
+const alphaOnText = new RegExp(
+ String.raw`[\w:\[\]./-]*\btext-(?:${guardedColors.join("|")})/(?:\d+|\[[^\]]+\])`,
+ "g",
+);
+
+/**
+ * A standalone `opacity-*` utility dims the element it sits on just as a slash
+ * alpha does, so `text-muted-foreground opacity-70` is the same defect wearing
+ * different syntax.
+ *
+ * The colour and the opacity are correlated across the whole class expression,
+ * not within one string. `cn("… text-muted-foreground", suppressed &&
+ * "opacity-60")` is one element wearing both, and that split-literal shape is
+ * the common one — it is how the comment trigger chips dimmed live text to
+ * 2.55:1 while a per-literal check called them clean.
+ */
+const guardedColorInClass = new RegExp(String.raw`\btext-(?:${guardedColors.join("|")})\b`);
+const classLiteral = /"([^"\\]*(?:\\.[^"\\]*)*)"|`([^`\\]*(?:\\.[^`\\]*)*)`/gs;
+const opacityUtility = /(?<![\w:-])opacity-(\d{1,3})\b/g;
+
+/** Walks to the `)` matching the `(` at `open`, or -1 if unbalanced. */
+function matchingParen(source: string, open: number): number {
+ let depth = 0;
+ for (let i = open; i < source.length; i += 1) {
+ if (source[i] === "(") depth += 1;
+ else if (source[i] === ")") {
+ depth -= 1;
+ if (depth === 0) return i;
+ }
+ }
+ return -1;
+}
+
+/**
+ * One element's worth of classes: a whole `cn(...)` call, or a string/template
+ * literal that is not already inside one.
+ */
+function classExpressions(source: string): { start: number; end: number }[] {
+ const units: { start: number; end: number }[] = [];
+ const calls: [number, number][] = [];
+
+ for (const call of source.matchAll(/\bcn\(/g)) {
+ const open = call.index + call[0].length - 1;
+ const close = matchingParen(source, open);
+ if (close < 0) continue;
+ if (calls.some(([s, e]) => call.index >= s && close <= e)) continue;
+ calls.push([call.index, close]);
+ units.push({ start: call.index, end: close + 1 });
+ }
+
+ for (const literal of source.matchAll(classLiteral)) {
+ if (calls.some(([s, e]) => literal.index >= s && literal.index < e)) continue;
+ units.push({ start: literal.index, end: literal.index + literal[0].length });
+ }
+
+ return units;
+}
+
+/**
+ * The pieces of a class expression that each carry their own condition: every
+ * quoted literal, plus the static chunks of a template literal between its
+ * `${…}` holes. Splitting this finely is what lets
+ * `` `… ${disabled ? "opacity-60" : ""}` `` be judged by its own ternary
+ * instead of by the template it happens to sit in.
+ */
+function classSegments(
+ source: string,
+ unit: { start: number; end: number },
+): { body: string; bodyStart: number; delimiter: number }[] {
+ const text = source.slice(unit.start, unit.end);
+ const segments: { body: string; bodyStart: number; delimiter: number }[] = [];
+
+ for (const quoted of text.matchAll(/"([^"\\]*(?:\\.[^"\\]*)*)"/g)) {
+ segments.push({
+ body: quoted[1] ?? "",
+ bodyStart: unit.start + quoted.index + 1,
+ delimiter: unit.start + quoted.index,
+ });
+ }
+
+ for (const template of text.matchAll(/`([^`\\]*(?:\\.[^`\\]*)*)`/gs)) {
+ const inner = template[1] ?? "";
+ const innerStart = unit.start + template.index + 1;
+ const delimiter = unit.start + template.index;
+ let cursor = 0;
+ for (const hole of inner.matchAll(/\$\{[^}]*\}/gs)) {
+ segments.push({
+ body: inner.slice(cursor, hole.index),
+ bodyStart: innerStart + cursor,
+ delimiter,
+ });
+ cursor = hole.index + hole[0].length;
+ }
+ segments.push({ body: inner.slice(cursor), bodyStart: innerStart + cursor, delimiter });
+ }
+
+ return segments;
+}
+
+/**
+ * The condition governing a segment: whatever sits between its opening
+ * delimiter and the nearest structural boundary — `suppressed &&`,
+ * `disabled ?`, or nothing at all. When it is nothing, the literal is a leading
+ * argument, so the property key the call is assigned to decides instead
+ * (`disabled: cn("… opacity-50")`). That key has to look like `identifier:`
+ * immediately before the call, so a neighbouring `disabled={disabled}` prop
+ * cannot be mistaken for one.
+ */
+function governingCondition(source: string, unitStart: number, delimiter: number): string {
+ const boundary = Math.max(
+ ...[",", "(", "{", "[", "}", "`"].map((c) => source.lastIndexOf(c, delimiter - 1)),
+ );
+ const between = source.slice(Math.max(boundary + 1, Math.min(unitStart, delimiter)), delimiter);
+ if (between.trim()) return between;
+
+ const beforeCall = source.slice(Math.max(0, unitStart - 60), unitStart);
+ return /([\w$]+)\s*:\s*$/.exec(beforeCall)?.[1] ?? "";
+}
+
+/**
+ * Comments name the old classes when explaining what replaced them, so they are
+ * stripped first. Over-stripping can only hide a violation, never invent one.
+ */
+function stripComments(source: string): string {
+ return source.replace(/\/\*[\s\S]*?\*\//g, "").replace(/(^|[^:])\/\/[^\n]*/g, "$1");
+}
+
+function collectSourceFiles(dir: string, found: string[] = []): string[] {
+ for (const entry of readdirSync(dir)) {
+ if (skipDirs.has(entry)) continue;
+ const path = join(dir, entry);
+ if (statSync(path).isDirectory()) {
+ collectSourceFiles(path, found);
+ continue;
+ }
+ if (!sourceExtensions.some((ext) => entry.endsWith(ext))) continue;
+ if (/\.test\.tsx?$/.test(entry)) continue;
+ found.push(path);
+ }
+ return found;
+}
+
+const lineOf = (source: string, index: number) =>
+ source.slice(0, index).split("\n").length;
+
+/** Both ways of writing "dim this tone", reported together. */
+function findTransparencyAsHierarchy(source: string): { line: number; found: string }[] {
+ const stripped = stripComments(source);
+ const violations: { line: number; found: string }[] = [];
+
+ for (const match of stripped.matchAll(alphaOnText)) {
+ if (stateWords.test(match[0])) continue;
+ violations.push({ line: lineOf(stripped, match.index), found: match[0] });
+ }
+
+ for (const unit of classExpressions(stripped)) {
+ const text = stripped.slice(unit.start, unit.end);
+ if (!guardedColorInClass.test(text)) continue;
+
+ for (const segment of classSegments(stripped, unit)) {
+ if (stateWords.test(governingCondition(stripped, unit.start, segment.delimiter))) continue;
+
+ for (const dim of segment.body.matchAll(opacityUtility)) {
+ // opacity-0 and opacity-100 are show/hide, not a tone.
+ if (dim[1] === "0" || dim[1] === "100") continue;
+ // Only the variant prefix the utility itself carries counts here; a
+ // `hover:` belonging to some other class in the same string does not.
+ const prefix = /(\S*)$/.exec(segment.body.slice(0, dim.index))?.[1] ?? "";
+ if (stateWords.test(prefix)) continue;
+ violations.push({
+ line: lineOf(stripped, segment.bodyStart + dim.index),
+ found: dim[0],
+ });
+ }
+ }
+ }
+
+ return violations;
+}
+
+// ── the contract ───────────────────────────────────────────────────────────
+
+describe("text contrast", () => {
+ describe("--muted-foreground, the floor for text", () => {
+ it("clears WCAG AA on every light surface", () => {
+ expectTonePasses(readBlock(tokensCss(), ":root"), "--muted-foreground", WCAG_AA_NORMAL_TEXT);
+ });
+
+ it("clears WCAG AA on every dark surface", () => {
+ expectTonePasses(readBlock(tokensCss(), ".dark"), "--muted-foreground", WCAG_AA_NORMAL_TEXT);
+ });
+ });
+
+ describe("--faint-foreground, for marks that are not text", () => {
+ it("clears non-text contrast on every light surface", () => {
+ expectTonePasses(readBlock(tokensCss(), ":root"), "--faint-foreground", WCAG_AA_NON_TEXT);
+ });
+
+ it("clears non-text contrast on every dark surface", () => {
+ expectTonePasses(readBlock(tokensCss(), ".dark"), "--faint-foreground", WCAG_AA_NON_TEXT);
+ });
+
+ it.each([
+ ["light", ":root"],
+ ["dark", ".dark"],
+ ])("stays quieter than muted-foreground in %s mode", (_mode, selector) => {
+ const declarations = readBlock(tokensCss(), selector);
+ const surface = oklchToRgb(resolveToken(declarations, "--surface"));
+ const faint = oklchToRgb(resolveToken(declarations, "--faint-foreground"));
+ const muted = oklchToRgb(resolveToken(declarations, "--muted-foreground"));
+
+ expect(
+ contrastRatio(faint, surface),
+ "faint must read as the quieter step, or the two tiers have swapped",
+ ).toBeLessThan(contrastRatio(muted, surface));
+ });
+ });
+
+ // The landing route tree re-declares the light palette so token-driven
+ // components stay light under next-themes' `.dark` class. That copy is only
+ // correct while it matches the source, so drift here is a bug in itself — a
+ // tone missing from the copy silently inherits its `.dark` value on a white
+ // surface.
+ it.each(["--muted-foreground", "--faint-foreground"])(
+ "keeps the landing-light copy of %s in sync with the light token",
+ (tone) => {
+ expect(resolveToken(readBlock(landingCss(), ".landing-light"), tone)).toBe(
+ resolveToken(readBlock(tokensCss(), ":root"), tone),
+ );
+ },
+ );
+
+ /**
+ * The detector is the part of this guard most likely to rot, because every
+ * hole in it is silent: the sweep still reports "clean". Both earlier
+ * versions passed the repo scan while real violations sat in the tree — one
+ * because it only looked inside a single string, one because it accepted any
+ * state word near the utility. So the shapes it must and must not catch are
+ * pinned here, next to the reason each one exists.
+ */
+ describe("the detector itself", () => {
+ const caught = (source: string) => findTransparencyAsHierarchy(source).length > 0;
+
+ it.each([
+ ["slash alpha", `<i className="text-muted-foreground/50" />`],
+ ["arbitrary decimal alpha", `<i className="text-muted-foreground/[0.5]" />`],
+ ["arbitrary percent alpha", `<i className="text-muted-foreground/[50%]" />`],
+ ["opacity in the same string", `<i className="text-muted-foreground opacity-70" />`],
+ [
+ "opacity in a sibling cn() argument",
+ `<i className={cn("text-muted-foreground", "opacity-50")} />`,
+ ],
+ [
+ "opacity behind a non-state condition",
+ `<i className={cn("text-muted-foreground", suppressed && "opacity-60")} />`,
+ ],
+ [
+ "resting opacity next to a hover-prefixed colour",
+ `<i className="text-muted-foreground hover:text-foreground opacity-50" />`,
+ ],
+ ])("catches %s", (_shape, source) => {
+ expect(caught(source)).toBe(true);
+ });
+
+ it.each([
+ ["a variant on the utility itself", `<i className="text-muted-foreground disabled:opacity-50" />`],
+ [
+ "a disabled ternary",
+ "<i className={`text-muted-foreground ${disabled ? \"opacity-60\" : \"\"}`} />",
+ ],
+ [
+ "a disabled classNames key",
+ `{ disabled: cn("text-muted-foreground opacity-50", defaults.disabled) }`,
+ ],
+ ["opacity-0 / opacity-100 show-hide", `<i className="text-muted-foreground opacity-0" />`],
+ ["opacity with no guarded colour in the expression", `<i className="text-white opacity-50" />`],
+ ["the colour alone", `<i className="text-muted-foreground" />`],
+ ])("leaves %s alone", (_shape, source) => {
+ expect(caught(source)).toBe(false);
+ });
+
+ it("does not mistake an apostrophe in a comment for a class string", () => {
+ expect(caught(`// a block's own opacity-50 text-muted-foreground\nconst x = 1;`)).toBe(false);
+ });
+ });
+
+ it("product UI expresses text hierarchy with tokens, not transparency", () => {
+ const violations: string[] = [];
+
+ for (const root of scanRoots) {
+ for (const path of collectSourceFiles(resolve(repoRoot, root))) {
+ for (const { line, found } of findTransparencyAsHierarchy(
+ readFileSync(path, "utf8"),
+ )) {
+ violations.push(
+ `${relative(repoRoot, path)}:${line} ${found} ` +
+ `(use a solid tone: text-foreground / text-muted-foreground, ` +
+ `or text-faint-foreground for icons and glyphs)`,
+ );
+ }
+ }
+ }
+
+ expect(
+ violations,
+ `Transparency standing in for a text tone:\n${violations.join("\n")}`,
+ ).toEqual([]);
+ });
+});
diff --git a/apps/web/features/landing/components/features-section.tsx b/apps/web/features/landing/components/features-section.tsx
index 587fdb0664..96950c550f 100644
--- a/apps/web/features/landing/components/features-section.tsx
+++ b/apps/web/features/landing/components/features-section.tsx
@@ -164,9 +164,9 @@ function TeammatesVisual() {
<div className="flex h-10 shrink-0 items-center border-b bg-background px-4 text-body">
<div className="flex items-center gap-1.5 min-w-0 text-caption">
<span className="text-muted-foreground">Multica Demo</span>
- <ChevronRight className="h-3 w-3 text-muted-foreground/50 shrink-0" />
+ <ChevronRight className="h-3 w-3 text-faint-foreground shrink-0" />
<span className="text-muted-foreground">MUL-18</span>
- <ChevronRight className="h-3 w-3 text-muted-foreground/50 shrink-0" />
+ <ChevronRight className="h-3 w-3 text-faint-foreground shrink-0" />
<span className="truncate">Refactor API error handling middleware</span>
</div>
</div>
@@ -423,9 +423,9 @@ function AutonomousVisual() {
<div className="flex h-10 shrink-0 items-center border-b bg-background px-4 text-body">
<div className="flex items-center gap-1.5 min-w-0 text-caption">
<span className="text-muted-foreground">Multica Demo</span>
- <ChevronRight className="h-3 w-3 text-muted-foreground/50 shrink-0" />
+ <ChevronRight className="h-3 w-3 text-faint-foreground shrink-0" />
<span className="text-muted-foreground">MUL-18</span>
- <ChevronRight className="h-3 w-3 text-muted-foreground/50 shrink-0" />
+ <ChevronRight className="h-3 w-3 text-faint-foreground shrink-0" />
<span className="truncate">Refactor API error handling middleware</span>
</div>
</div>
@@ -683,7 +683,7 @@ const runtimeStatusConfig = {
idle: { label: "Idle", color: "text-muted-foreground", dot: "bg-muted-foreground" },
working: { label: "Working", color: "text-success", dot: "bg-success" },
error: { label: "Error", color: "text-destructive", dot: "bg-destructive" },
- offline: { label: "Offline", color: "text-muted-foreground/50", dot: "bg-muted-foreground/40" },
+ offline: { label: "Offline", color: "text-muted-foreground", dot: "bg-muted-foreground/40" },
};
const mockRuntimeList = [
diff --git a/packages/ui/components/ui/alert.tsx b/packages/ui/components/ui/alert.tsx
index 8411471157..eec20142c4 100644
--- a/packages/ui/components/ui/alert.tsx
+++ b/packages/ui/components/ui/alert.tsx
@@ -10,7 +10,7 @@ const alertVariants = cva(
variant: {
default: "bg-card text-card-foreground",
destructive:
- "bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current",
+ "bg-card text-destructive *:data-[slot=alert-description]:text-destructive *:[svg]:text-current",
},
},
defaultVariants: {
diff --git a/packages/ui/components/ui/sidebar.tsx b/packages/ui/components/ui/sidebar.tsx
index dfee669a85..a5257a2f99 100644
--- a/packages/ui/components/ui/sidebar.tsx
+++ b/packages/ui/components/ui/sidebar.tsx
@@ -563,7 +563,7 @@ function SidebarGroupLabel({
props: mergeProps<"div">(
{
className: cn(
- "flex h-8 shrink-0 items-center rounded-md px-2 text-caption font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
+ "flex h-8 shrink-0 items-center rounded-md px-2 text-caption font-medium text-muted-foreground ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
className
),
},
diff --git a/packages/ui/components/ui/tabs.tsx b/packages/ui/components/ui/tabs.tsx
index d4d87b1a08..6c47dfbcfe 100644
--- a/packages/ui/components/ui/tabs.tsx
+++ b/packages/ui/components/ui/tabs.tsx
@@ -58,7 +58,7 @@ function TabsTrigger({ className, ...props }: TabsPrimitive.Tab.Props) {
<TabsPrimitive.Tab
data-slot="tabs-trigger"
className={cn(
- "relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-body font-medium whitespace-nowrap text-foreground/60 transition-[color,background-color,border-color,box-shadow] group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ "relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-body font-medium whitespace-nowrap text-muted-foreground transition-[color,background-color,border-color,box-shadow] group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
"group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent",
"data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground",
"after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",
diff --git a/packages/ui/markdown/CodeBlock.tsx b/packages/ui/markdown/CodeBlock.tsx
index c0c2979ee4..41b3dde441 100644
--- a/packages/ui/markdown/CodeBlock.tsx
+++ b/packages/ui/markdown/CodeBlock.tsx
@@ -243,7 +243,7 @@ export function InlineCode({
return (
<code
className={cn(
- 'px-1.5 py-0.5 rounded bg-foreground/[0.03] border border-foreground/[0.05] font-mono text-body text-foreground/75',
+ 'px-1.5 py-0.5 rounded bg-foreground/[0.03] border border-foreground/[0.05] font-mono text-body text-foreground',
CODE_LIGATURE_CLASS,
className
)}
diff --git a/packages/ui/styles/tokens.css b/packages/ui/styles/tokens.css
index f302f3b602..cba754f12c 100644
--- a/packages/ui/styles/tokens.css
+++ b/packages/ui/styles/tokens.css
@@ -38,6 +38,7 @@
--color-brand-foreground: var(--brand-foreground);
--color-accent-foreground: var(--accent-foreground);
--color-accent: var(--accent);
+ --color-faint-foreground: var(--faint-foreground);
--color-muted-foreground: var(--muted-foreground);
--color-muted: var(--muted);
--color-secondary-foreground: var(--secondary-foreground);
@@ -167,6 +168,18 @@
worst case at 4.88:1. Raise it and the nav labels fail again. Hue and
chroma are unchanged so the neutral ramp keeps its cast. */
--muted-foreground: oklch(0.505 0.016 285.938);
+ /* The quiet step below muted, for marks that are not text: disclosure
+ chevrons, separator glyphs, the em dash standing in for an empty cell,
+ the large icon in an empty state. It exists because the alternative
+ people reached for was alpha — 152 call sites of
+ text-muted-foreground/30..80 — and alpha on light surfaces lands
+ between 1.5:1 and 3.8:1, which fails even the 3:1 floor for non-text.
+ 0.606 is the lightest step that still clears 3:1 (WCAG 1.4.11) on every
+ surface, worst case --sidebar-accent at 3.19:1. Deliberately NOT valid
+ for text: text has one floor, --muted-foreground, and there is no room
+ for a third readable step (AA caps a lighter text tone at L 0.523 here,
+ 0.018 away from muted — a difference no one can see). */
+ --faint-foreground: oklch(0.606 0.016 285.938);
--accent: oklch(0.967 0.001 286.375);
--accent-foreground: oklch(0.21 0.006 285.885);
--destructive: oklch(0.577 0.245 27.325);
@@ -234,6 +247,11 @@
--secondary-foreground: oklch(0.985 0 0);
--muted: oklch(0.274 0.006 286.033);
--muted-foreground: oklch(0.705 0.015 286.067);
+ /* Same role as light mode, mirrored: fainter means darker here. 0.60 is
+ the darkest step still clearing 3:1 on every dark surface, worst case
+ --surface-selected at 3.45:1. The step away from muted (0.105 L) matches
+ light mode's, so a chevron reads equally quiet in both themes. */
+ --faint-foreground: oklch(0.60 0.015 286.067);
--accent: oklch(0.274 0.006 286.033);
--accent-foreground: oklch(0.985 0 0);
--destructive: oklch(0.704 0.191 22.216);
diff --git a/packages/views/agents/components/agent-list-toolbar.tsx b/packages/views/agents/components/agent-list-toolbar.tsx
index 62ddd27078..b3cf0f3a78 100644
--- a/packages/views/agents/components/agent-list-toolbar.tsx
+++ b/packages/views/agents/components/agent-list-toolbar.tsx
@@ -234,7 +234,7 @@ export function AgentListToolbar({
onClick={() => onScopeChange(s)}
>
{SCOPE_LABELS[s]}
- <span className="tabular-nums text-caption text-muted-foreground/70">
+ <span className="tabular-nums text-caption text-muted-foreground">
{scopeCounts[s]}
</span>
</Button>
@@ -262,7 +262,7 @@ export function AgentListToolbar({
{AGENT_SCOPES.map((s) => (
<DropdownMenuRadioItem key={s} value={s}>
{SCOPE_LABELS[s]}
- <span className="ml-2 tabular-nums text-caption text-muted-foreground/70">
+ <span className="ml-2 tabular-nums text-caption text-muted-foreground">
{scopeCounts[s]}
</span>
</DropdownMenuRadioItem>
diff --git a/packages/views/agents/components/agents-page.tsx b/packages/views/agents/components/agents-page.tsx
index 681714ec94..24e50d07b5 100644
--- a/packages/views/agents/components/agents-page.tsx
+++ b/packages/views/agents/components/agents-page.tsx
@@ -391,7 +391,7 @@ function NameCell({ row }: { row: AgentListRow }) {
<Tooltip>
<TooltipTrigger
render={
- <Lock className="h-3 w-3 shrink-0 text-muted-foreground/60" />
+ <Lock className="h-3 w-3 shrink-0 text-faint-foreground" />
}
/>
<TooltipContent>{VISIBILITY_TOOLTIP.private}</TooltipContent>
@@ -421,7 +421,7 @@ function StatusCell({ row }: { row: AgentListRow }) {
if (agent.archived_at) {
return (
<ListGridCell>
- <span className="text-caption text-muted-foreground/60">
+ <span className="text-caption text-muted-foreground">
{t(($) => $.row.archived)}
</span>
</ListGridCell>
@@ -430,7 +430,7 @@ function StatusCell({ row }: { row: AgentListRow }) {
if (!presence) {
return (
<ListGridCell>
- <span className="text-caption text-muted-foreground/40">—</span>
+ <span className="text-caption text-faint-foreground">—</span>
</ListGridCell>
);
}
@@ -460,7 +460,7 @@ function OwnerCell({ row }: { row: AgentListRow }) {
if (!agent.owner_id) {
return (
<ListGridCell className="hidden @2xl:flex">
- <span className="text-caption text-muted-foreground/40">—</span>
+ <span className="text-caption text-faint-foreground">—</span>
</ListGridCell>
);
}
@@ -520,7 +520,7 @@ function RuntimeCell({ row }: { row: AgentListRow }) {
</span>
</span>
) : (
- <span className="text-caption text-muted-foreground/40">—</span>
+ <span className="text-caption text-faint-foreground">—</span>
)}
</ListGridCell>
);
@@ -532,7 +532,7 @@ function LastActiveCell({ row }: { row: AgentListRow }) {
return (
<ListGridCell className="hidden @2xl:flex">
{days === null ? (
- <span className="truncate text-caption text-muted-foreground/40">
+ <span className="truncate text-caption text-muted-foreground">
{row.agent.archived_at ? "—" : t(($) => $.last_active.none)}
</span>
) : (
diff --git a/packages/views/agents/components/inspector/runtime-picker.tsx b/packages/views/agents/components/inspector/runtime-picker.tsx
index 2ce2df855c..779ab487b5 100644
--- a/packages/views/agents/components/inspector/runtime-picker.tsx
+++ b/packages/views/agents/components/inspector/runtime-picker.tsx
@@ -444,7 +444,7 @@ export function RuntimePicker({
</span>
)}
{owner && machine.providerNames.length > 0 && (
- <span className="text-muted-foreground/40">·</span>
+ <span className="text-faint-foreground">·</span>
)}
{machine.providerNames.length > 0 && (
<span className="flex shrink-0 items-center gap-1">
@@ -472,7 +472,7 @@ export function RuntimePicker({
{containsSelection && (
<Check className="h-3.5 w-3.5 shrink-0 text-muted-foreground" />
)}
- <ChevronRight className="h-3.5 w-3.5 shrink-0 text-muted-foreground/60" />
+ <ChevronRight className="h-3.5 w-3.5 shrink-0 text-faint-foreground" />
</button>
);
})
diff --git a/packages/views/agents/components/inspector/skill-attach.tsx b/packages/views/agents/components/inspector/skill-attach.tsx
index 5622385174..e37ea4aaa6 100644
--- a/packages/views/agents/components/inspector/skill-attach.tsx
+++ b/packages/views/agents/components/inspector/skill-attach.tsx
@@ -45,7 +45,7 @@ export function SkillAttach({
onClick={() => setOpen(true)}
aria-label={t(($) => $.skill_attach.trigger_aria)}
title={t(($) => $.skill_attach.trigger_aria)}
- className="inline-flex cursor-pointer items-center gap-0.5 rounded-md border border-dashed border-muted-foreground/30 px-1.5 py-0.5 text-micro font-medium text-muted-foreground/70 transition-colors hover:border-muted-foreground/60 hover:bg-accent/50 hover:text-muted-foreground"
+ className="inline-flex cursor-pointer items-center gap-0.5 rounded-md border border-dashed border-muted-foreground/30 px-1.5 py-0.5 text-micro font-medium text-muted-foreground transition-colors hover:border-muted-foreground/60 hover:bg-accent/50 hover:text-muted-foreground"
>
<Plus className="h-2.5 w-2.5" />
{t(($) => $.skill_attach.trigger_label)}
diff --git a/packages/views/agents/components/instructions-editor.tsx b/packages/views/agents/components/instructions-editor.tsx
index c1db658652..5b61ca2a41 100644
--- a/packages/views/agents/components/instructions-editor.tsx
+++ b/packages/views/agents/components/instructions-editor.tsx
@@ -65,14 +65,14 @@ export function InstructionsEditor({
<div className="min-w-0 flex-1">
{value.trim() ? (
// Preview: first 2 lines of markdown, ellipsised.
- <div className="line-clamp-2 whitespace-pre-wrap text-body text-foreground/80">
+ <div className="line-clamp-2 whitespace-pre-wrap text-body text-foreground">
{value}
</div>
) : (
<div className="text-body text-muted-foreground">{resolvedPlaceholder}</div>
)}
</div>
- <ChevronDown className="h-3.5 w-3.5 shrink-0 text-muted-foreground/40" />
+ <ChevronDown className="h-3.5 w-3.5 shrink-0 text-faint-foreground" />
</button>
</div>
);
diff --git a/packages/views/agents/components/runtime-machine-filter-dropdown.tsx b/packages/views/agents/components/runtime-machine-filter-dropdown.tsx
index 54bb5b3cd0..597fbd0dea 100644
--- a/packages/views/agents/components/runtime-machine-filter-dropdown.tsx
+++ b/packages/views/agents/components/runtime-machine-filter-dropdown.tsx
@@ -68,10 +68,10 @@ export function RuntimeMachineFilterDropdown({
>
<Server className="h-3 w-3 text-muted-foreground" />
<span className="max-w-[12rem] truncate">{triggerLabel}</span>
- <span className="font-mono tabular-nums text-muted-foreground/70">
+ <span className="font-mono tabular-nums text-muted-foreground">
{triggerCount}
</span>
- <ChevronDown className="h-3 w-3 text-muted-foreground/60" />
+ <ChevronDown className="h-3 w-3 text-faint-foreground" />
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-72 p-0">
<RuntimeMachineFilterMenu
@@ -188,7 +188,7 @@ function RuntimeMachineFilterItem({
</span>
)}
</span>
- <span className="font-mono tabular-nums text-muted-foreground/70">
+ <span className="font-mono tabular-nums text-muted-foreground">
{t(($) => $.runtime_filter.agent_count, { count })}
</span>
</DropdownMenuItem>
diff --git a/packages/views/agents/components/skill-multi-select.tsx b/packages/views/agents/components/skill-multi-select.tsx
index c752c67f7a..125a214400 100644
--- a/packages/views/agents/components/skill-multi-select.tsx
+++ b/packages/views/agents/components/skill-multi-select.tsx
@@ -63,7 +63,7 @@ export function SkillMultiSelect({
})
: t(($) => $.create_dialog.skills_section.placeholder)}
</div>
- <ChevronDown className="h-3.5 w-3.5 shrink-0 text-muted-foreground/40" />
+ <ChevronDown className="h-3.5 w-3.5 shrink-0 text-faint-foreground" />
</button>
</div>
);
@@ -75,7 +75,7 @@ export function SkillMultiSelect({
<div className="text-caption font-medium uppercase tracking-wider text-muted-foreground">
{label}
{selectedIds.size > 0 ? (
- <span className="ml-2 text-foreground/60">({selectedIds.size})</span>
+ <span className="ml-2 text-muted-foreground">({selectedIds.size})</span>
) : null}
</div>
<Button
diff --git a/packages/views/agents/components/tabs/activity-tab.tsx b/packages/views/agents/components/tabs/activity-tab.tsx
index 27ed6b06de..e1cece70c3 100644
--- a/packages/views/agents/components/tabs/activity-tab.tsx
+++ b/packages/views/agents/components/tabs/activity-tab.tsx
@@ -619,7 +619,7 @@ function TaskRow({
<div className="min-w-0 flex-1">
<div className="flex items-center gap-1.5">
<SourceIcon
- className="h-3 w-3 shrink-0 text-muted-foreground/70"
+ className="h-3 w-3 shrink-0 text-faint-foreground"
aria-label={sourceLabel}
/>
{issue && (
@@ -645,7 +645,7 @@ function TaskRow({
}
/>
<TooltipContent className="max-w-md">
- <div className="text-micro font-medium uppercase tracking-wider text-muted-foreground/80">
+ <div className="text-micro font-medium uppercase tracking-wider text-muted-foreground">
{t(($) => $.tab_body.activity.triggered_by)}
</div>
<div className="mt-0.5 whitespace-pre-wrap text-caption">
@@ -763,7 +763,7 @@ function Section({
<h2 className="text-body font-semibold text-foreground">
{title}
</h2>
- <span className="text-micro text-muted-foreground/70">{subtitle}</span>
+ <span className="text-micro text-muted-foreground">{subtitle}</span>
</div>
{children}
</section>
@@ -771,14 +771,14 @@ function Section({
}
function EmptyText({ children }: { children: ReactNode }) {
- return <p className="text-caption italic text-muted-foreground/60">{children}</p>;
+ return <p className="text-caption italic text-muted-foreground">{children}</p>;
}
function Sep() {
// mx-1 puts visible whitespace around the dot; without it inline JSX
// collapses neighbouring tokens to "100% success·avg 30s" which reads
// as "successdotavg" at a glance.
- return <span className="mx-1 text-muted-foreground/40">·</span>;
+ return <span className="mx-1 text-faint-foreground">·</span>;
}
type AgentsT = ReturnType<typeof useT<"agents">>["t"];
diff --git a/packages/views/agents/components/tabs/skills-tab.tsx b/packages/views/agents/components/tabs/skills-tab.tsx
index 9c51c966db..e6547adc14 100644
--- a/packages/views/agents/components/tabs/skills-tab.tsx
+++ b/packages/views/agents/components/tabs/skills-tab.tsx
@@ -181,7 +181,7 @@ export function SkillsTab({
<span
className={cn(
"flex size-9 shrink-0 items-center justify-center rounded-md bg-muted text-muted-foreground",
- !enabled && "opacity-50",
+ !enabled && "text-faint-foreground",
)}
>
<SkillIcon className="h-4 w-4" />
diff --git a/packages/views/autopilots/components/autopilot-detail-page.tsx b/packages/views/autopilots/components/autopilot-detail-page.tsx
index b9e22b626e..7393442718 100644
--- a/packages/views/autopilots/components/autopilot-detail-page.tsx
+++ b/packages/views/autopilots/components/autopilot-detail-page.tsx
@@ -365,7 +365,7 @@ function TriggerRow({ trigger, autopilotId, canWrite }: { trigger: AutopilotTrig
{scheduleDescription !== null && scheduleConfig !== null && (
// Fields only: the zone already reads out in the sentence above,
// where a person can use it — same rule as the editor's readback.
- <div className="font-mono text-micro text-muted-foreground/60">
+ <div className="font-mono text-micro text-muted-foreground">
{cronFields(scheduleConfig)}
</div>
)}
diff --git a/packages/views/autopilots/components/autopilot-dialog.tsx b/packages/views/autopilots/components/autopilot-dialog.tsx
index a012c46184..c08fa0bdc0 100644
--- a/packages/views/autopilots/components/autopilot-dialog.tsx
+++ b/packages/views/autopilots/components/autopilot-dialog.tsx
@@ -434,11 +434,11 @@ export function AutopilotDialog(props: AutopilotDialogProps) {
: t(($) => $.dialog.header_edit)}
</span>
</div>
- <span className="text-muted-foreground/60">·</span>
+ <span className="text-faint-foreground">·</span>
<span className="text-muted-foreground">{t(($) => $.dialog.subtitle)}</span>
{workspaceName && (
<>
- <ChevronRight className="size-3 text-muted-foreground/40" />
+ <ChevronRight className="size-3 text-faint-foreground" />
<span className="text-muted-foreground">{workspaceName}</span>
</>
)}
@@ -447,7 +447,7 @@ export function AutopilotDialog(props: AutopilotDialogProps) {
{!isCreate && props.canManageAccess && (
<>
<Popover>
- <PopoverTrigger className="flex items-center gap-1.5 rounded-sm px-2 py-1 text-caption text-muted-foreground opacity-90 transition-all hover:bg-accent/60 hover:text-foreground hover:opacity-100 cursor-pointer">
+ <PopoverTrigger className="flex items-center gap-1.5 rounded-sm px-2 py-1 text-caption text-muted-foreground transition-all hover:bg-accent/60 hover:text-foreground hover:opacity-100 cursor-pointer">
<Users className="size-3.5" />
<span>{t(($) => $.access.title)}</span>
</PopoverTrigger>
@@ -532,7 +532,7 @@ export function AutopilotDialog(props: AutopilotDialogProps) {
<span className="text-micro font-semibold tracking-[0.08em] text-muted-foreground uppercase">
{t(($) => $.dialog.runbook_label)}
</span>
- <span className="text-caption text-muted-foreground/80">
+ <span className="text-caption text-muted-foreground">
{t(($) => $.dialog.runbook_hint)}
</span>
</div>
diff --git a/packages/views/autopilots/components/autopilot-list-toolbar.tsx b/packages/views/autopilots/components/autopilot-list-toolbar.tsx
index 82cca0fad1..6aa3a809d7 100644
--- a/packages/views/autopilots/components/autopilot-list-toolbar.tsx
+++ b/packages/views/autopilots/components/autopilot-list-toolbar.tsx
@@ -213,7 +213,7 @@ export function AutopilotListToolbar({
onClick={() => onScopeChange(s)}
>
{SCOPE_LABELS[s]}
- <span className="tabular-nums text-caption text-muted-foreground/70">
+ <span className="tabular-nums text-caption text-muted-foreground">
{scopeCounts[s]}
</span>
</Button>
@@ -243,7 +243,7 @@ export function AutopilotListToolbar({
{AUTOPILOT_SCOPES.map((s) => (
<DropdownMenuRadioItem key={s} value={s}>
{SCOPE_LABELS[s]}
- <span className="ml-2 tabular-nums text-caption text-muted-foreground/70">
+ <span className="ml-2 tabular-nums text-caption text-muted-foreground">
{scopeCounts[s]}
</span>
</DropdownMenuRadioItem>
diff --git a/packages/views/autopilots/components/autopilots-page.tsx b/packages/views/autopilots/components/autopilots-page.tsx
index 49f1a7eb56..a56ba15969 100644
--- a/packages/views/autopilots/components/autopilots-page.tsx
+++ b/packages/views/autopilots/components/autopilots-page.tsx
@@ -291,7 +291,7 @@ function TriggerCell({ autopilot }: { autopilot: Autopilot }) {
if (kinds.length === 0) {
return (
<ListGridCell className="hidden @2xl:flex">
- <span className="text-caption text-muted-foreground/40">—</span>
+ <span className="text-caption text-faint-foreground">—</span>
</ListGridCell>
);
}
@@ -342,7 +342,7 @@ function LastRunCell({ autopilot }: { autopilot: Autopilot }) {
if (!autopilot.last_run_at) {
return (
<ListGridCell className="hidden @2xl:flex">
- <span className="text-caption text-muted-foreground/40">—</span>
+ <span className="text-caption text-faint-foreground">—</span>
</ListGridCell>
);
}
@@ -378,7 +378,7 @@ function NextRunCell({ autopilot }: { autopilot: Autopilot }) {
{formatInTimeZone(next, undefined, i18n.language)}
</span>
) : (
- <span className="text-caption text-muted-foreground/40">—</span>
+ <span className="text-caption text-faint-foreground">—</span>
)}
</ListGridCell>
);
@@ -798,7 +798,7 @@ export function AutopilotsPage() {
</div>
) : showEmpty ? (
<div className="flex flex-col items-center px-5 py-16">
- <Zap className="mb-3 h-10 w-10 text-muted-foreground opacity-30" />
+ <Zap className="mb-3 h-10 w-10 text-faint-foreground" />
<p className="text-body text-muted-foreground">
{t(($) => $.page.empty.title)}
</p>
diff --git a/packages/views/autopilots/components/schedule-editor/schedule-editor.tsx b/packages/views/autopilots/components/schedule-editor/schedule-editor.tsx
index 4552408a78..220372f738 100644
--- a/packages/views/autopilots/components/schedule-editor/schedule-editor.tsx
+++ b/packages/views/autopilots/components/schedule-editor/schedule-editor.tsx
@@ -888,7 +888,7 @@ export function ScheduleEditor({
</p>
{/* The parser's own words, verbatim — untranslated, but it is the
only text that says which field is wrong. */}
- <p className="font-mono text-micro text-destructive/70">{cronErrorDetail}</p>
+ <p className="font-mono text-micro text-destructive">{cronErrorDetail}</p>
</div>
) : advanced ? (
// Three different things are being said here, and only the first is
diff --git a/packages/views/autopilots/components/webhook-deliveries-section.tsx b/packages/views/autopilots/components/webhook-deliveries-section.tsx
index 59780e3c26..dc4ec1023d 100644
--- a/packages/views/autopilots/components/webhook-deliveries-section.tsx
+++ b/packages/views/autopilots/components/webhook-deliveries-section.tsx
@@ -487,7 +487,7 @@ function CodeBlock({ label, value }: { label: string; value: string }) {
<pre className="max-h-48 overflow-auto bg-muted/40 px-3 py-2 text-caption font-mono leading-relaxed whitespace-pre-wrap break-all">
{display}
{isTruncated && (
- <span className="block pt-2 text-muted-foreground/70">
+ <span className="block pt-2 text-muted-foreground">
{t(($) => $.webhook_payload.truncated_marker)}
</span>
)}
diff --git a/packages/views/autopilots/components/webhook-event-filter-section.tsx b/packages/views/autopilots/components/webhook-event-filter-section.tsx
index 05c11ff2d1..26d3b88668 100644
--- a/packages/views/autopilots/components/webhook-event-filter-section.tsx
+++ b/packages/views/autopilots/components/webhook-event-filter-section.tsx
@@ -51,7 +51,7 @@ export function WebhookEventFilterSection({
rel="noopener noreferrer"
aria-label={t(($) => $.dialog.event_filter_docs_link_label)}
title={t(($) => $.dialog.event_filter_docs_link_label)}
- className="ml-0.5 inline-flex items-center text-muted-foreground/80 hover:text-foreground transition-colors"
+ className="ml-0.5 inline-flex items-center text-faint-foreground hover:text-foreground transition-colors"
>
<ExternalLink className="size-3" />
</a>
diff --git a/packages/views/autopilots/components/webhook-payload-preview.tsx b/packages/views/autopilots/components/webhook-payload-preview.tsx
index 44713129c9..575457fe96 100644
--- a/packages/views/autopilots/components/webhook-payload-preview.tsx
+++ b/packages/views/autopilots/components/webhook-payload-preview.tsx
@@ -91,7 +91,7 @@ export function WebhookPayloadPreview({
{event ?? t(($) => $.webhook_payload.unknown_event)}
</code>
{receivedAt && (
- <span className="ml-auto shrink-0 text-muted-foreground/70">
+ <span className="ml-auto shrink-0 text-muted-foreground">
{receivedAt}
</span>
)}
@@ -129,7 +129,7 @@ export function WebhookPayloadPreview({
<pre className="max-h-64 overflow-auto bg-muted/40 px-3 py-2 text-caption font-mono leading-relaxed">
{displayJSON}
{isTruncated && (
- <span className="block pt-2 text-muted-foreground/70">
+ <span className="block pt-2 text-muted-foreground">
{t(($) => $.webhook_payload.truncated_marker)}
</span>
)}
diff --git a/packages/views/billing/billing-test-page.tsx b/packages/views/billing/billing-test-page.tsx
index b2ef8b91dd..ce7ae5a317 100644
--- a/packages/views/billing/billing-test-page.tsx
+++ b/packages/views/billing/billing-test-page.tsx
@@ -398,7 +398,7 @@ function TierButton({
{baseLine}
{bonusLine}
</div>
- <div className="mt-1 font-mono text-micro text-muted-foreground/70">
+ <div className="mt-1 font-mono text-micro text-muted-foreground">
{t(($) => $.buy.tier_id, { id: tier.id })}
</div>
</button>
@@ -475,7 +475,7 @@ function TransactionRow({ row }: { row: BillingTransaction }) {
{row.description && (
<div className="mt-1 text-caption text-muted-foreground">{row.description}</div>
)}
- <div className="mt-1 font-mono text-micro text-muted-foreground/70">
+ <div className="mt-1 font-mono text-micro text-muted-foreground">
{t(($) => $.transactions.row_meta, {
date: formatDate(row.created_at, t),
balance: (row.balance_after / MICRO_PER_CREDIT).toLocaleString(),
@@ -631,7 +631,7 @@ function TopupRow({ row }: { row: BillingTopup }) {
})}
</span>
</div>
- <div className="mt-1 font-mono text-micro text-muted-foreground/70">
+ <div className="mt-1 font-mono text-micro text-muted-foreground">
{t(($) => $.topups.row_meta, {
date: formatDate(row.created_at, t),
checkout: row.stripe_checkout_id || t(($) => $.topups.stripe_empty),
diff --git a/packages/views/chat/chat-page.tsx b/packages/views/chat/chat-page.tsx
index 839bc81a1d..80227e7e10 100644
--- a/packages/views/chat/chat-page.tsx
+++ b/packages/views/chat/chat-page.tsx
@@ -342,7 +342,7 @@ export function ChatPage() {
conversation
) : (
<div className="flex h-full flex-col items-center justify-center gap-3 text-muted-foreground">
- <MessageSquare className="h-10 w-10 text-muted-foreground/30" />
+ <MessageSquare className="h-10 w-10 text-faint-foreground" />
<p className="text-body">{t(($) => $.page.select_prompt)}</p>
</div>
)}
diff --git a/packages/views/chat/components/chat-message-list.tsx b/packages/views/chat/components/chat-message-list.tsx
index 771da6b237..38611ef2b0 100644
--- a/packages/views/chat/components/chat-message-list.tsx
+++ b/packages/views/chat/components/chat-message-list.tsx
@@ -559,7 +559,7 @@ function MessageCopyButton({
<Button
variant="ghost"
size="icon-xs"
- className="text-muted-foreground/70 hover:text-foreground"
+ className="text-faint-foreground hover:text-foreground"
onClick={handleCopy}
aria-label={t(($) => $.message_list.copy_action)}
/>
@@ -597,7 +597,7 @@ function ElapsedCaption({
? t(($) => $.message_list.finished_in, { elapsed })
: t(($) => $.message_list.failed_after, { elapsed });
return (
- <div className={cn("text-caption text-muted-foreground/80", className)}>
+ <div className={cn("text-caption text-muted-foreground", className)}>
{text}
</div>
);
@@ -670,9 +670,9 @@ function FailureBubble({
* error. The icon + muted destructive text are signal enough,
* the rest stays in the normal reply rhythm. */}
<div className="flex items-start gap-1.5 text-body">
- <AlertTriangle className="size-3.5 shrink-0 text-destructive/80 mt-0.5" />
+ <AlertTriangle className="size-3.5 shrink-0 text-destructive mt-0.5" />
<div className="flex-1 min-w-0">
- <div className="text-destructive/90">{label}</div>
+ <div className="text-destructive">{label}</div>
{rawError.trim() && (
<Collapsible open={open} onOpenChange={setOpen}>
<CollapsibleTrigger className="mt-0.5 flex items-center gap-1 text-caption text-muted-foreground hover:text-foreground transition-colors">
@@ -927,7 +927,7 @@ function ToolResultRow({ item }: { item: ChatTimelineItem }) {
<ChevronRight
className={cn("h-3 w-3 shrink-0 text-muted-foreground transition-transform mt-0.5", open && "rotate-90")}
/>
- <span className="text-muted-foreground/70 truncate">
+ <span className="text-muted-foreground truncate">
{labelPrefix}{preview}
</span>
</CollapsibleTrigger>
@@ -950,7 +950,7 @@ function ThinkingRow({ item }: { item: ChatTimelineItem }) {
return (
<Collapsible open={open} onOpenChange={setOpen}>
<CollapsibleTrigger className="flex w-full items-start gap-1.5 rounded px-1 -mx-1 py-0.5 text-caption hover:bg-accent/30 transition-colors">
- <Brain className="h-3 w-3 shrink-0 text-muted-foreground/60 mt-0.5" />
+ <Brain className="h-3 w-3 shrink-0 text-faint-foreground mt-0.5" />
<span className="text-muted-foreground italic truncate">{preview}</span>
</CollapsibleTrigger>
<CollapsibleContent>
diff --git a/packages/views/chat/components/chat-thread-list.tsx b/packages/views/chat/components/chat-thread-list.tsx
index a23b0bd9d2..cbe3294b3e 100644
--- a/packages/views/chat/components/chat-thread-list.tsx
+++ b/packages/views/chat/components/chat-thread-list.tsx
@@ -233,13 +233,13 @@ export function ChatThreadList({
);
} else if (last) {
previewNode = (
- <span className={cn("block truncate", unread > 0 ? "text-foreground/80" : "text-muted-foreground")}>
+ <span className={cn("block truncate", unread > 0 ? "text-foreground" : "text-muted-foreground")}>
{last.role === "user" ? t(($) => $.list.you_prefix) : ""}
{toPreview(last.content)}
</span>
);
} else {
- previewNode = <span className="block truncate text-muted-foreground/60">{t(($) => $.list.no_messages)}</span>;
+ previewNode = <span className="block truncate text-muted-foreground">{t(($) => $.list.no_messages)}</span>;
}
return (
@@ -395,7 +395,7 @@ export function ChatThreadList({
>
<ChevronLeft className="size-4 shrink-0" />
<span className="truncate">{t(($) => $.list.archived_title)}</span>
- <span className="ml-auto shrink-0 tabular-nums text-muted-foreground/70">
+ <span className="ml-auto shrink-0 tabular-nums text-muted-foreground">
{archivedSessions.length}
</span>
</button>
@@ -415,8 +415,8 @@ export function ChatThreadList({
<Archive className="size-4" />
</span>
<span className="min-w-0 flex-1 truncate font-medium">{t(($) => $.list.archived_title)}</span>
- <span className="shrink-0 tabular-nums text-muted-foreground/70">{archivedSessions.length}</span>
- <ChevronRight className="size-4 shrink-0 text-muted-foreground/50" />
+ <span className="shrink-0 tabular-nums text-muted-foreground">{archivedSessions.length}</span>
+ <ChevronRight className="size-4 shrink-0 text-faint-foreground" />
</button>
);
diff --git a/packages/views/common/actor-issues-panel.tsx b/packages/views/common/actor-issues-panel.tsx
index ac067aa422..3f3c7df82b 100644
--- a/packages/views/common/actor-issues-panel.tsx
+++ b/packages/views/common/actor-issues-panel.tsx
@@ -146,7 +146,7 @@ export function ActorIssuesPanel({
renderEmpty={() =>
search.trim() === "" ? (
<div className="flex flex-1 min-h-0 flex-col items-center justify-center gap-2 text-muted-foreground">
- <ListTodo className="h-10 w-10 text-muted-foreground/40" />
+ <ListTodo className="h-10 w-10 text-faint-foreground" />
<p className="text-body">
{t(($) => $.actor_issues.empty[scope].title)}
</p>
@@ -156,7 +156,7 @@ export function ActorIssuesPanel({
</div>
) : (
<div className="flex flex-1 min-h-0 flex-col items-center justify-center gap-2 text-muted-foreground">
- <Search className="h-10 w-10 text-muted-foreground/40" />
+ <Search className="h-10 w-10 text-faint-foreground" />
<p className="text-body">{t(($) => $.actor_issues.search_empty)}</p>
</div>
)
diff --git a/packages/views/common/task-transcript/agent-transcript-dialog.tsx b/packages/views/common/task-transcript/agent-transcript-dialog.tsx
index d4fdebadc7..2dbf0f8400 100644
--- a/packages/views/common/task-transcript/agent-transcript-dialog.tsx
+++ b/packages/views/common/task-transcript/agent-transcript-dialog.tsx
@@ -171,7 +171,7 @@ function RunDetailRow({
copied?: boolean;
copyTitle?: string;
}) {
- const valueClass = cn("min-w-0 select-text break-all text-foreground/80", mono && "font-mono");
+ const valueClass = cn("min-w-0 select-text break-all text-foreground", mono && "font-mono");
if (onCopy) {
return (
<button
@@ -1004,7 +1004,7 @@ function SortDirectionToggle({ value, onChange, labels }: SortDirectionTogglePro
function FactDot() {
return (
- <span aria-hidden className="text-muted-foreground/40">
+ <span aria-hidden className="text-faint-foreground">
·
</span>
);
@@ -1152,7 +1152,7 @@ const TranscriptEventRow = ({
<div className="flex flex-1 items-start gap-1.5 min-w-0">
<CollapsibleTrigger
aria-label={label}
- className="shrink-0 mt-0.5 cursor-pointer rounded p-0.5 text-muted-foreground/50 transition-colors hover:text-foreground"
+ className="shrink-0 mt-0.5 cursor-pointer rounded p-0.5 text-faint-foreground transition-colors hover:text-foreground"
>
<ChevronRight className="h-3 w-3 rotate-90 transition-transform" />
</CollapsibleTrigger>
@@ -1188,7 +1188,7 @@ const TranscriptEventRow = ({
{hasDetail && (
<ChevronRight
className={cn(
- "h-3 w-3 shrink-0 mt-0.5 text-muted-foreground/50 transition-transform",
+ "h-3 w-3 shrink-0 mt-0.5 text-faint-foreground transition-transform",
expanded && "rotate-90",
)}
/>
@@ -1197,7 +1197,7 @@ const TranscriptEventRow = ({
className={cn(
"truncate",
traceEventSummaryIsMono(kind) && summary && "font-mono text-micro",
- !summary && "text-muted-foreground/60",
+ !summary && "text-muted-foreground",
)}
>
{summary || t(($) => $.transcript.no_output)}
@@ -1207,13 +1207,13 @@ const TranscriptEventRow = ({
)}
{/* Seq number / index */}
- <span className="shrink-0 text-micro text-muted-foreground/50 tabular-nums mt-1">
+ <span className="shrink-0 text-micro text-muted-foreground tabular-nums mt-1">
#{item.seq}
</span>
{/* Timestamp */}
{date && (
- <span className="shrink-0 text-micro text-muted-foreground/50 tabular-nums mt-1" title={date.toLocaleString()}>
+ <span className="shrink-0 text-micro text-muted-foreground tabular-nums mt-1" title={date.toLocaleString()}>
{date.toLocaleTimeString(undefined, {
hour: "2-digit",
minute: "2-digit",
@@ -1273,7 +1273,7 @@ function renderDiffRows(lines: TraceDiffLine[], highlighted: HighlightedSides) {
if (line.kind === "gap") {
return (
// Transcript events are immutable once persisted, so index is stable.
- <div key={index} className="select-none text-muted-foreground/40" aria-hidden>
+ <div key={index} className="select-none text-faint-foreground" aria-hidden>
{" ⋯"}
</div>
);
@@ -1300,7 +1300,7 @@ function renderDiffRows(lines: TraceDiffLine[], highlighted: HighlightedSides) {
<span
aria-hidden
className={cn(
- "select-none opacity-60",
+ "select-none",
kind === "add" && "text-success",
kind === "remove" && "text-destructive",
)}
@@ -1366,7 +1366,7 @@ function PatchDetailSurface({
"shrink-0 uppercase",
file.changeKind === "add" && "text-success",
file.changeKind === "delete" && "text-destructive",
- file.changeKind === "update" && "text-muted-foreground/70",
+ file.changeKind === "update" && "text-muted-foreground",
)}
>
{file.changeKind}
@@ -1375,7 +1375,7 @@ function PatchDetailSurface({
<span className="truncate text-muted-foreground">{file.path}</span>
{file.movePath && (
<>
- <span className="shrink-0 text-muted-foreground/50" aria-hidden>
+ <span className="shrink-0 text-faint-foreground" aria-hidden>
→
</span>
<span className="truncate text-muted-foreground">{file.movePath}</span>
@@ -1391,7 +1391,7 @@ function PatchDetailSurface({
path={file.path}
/>
) : (
- <div className="px-3 pb-2 pt-1 font-mono text-micro text-muted-foreground/60">
+ <div className="px-3 pb-2 pt-1 font-mono text-micro text-muted-foreground">
{file.truncated
? t(($) => $.transcript.patch_body_truncated)
: t(($) => $.transcript.patch_no_content)}
@@ -1400,7 +1400,7 @@ function PatchDetailSurface({
</div>
))}
{truncated && (
- <div className="px-3 py-2 font-mono text-micro text-muted-foreground/60">
+ <div className="px-3 py-2 font-mono text-micro text-muted-foreground">
{t(($) => $.transcript.patch_truncated)}
</div>
)}
@@ -1442,7 +1442,7 @@ function DiffDetailSurface({ lines, path }: { lines: TraceDiffLine[]; path: stri
return (
<div className="relative">
- <div className="flex items-center gap-2 px-3 pt-2 font-mono text-micro text-muted-foreground/70">
+ <div className="flex items-center gap-2 px-3 pt-2 font-mono text-micro text-muted-foreground">
{added > 0 && <span className="text-success">+{added}</span>}
{removed > 0 && <span className="text-destructive">-{removed}</span>}
</div>
@@ -1510,4 +1510,3 @@ function ToolDetailSurface({ text, language }: { text: string; language?: string
</div>
);
}
-
diff --git a/packages/views/common/type-scale-merge.test.ts b/packages/views/common/type-scale-merge.test.ts
index 26295e30e9..8f901dbba7 100644
--- a/packages/views/common/type-scale-merge.test.ts
+++ b/packages/views/common/type-scale-merge.test.ts
@@ -31,6 +31,7 @@ const STEPS = [
const COLOURS = [
"text-muted-foreground",
+ "text-faint-foreground",
"text-foreground",
"text-sidebar-foreground/70",
"text-brand",
diff --git a/packages/views/dashboard/components/dashboard-page.tsx b/packages/views/dashboard/components/dashboard-page.tsx
index 850da04552..9bb0f97d67 100644
--- a/packages/views/dashboard/components/dashboard-page.tsx
+++ b/packages/views/dashboard/components/dashboard-page.tsx
@@ -822,7 +822,7 @@ function TrendBlock({
<div className="min-h-[240px]">
{isEmpty ? (
<div className="flex aspect-[3/1] flex-col items-center justify-center gap-2 rounded-md border border-dashed bg-muted/20 p-6 text-center">
- <BarChart3 className="h-5 w-5 text-muted-foreground/50" />
+ <BarChart3 className="h-5 w-5 text-faint-foreground" />
<p className="text-caption text-muted-foreground">
{metric === "errors"
? t(($) => $.errors.no_data)
@@ -1533,7 +1533,7 @@ function DashboardEmpty() {
const { t } = useT("usage");
return (
<div className="flex flex-col items-center rounded-lg border border-dashed py-12 text-center">
- <BarChart3 className="h-6 w-6 text-muted-foreground/40" />
+ <BarChart3 className="h-6 w-6 text-faint-foreground" />
<p className="mt-3 text-body font-medium">{t(($) => $.empty.title)}</p>
<p className="mt-1 max-w-md text-caption text-muted-foreground">
{t(($) => $.empty.body)}
diff --git a/packages/views/editor/extensions/mention-suggestion.tsx b/packages/views/editor/extensions/mention-suggestion.tsx
index bc86d4b56f..90590c06ba 100644
--- a/packages/views/editor/extensions/mention-suggestion.tsx
+++ b/packages/views/editor/extensions/mention-suggestion.tsx
@@ -368,7 +368,7 @@ export const MentionList = forwardRef<MentionListRef, MentionListProps>(
>
{groups.map((group) => (
<div key={group.label}>
- <div className="px-3 py-2 text-micro font-semibold uppercase tracking-wide text-muted-foreground/80">
+ <div className="px-3 py-2 text-micro font-semibold uppercase tracking-wide text-muted-foreground">
{groupLabel(group.label)}
</div>
{renderRows(group)}
diff --git a/packages/views/inbox/components/inbox-list-item.tsx b/packages/views/inbox/components/inbox-list-item.tsx
index ed8a19da0e..97bc0e0541 100644
--- a/packages/views/inbox/components/inbox-list-item.tsx
+++ b/packages/views/inbox/components/inbox-list-item.tsx
@@ -110,7 +110,7 @@ export function InboxListItem({
</div>
</div>
<div className="mt-0.5 flex items-center justify-between gap-2">
- <p className={`min-w-0 overflow-hidden text-ellipsis whitespace-nowrap text-caption ${showUnread ? "text-muted-foreground" : "text-muted-foreground/60"}`}>
+ <p className={`min-w-0 overflow-hidden text-ellipsis whitespace-nowrap text-caption ${showUnread ? "text-muted-foreground" : "text-muted-foreground"}`}>
<InboxDetailLabel item={item} />
</p>
<div className="flex shrink-0 items-center gap-1.5">
@@ -125,7 +125,7 @@ export function InboxListItem({
hoverCard={false}
/>
)}
- <span className={`text-caption ${showUnread ? "text-muted-foreground" : "text-muted-foreground/60"}`}>
+ <span className={`text-caption ${showUnread ? "text-muted-foreground" : "text-muted-foreground"}`}>
{timeAgo(item.created_at)}
</span>
</div>
diff --git a/packages/views/inbox/components/inbox-list.tsx b/packages/views/inbox/components/inbox-list.tsx
index 136a19d0dc..5f0a74a02a 100644
--- a/packages/views/inbox/components/inbox-list.tsx
+++ b/packages/views/inbox/components/inbox-list.tsx
@@ -75,10 +75,10 @@ export function InboxList({
<span className="min-w-0 flex-1 truncate font-medium">
{t(($) => $.list.archived_title)}
</span>
- <span className="shrink-0 tabular-nums text-muted-foreground/70">
+ <span className="shrink-0 tabular-nums text-muted-foreground">
{archivedCount}
</span>
- <ChevronRight className="size-4 shrink-0 text-muted-foreground/50" />
+ <ChevronRight className="size-4 shrink-0 text-faint-foreground" />
</button>
) : null,
[isArchivedView, archivedCount, onOpenArchived, t],
@@ -90,7 +90,7 @@ export function InboxList({
return (
<div className="flex-1 min-h-0 overflow-y-auto">
<div className="flex flex-col items-center justify-center py-16 text-muted-foreground">
- <Inbox className="mb-3 h-8 w-8 text-muted-foreground/50" />
+ <Inbox className="mb-3 h-8 w-8 text-faint-foreground" />
<p className="text-body">
{isArchivedView
? t(($) => $.list.archived_empty)
diff --git a/packages/views/inbox/components/inbox-page.tsx b/packages/views/inbox/components/inbox-page.tsx
index e4c6f58444..061a1a1a9f 100644
--- a/packages/views/inbox/components/inbox-page.tsx
+++ b/packages/views/inbox/components/inbox-page.tsx
@@ -394,7 +394,7 @@ export function InboxPage() {
>
<ChevronLeft className="size-4 shrink-0" />
<span className="truncate">{t(($) => $.list.archived_title)}</span>
- <span className="ml-auto shrink-0 tabular-nums text-muted-foreground/70">
+ <span className="ml-auto shrink-0 tabular-nums text-muted-foreground">
{archivedItems.length}
</span>
</button>
@@ -403,7 +403,7 @@ export function InboxPage() {
const list = archivedError && isArchivedView ? (
<div className="flex-1 min-h-0 overflow-y-auto">
<div className="flex flex-col items-center justify-center py-16 text-muted-foreground">
- <Archive className="mb-3 h-8 w-8 text-muted-foreground/50" />
+ <Archive className="mb-3 h-8 w-8 text-faint-foreground" />
<p className="text-body">{t(($) => $.errors.archived_load_failed)}</p>
</div>
</div>
@@ -458,7 +458,7 @@ export function InboxPage() {
{typeLabels[selected.type]} · {timeAgo(selected.created_at)}
</p>
{selected.body && (
- <div className="mt-4 whitespace-pre-wrap text-body leading-relaxed text-foreground/80">
+ <div className="mt-4 whitespace-pre-wrap text-body leading-relaxed text-foreground">
{selected.body}
</div>
)}
@@ -618,7 +618,7 @@ export function InboxPage() {
<div className="flex flex-col min-h-0 h-full">
{detailContent ?? (
<div className="flex h-full flex-col items-center justify-center text-muted-foreground">
- <Inbox className="mb-3 h-10 w-10 text-muted-foreground/30" />
+ <Inbox className="mb-3 h-10 w-10 text-faint-foreground" />
<p className="text-body">
{visibleItems.length === 0
? t(($) => $.detail.empty)
diff --git a/packages/views/issues/components/attribution-badge.tsx b/packages/views/issues/components/attribution-badge.tsx
index 8824f323a4..59f75cd79e 100644
--- a/packages/views/issues/components/attribution-badge.tsx
+++ b/packages/views/issues/components/attribution-badge.tsx
@@ -126,7 +126,7 @@ export function AttributionBadge({
<span
className={cn(
"inline-flex min-w-0 items-center gap-1.5 text-caption",
- uncertain ? "text-warning" : "text-foreground/80",
+ uncertain ? "text-warning" : "text-foreground",
className
)}
>
diff --git a/packages/views/issues/components/batch-action-toolbar.tsx b/packages/views/issues/components/batch-action-toolbar.tsx
index f3344063e0..26945ac7f5 100644
--- a/packages/views/issues/components/batch-action-toolbar.tsx
+++ b/packages/views/issues/components/batch-action-toolbar.tsx
@@ -277,7 +277,7 @@ export function BatchActionToolbar({
</AlertDialogTitle>
<AlertDialogDescription>
{t(($) => $.batch.delete_dialog_desc, { count })}
- <span className="mt-2 block text-caption text-muted-foreground/80">
+ <span className="mt-2 block text-caption text-muted-foreground">
{t(($) => $.batch.delete_dialog_warning)}
</span>
</AlertDialogDescription>
diff --git a/packages/views/issues/components/comment-card.tsx b/packages/views/issues/components/comment-card.tsx
index 9d1cb9a34f..8b1f307a3f 100644
--- a/packages/views/issues/components/comment-card.tsx
+++ b/packages/views/issues/components/comment-card.tsx
@@ -725,7 +725,7 @@ function CommentRow({
</div>
) : (
<>
- <div className="pl-12 pr-4 pt-1 text-body leading-relaxed text-foreground/85">
+ <div className="pl-12 pr-4 pt-1 text-body leading-relaxed text-foreground">
<ReadonlyContent content={entry.content ?? ""} attachments={entry.attachments} />
</div>
<AttachmentList attachments={entry.attachments} content={entry.content} className="mt-1.5 pl-12 pr-4" />
@@ -1034,7 +1034,7 @@ function CommentCardImpl({
</div>
) : (
<>
- <div className="pl-10 text-body leading-relaxed text-foreground/85">
+ <div className="pl-10 text-body leading-relaxed text-foreground">
<ReadonlyContent content={entry.content ?? ""} attachments={entry.attachments} />
</div>
<AttachmentList attachments={entry.attachments} content={entry.content} className="mt-1.5 pl-10" />
diff --git a/packages/views/issues/components/comment-trigger-chips.tsx b/packages/views/issues/components/comment-trigger-chips.tsx
index c0a177c0f8..d5cd2bdca0 100644
--- a/packages/views/issues/components/comment-trigger-chips.tsx
+++ b/packages/views/issues/components/comment-trigger-chips.tsx
@@ -251,7 +251,6 @@ function SingleTriggerChip({
// Sidebar-style resting state: muted until hover so the strip
// reads as metadata, not content (see app-sidebar nav items).
"inline-flex h-6 min-w-0 max-w-full animate-in fade-in cursor-pointer items-center gap-1.5 rounded-md px-1.5 text-micro font-medium text-muted-foreground transition-colors duration-200 hover:bg-muted hover:text-foreground",
- suppressed && "opacity-60",
)}
>
<TriggerAgentAvatar agent={agent} suppressed={suppressed} />
@@ -302,7 +301,6 @@ function MultiTriggerChip({
type="button"
className={cn(
"inline-flex h-6 min-w-0 max-w-full animate-in fade-in cursor-pointer items-center gap-1.5 rounded-md px-1.5 text-micro font-medium text-muted-foreground transition-colors duration-200 hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground",
- activeCount === 0 && "opacity-60",
)}
/>
}
@@ -368,7 +366,6 @@ function MultiTriggerChip({
onClick={() => onToggle(agent.id)}
className={cn(
"flex w-full cursor-pointer items-center gap-2 rounded-md px-1.5 py-1 text-left transition-colors hover:bg-muted",
- suppressed && "opacity-60",
)}
>
<TriggerAgentAvatar agent={agent} suppressed={suppressed} />
diff --git a/packages/views/issues/components/gantt-view.tsx b/packages/views/issues/components/gantt-view.tsx
index 7a18f25e5c..2082ff4840 100644
--- a/packages/views/issues/components/gantt-view.tsx
+++ b/packages/views/issues/components/gantt-view.tsx
@@ -160,7 +160,7 @@ function GanttAxis({
{monthBlocks.map((b, i) => (
<div
key={i}
- className="absolute top-0 bottom-0 flex items-center px-2 text-caption font-medium text-foreground/80"
+ className="absolute top-0 bottom-0 flex items-center px-2 text-caption font-medium text-foreground"
style={{ left: b.left, width: b.width }}
>
{b.width > 40 && <span className="truncate">{b.label}</span>}
@@ -195,7 +195,7 @@ function GanttAxis({
{zoom === "day" && (
<>
<span className="tabular-nums">{date.getUTCDate()}</span>
- <span className="text-micro opacity-70">
+ <span className="text-micro">
{date.toLocaleDateString(locale, {
weekday: "short",
timeZone: "UTC",
@@ -408,7 +408,7 @@ function ScheduledRow({
style={{ left: bar.left, width: bar.width }}
>
{!bar.isMarker && bar.width > 60 && (
- <span className="block truncate px-2 py-[2px] text-micro leading-4 text-white/95">
+ <span className="block truncate px-2 py-[2px] text-micro leading-4 text-white">
{issue.title}
</span>
)}
diff --git a/packages/views/issues/components/issue-detail.tsx b/packages/views/issues/components/issue-detail.tsx
index 419a6676fe..dc67eb326c 100644
--- a/packages/views/issues/components/issue-detail.tsx
+++ b/packages/views/issues/components/issue-detail.tsx
@@ -1938,7 +1938,7 @@ export function IssueDetail({ issueId, onDelete, onDone, defaultSidebarOpen = tr
key={k}
type="button"
onClick={() => addOptionalProp(k)}
- className="flex w-full items-center gap-2 rounded-md px-2 py-1 text-caption text-foreground/90 transition-colors hover:bg-accent focus-visible:bg-accent focus-visible:outline-none"
+ className="flex w-full items-center gap-2 rounded-md px-2 py-1 text-caption text-foreground transition-colors hover:bg-accent focus-visible:bg-accent focus-visible:outline-none"
>
{k === "priority" && (
<PriorityIcon priority="medium" inheritColor className="text-muted-foreground" />
@@ -1980,7 +1980,7 @@ export function IssueDetail({ issueId, onDelete, onDone, defaultSidebarOpen = tr
key={p.id}
type="button"
onClick={() => addCustomProp(p.id)}
- className="flex w-full items-center gap-2 rounded-md px-2 py-1 text-caption text-foreground/90 transition-colors hover:bg-accent focus-visible:bg-accent focus-visible:outline-none"
+ className="flex w-full items-center gap-2 rounded-md px-2 py-1 text-caption text-foreground transition-colors hover:bg-accent focus-visible:bg-accent focus-visible:outline-none"
>
{p.icon ? (
<PropertyIcon property={p} className="size-3.5 text-caption" />
diff --git a/packages/views/issues/components/issues-page.tsx b/packages/views/issues/components/issues-page.tsx
index ca39cdb116..c5b48b3309 100644
--- a/packages/views/issues/components/issues-page.tsx
+++ b/packages/views/issues/components/issues-page.tsx
@@ -68,7 +68,7 @@ export function IssuesPage() {
)}
renderEmpty={() => (
<div className="flex flex-1 min-h-0 flex-col items-center justify-center gap-2 text-muted-foreground">
- <ListTodo className="h-10 w-10 text-muted-foreground/40" />
+ <ListTodo className="h-10 w-10 text-faint-foreground" />
<p className="text-body">{t(($) => $.page.empty_title)}</p>
<p className="text-caption">{t(($) => $.page.empty_hint)}</p>
</div>
diff --git a/packages/views/issues/components/list-load-more-footer.tsx b/packages/views/issues/components/list-load-more-footer.tsx
index 29adb2eab7..95b44d9529 100644
--- a/packages/views/issues/components/list-load-more-footer.tsx
+++ b/packages/views/issues/components/list-load-more-footer.tsx
@@ -61,7 +61,7 @@ export function ListLoadMoreFooter({
if (total > PAGINATED_THRESHOLD) {
return (
- <div className="py-2 text-center text-caption text-muted-foreground/70">
+ <div className="py-2 text-center text-caption text-muted-foreground">
{t(($) => $.table.no_more)}
</div>
);
diff --git a/packages/views/issues/components/swimlane-view.tsx b/packages/views/issues/components/swimlane-view.tsx
index 75c36228a6..dbf271378c 100644
--- a/packages/views/issues/components/swimlane-view.tsx
+++ b/packages/views/issues/components/swimlane-view.tsx
@@ -1610,7 +1610,7 @@ function DraggableSwimLane({
>
{!lane.isPinned && (
<GripVertical
- className="!size-3 shrink-0 cursor-grab text-muted-foreground/60"
+ className="!size-3 shrink-0 cursor-grab text-faint-foreground"
aria-hidden
/>
)}
diff --git a/packages/views/issues/components/table-view.tsx b/packages/views/issues/components/table-view.tsx
index 1fed5ddf73..86f4b1bad2 100644
--- a/packages/views/issues/components/table-view.tsx
+++ b/packages/views/issues/components/table-view.tsx
@@ -432,7 +432,7 @@ function SortableColumnHeader({
type="button"
aria-label={reorderLabel}
className={cn(
- "-ml-2 mr-0.5 rounded p-0.5 text-muted-foreground/50 opacity-0 hover:bg-accent hover:text-muted-foreground group-hover/header:opacity-100 focus-visible:opacity-100",
+ "-ml-2 mr-0.5 rounded p-0.5 text-muted-foreground opacity-0 hover:bg-accent hover:text-muted-foreground group-hover/header:opacity-100 focus-visible:opacity-100",
isDragging ? "cursor-grabbing opacity-100" : "cursor-grab",
)}
{...attributes}
@@ -768,7 +768,7 @@ export function InlineTitle({
<button
type="button"
aria-label={createSubIssueLabel}
- className="rounded p-1 text-muted-foreground/60 hover:bg-accent hover:text-foreground"
+ className="rounded p-1 text-muted-foreground hover:bg-accent hover:text-foreground"
onClick={(event) => {
event.stopPropagation();
onCreateSubIssue();
@@ -779,7 +779,7 @@ export function InlineTitle({
<button
type="button"
aria-label={renameLabel}
- className="rounded p-1 text-muted-foreground/60 hover:bg-accent hover:text-foreground"
+ className="rounded p-1 text-muted-foreground hover:bg-accent hover:text-foreground"
onClick={(event) => {
event.stopPropagation();
setDraft(row.issue.title);
diff --git a/packages/views/issues/surface/issue-surface.tsx b/packages/views/issues/surface/issue-surface.tsx
index da2177c259..3a076d0c54 100644
--- a/packages/views/issues/surface/issue-surface.tsx
+++ b/packages/views/issues/surface/issue-surface.tsx
@@ -231,7 +231,7 @@ function IssueSurfaceContent({
renderEmpty(renderContext)
) : (
<div className="flex flex-1 min-h-0 flex-col items-center justify-center gap-3 text-muted-foreground">
- <ListTodo className="h-10 w-10 text-muted-foreground/40" />
+ <ListTodo className="h-10 w-10 text-faint-foreground" />
<p className="text-body">{t(($) => $.detail.empty_issues_title)}</p>
<p className="text-caption">{t(($) => $.detail.empty_issues_hint)}</p>
<Button
diff --git a/packages/views/layout/breadcrumb-header.tsx b/packages/views/layout/breadcrumb-header.tsx
index 7ebbb7df4a..9dbf90fa38 100644
--- a/packages/views/layout/breadcrumb-header.tsx
+++ b/packages/views/layout/breadcrumb-header.tsx
@@ -56,7 +56,7 @@ export function BreadcrumbHeader({ segments, leaf, actions, className }: Breadcr
>
{segment.label}
</AppLink>
- <ChevronRight className="h-3 w-3 text-muted-foreground/50 shrink-0" />
+ <ChevronRight className="h-3 w-3 text-faint-foreground shrink-0" />
</Fragment>
))}
{leaf}
diff --git a/packages/views/layout/collection-page.tsx b/packages/views/layout/collection-page.tsx
index 2ef5ae43f0..06ac6cfe72 100644
--- a/packages/views/layout/collection-page.tsx
+++ b/packages/views/layout/collection-page.tsx
@@ -49,7 +49,7 @@ export function CollectionPageHeader({
/>
<h1 className="truncate text-body font-medium">{title}</h1>
{typeof count === "number" && count > 0 ? (
- <span className="shrink-0 font-mono text-caption tabular-nums text-muted-foreground/70">
+ <span className="shrink-0 font-mono text-caption tabular-nums text-muted-foreground">
{count}
</span>
) : null}
diff --git a/packages/views/layout/help-launcher.tsx b/packages/views/layout/help-launcher.tsx
index e45479f820..e4c82783ff 100644
--- a/packages/views/layout/help-launcher.tsx
+++ b/packages/views/layout/help-launcher.tsx
@@ -43,7 +43,7 @@ export function HelpLauncher() {
>
<BookOpen className="h-3.5 w-3.5" />
{t(($) => $.help.docs)}
- <ArrowUpRight className="size-3 translate-y-px text-muted-foreground/50" />
+ <ArrowUpRight className="size-3 translate-y-px text-faint-foreground" />
</DropdownMenuItem>
<DropdownMenuItem
render={
@@ -56,7 +56,7 @@ export function HelpLauncher() {
>
<History className="h-3.5 w-3.5" />
{t(($) => $.help.changelog)}
- <ArrowUpRight className="size-3 translate-y-px text-muted-foreground/50" />
+ <ArrowUpRight className="size-3 translate-y-px text-faint-foreground" />
</DropdownMenuItem>
<DropdownMenuItem
render={
@@ -65,7 +65,7 @@ export function HelpLauncher() {
>
<DiscordIcon className="h-3.5 w-3.5" />
{t(($) => $.help.discord)}
- <ArrowUpRight className="size-3 translate-y-px text-muted-foreground/50" />
+ <ArrowUpRight className="size-3 translate-y-px text-faint-foreground" />
</DropdownMenuItem>
<DropdownMenuItem
onClick={() => useModalStore.getState().open("feedback")}
diff --git a/packages/views/modals/create-issue.tsx b/packages/views/modals/create-issue.tsx
index f93d2411e2..6aff8b1ea2 100644
--- a/packages/views/modals/create-issue.tsx
+++ b/packages/views/modals/create-issue.tsx
@@ -805,7 +805,7 @@ export function ManualCreatePanel({
<div className="flex items-center justify-between px-5 pt-3 pb-2 shrink-0">
<div className="flex items-center gap-1.5 text-caption">
<span className="text-muted-foreground">{workspaceName}</span>
- <ChevronRight className="size-3 text-muted-foreground/50" />
+ <ChevronRight className="size-3 text-faint-foreground" />
<span className="font-medium">{t(($) => $.create_issue.manual_breadcrumb)}</span>
</div>
<div className="flex items-center gap-1">
@@ -1246,7 +1246,7 @@ export function ManualCreatePanel({
title={t(($) => $.create_issue.switch_to_agent_tooltip)}
className="border-beam group flex shrink-0 items-center gap-1.5 text-caption px-2 py-1 rounded-sm text-muted-foreground bg-brand/5 hover:bg-brand/10 hover:text-foreground transition-colors cursor-pointer disabled:cursor-not-allowed disabled:opacity-50"
>
- <ArrowLeftRight className="size-3.5 text-brand/80 transition-transform duration-300 group-hover:rotate-180" />
+ <ArrowLeftRight className="size-3.5 text-brand transition-transform duration-300 group-hover:rotate-180" />
{t(($) => $.create_issue.switch_to_agent)}
</button>
<label className="flex shrink-0 items-center gap-1.5 text-caption text-muted-foreground cursor-pointer select-none">
diff --git a/packages/views/modals/create-project.tsx b/packages/views/modals/create-project.tsx
index 35ea940510..a74a85957c 100644
--- a/packages/views/modals/create-project.tsx
+++ b/packages/views/modals/create-project.tsx
@@ -306,7 +306,7 @@ export function CreateProjectModal({ onClose }: { onClose: () => void }) {
<div className="flex items-center justify-between px-5 pt-3 pb-2 shrink-0">
<div className="flex items-center gap-1.5 text-caption">
<span className="text-muted-foreground">{workspaceName}</span>
- <ChevronRight className="size-3 text-muted-foreground/50" />
+ <ChevronRight className="size-3 text-faint-foreground" />
<span className="font-medium">{t(($) => $.create_project.title_breadcrumb)}</span>
</div>
<div className="flex items-center gap-1">
diff --git a/packages/views/modals/create-squad.tsx b/packages/views/modals/create-squad.tsx
index b4f58336c3..2bda857c01 100644
--- a/packages/views/modals/create-squad.tsx
+++ b/packages/views/modals/create-squad.tsx
@@ -458,7 +458,7 @@ function AdditionalMembersPicker({
<div>
<Label className="text-caption text-muted-foreground">
{t(($) => $.create_squad.members_label)}{" "}
- <span className="text-muted-foreground/60">
+ <span className="text-muted-foreground">
{t(($) => $.create_squad.members_optional)}
</span>
</Label>
diff --git a/packages/views/modals/delete-issue-confirm.tsx b/packages/views/modals/delete-issue-confirm.tsx
index fc9f2f93e3..b71f07490f 100644
--- a/packages/views/modals/delete-issue-confirm.tsx
+++ b/packages/views/modals/delete-issue-confirm.tsx
@@ -59,7 +59,7 @@ export function DeleteIssueConfirmModal({
<AlertDialogTitle>{t(($) => $.delete_issue.title)}</AlertDialogTitle>
<AlertDialogDescription>
{t(($) => $.delete_issue.description)}
- <span className="mt-2 block text-caption text-muted-foreground/80">
+ <span className="mt-2 block text-caption text-muted-foreground">
{t(($) => $.delete_issue.hint)}
</span>
</AlertDialogDescription>
diff --git a/packages/views/modals/quick-create-issue.tsx b/packages/views/modals/quick-create-issue.tsx
index 95f69277cd..4dfd9869af 100644
--- a/packages/views/modals/quick-create-issue.tsx
+++ b/packages/views/modals/quick-create-issue.tsx
@@ -545,7 +545,7 @@ export function AgentCreatePanel({
<div className="flex items-center justify-between px-5 pt-3 pb-2 shrink-0">
<div className="flex items-center gap-1.5 text-caption">
<span className="text-muted-foreground">{workspaceName}</span>
- <ChevronRight className="size-3 text-muted-foreground/50" />
+ <ChevronRight className="size-3 text-faint-foreground" />
<span className="font-medium">{t(($) => $.create_issue.agent_breadcrumb)}</span>
</div>
{/* Native `title` instead of Base UI Tooltip — Tooltip opens on
diff --git a/packages/views/my-issues/components/my-issues-page.tsx b/packages/views/my-issues/components/my-issues-page.tsx
index 67ee00b43f..9069949ea5 100644
--- a/packages/views/my-issues/components/my-issues-page.tsx
+++ b/packages/views/my-issues/components/my-issues-page.tsx
@@ -47,7 +47,7 @@ export function MyIssuesPage() {
)}
renderEmpty={() => (
<div className="flex flex-1 min-h-0 flex-col items-center justify-center gap-2 text-muted-foreground">
- <ListTodo className="h-10 w-10 text-muted-foreground/40" />
+ <ListTodo className="h-10 w-10 text-faint-foreground" />
<p className="text-body">{t(($) => $.page.empty_title)}</p>
<p className="text-caption">{t(($) => $.page.empty_description)}</p>
</div>
diff --git a/packages/views/onboarding/components/cloud-waitlist-expand.tsx b/packages/views/onboarding/components/cloud-waitlist-expand.tsx
index ec049b09e0..093d7ba279 100644
--- a/packages/views/onboarding/components/cloud-waitlist-expand.tsx
+++ b/packages/views/onboarding/components/cloud-waitlist-expand.tsx
@@ -59,9 +59,9 @@ export function CloudWaitlistExpand({
return (
<div className="flex flex-col gap-4 rounded-lg border bg-muted/40 p-5">
- <p className="text-label leading-[1.55] text-foreground/85">
+ <p className="text-label leading-[1.55] text-foreground">
{t(($) => $.cloud_waitlist.intro_main)}{" "}
- <span className="text-foreground/70">
+ <span className="text-muted-foreground">
{t(($) => $.cloud_waitlist.intro_warning)}
</span>
</p>
@@ -96,7 +96,7 @@ export function CloudWaitlistExpand({
className="text-caption font-medium text-muted-foreground"
>
{t(($) => $.cloud_waitlist.reason_label)}
- <span className="ml-2 font-normal text-muted-foreground/70">
+ <span className="ml-2 font-normal text-muted-foreground">
{t(($) => $.cloud_waitlist.optional)}
</span>
</Label>
diff --git a/packages/views/onboarding/components/icon-option-card.tsx b/packages/views/onboarding/components/icon-option-card.tsx
index fc7686fedd..81d3a30125 100644
--- a/packages/views/onboarding/components/icon-option-card.tsx
+++ b/packages/views/onboarding/components/icon-option-card.tsx
@@ -137,7 +137,7 @@ export function IconOtherOptionCard({
placeholder={placeholder}
maxLength={OTHER_INPUT_MAX_LENGTH}
aria-label={placeholder}
- className="min-w-0 flex-1 border-0 bg-transparent p-0 text-body font-medium leading-tight text-foreground placeholder:text-muted-foreground/60 focus:outline-none"
+ className="min-w-0 flex-1 border-0 bg-transparent p-0 text-body font-medium leading-tight text-foreground placeholder:text-muted-foreground focus:outline-none"
/>
) : (
<span className="text-body font-medium leading-tight text-foreground">
diff --git a/packages/views/onboarding/components/runtime-aside-panel.tsx b/packages/views/onboarding/components/runtime-aside-panel.tsx
index 4e3a232981..8132b0642c 100644
--- a/packages/views/onboarding/components/runtime-aside-panel.tsx
+++ b/packages/views/onboarding/components/runtime-aside-panel.tsx
@@ -21,7 +21,7 @@ export function RuntimeAsidePanel() {
<div className="mb-3 text-caption font-medium uppercase tracking-[0.08em] text-muted-foreground">
{t(($) => $.runtime_aside.what_eyebrow)}
</div>
- <p className="text-body leading-[1.6] text-foreground/80">
+ <p className="text-body leading-[1.6] text-foreground">
{t(($) => $.runtime_aside.what_prefix)}
<strong className="font-medium text-foreground">{t(($) => $.runtime_aside.what_term)}</strong>
{t(($) => $.runtime_aside.what_suffix)}
diff --git a/packages/views/onboarding/steps/step-welcome.tsx b/packages/views/onboarding/steps/step-welcome.tsx
index 998b556908..b946ffa91f 100644
--- a/packages/views/onboarding/steps/step-welcome.tsx
+++ b/packages/views/onboarding/steps/step-welcome.tsx
@@ -92,7 +92,7 @@ export function StepWelcome({
</h1>
<div className="flex flex-col gap-4">
- <p className="text-title leading-relaxed text-foreground/85">
+ <p className="text-title leading-relaxed text-foreground">
{t(($) => $.welcome.lede)}
</p>
<p className="text-body leading-relaxed text-muted-foreground">
@@ -327,7 +327,7 @@ function MockActivityCard({
</span>
</div>
- <p className="mt-2.5 text-body leading-snug text-foreground/85">
+ <p className="mt-2.5 text-body leading-snug text-foreground">
{content}
</p>
diff --git a/packages/views/onboarding/steps/step-workspace.tsx b/packages/views/onboarding/steps/step-workspace.tsx
index ccd27ed3ae..7159f869b4 100644
--- a/packages/views/onboarding/steps/step-workspace.tsx
+++ b/packages/views/onboarding/steps/step-workspace.tsx
@@ -326,7 +326,7 @@ export function StepWorkspace({
? t(($) => $.step_workspace.headline_first)
: t(($) => $.step_workspace.creation_disabled_headline)}
</h1>
- <p className="mt-4 text-body-lg leading-[1.55] text-foreground/80">
+ <p className="mt-4 text-body-lg leading-[1.55] text-foreground">
{reusing
? workspaceCreationAllowed
? t(($) => $.step_workspace.lede_resume)
@@ -591,7 +591,7 @@ function WorkspacePreviewCard({
</div>
<Lock
aria-hidden
- className="h-3.5 w-3.5 shrink-0 text-muted-foreground/60"
+ className="h-3.5 w-3.5 shrink-0 text-faint-foreground"
/>
</div>
<div className="flex flex-col">
@@ -659,7 +659,7 @@ function EntityRow({
aria-hidden
className={cn(
"shrink-0",
- dim ? "text-muted-foreground/60" : "text-muted-foreground",
+ dim ? "text-faint-foreground" : "text-muted-foreground",
)}
>
{icon}
@@ -675,7 +675,7 @@ function EntityRow({
<span
className={cn(
"font-mono text-micro",
- dim ? "text-muted-foreground/70" : "text-muted-foreground",
+ dim ? "text-muted-foreground" : "text-muted-foreground",
)}
>
{meta}
@@ -691,7 +691,7 @@ function PerkRow({ children }: { children: ReactNode }) {
aria-hidden
className="mt-[11px] h-px w-3 shrink-0 bg-muted-foreground/40"
/>
- <div className="text-label leading-[1.55] text-foreground/85">
+ <div className="text-label leading-[1.55] text-foreground">
{children}
</div>
</div>
diff --git a/packages/views/projects/components/projects-page.tsx b/packages/views/projects/components/projects-page.tsx
index 054c4a2be7..f41e329226 100644
--- a/packages/views/projects/components/projects-page.tsx
+++ b/packages/views/projects/components/projects-page.tsx
@@ -188,7 +188,7 @@ function columnTrackVars(
function ProgressRing({ project }: { project: Project }) {
if (project.issue_count === 0) {
- return <span className="text-caption text-muted-foreground/40">—</span>;
+ return <span className="text-caption text-faint-foreground">—</span>;
}
const pct = Math.round((project.done_count / project.issue_count) * 100);
return (
diff --git a/packages/views/runtimes/components/cloud-runtime-dialog.tsx b/packages/views/runtimes/components/cloud-runtime-dialog.tsx
index 934d040176..2cad06f578 100644
--- a/packages/views/runtimes/components/cloud-runtime-dialog.tsx
+++ b/packages/views/runtimes/components/cloud-runtime-dialog.tsx
@@ -184,7 +184,7 @@ export function CloudRuntimeDialog({ onClose }: { onClose: () => void }) {
</div>
) : sortedNodes.length === 0 ? (
<div className="flex h-40 flex-col items-center justify-center px-5 text-center">
- <Cloud className="h-7 w-7 text-muted-foreground/50" />
+ <Cloud className="h-7 w-7 text-faint-foreground" />
<p className="mt-3 text-body font-medium">
{t(($) => $.cloud_runtime.nodes_empty)}
</p>
@@ -313,11 +313,11 @@ function CloudRuntimeNodeRow({ node, wsId }: { node: CloudRuntimeNode; wsId: str
</div>
<div className="mt-1 flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1 text-caption text-muted-foreground">
<span>{node.instance_type}</span>
- <span className="text-muted-foreground/40">/</span>
+ <span className="text-faint-foreground">/</span>
<span>{node.region}</span>
{created && (
<>
- <span className="text-muted-foreground/40">/</span>
+ <span className="text-faint-foreground">/</span>
<span>{created}</span>
</>
)}
@@ -351,7 +351,7 @@ function CloudRuntimeNodeRow({ node, wsId }: { node: CloudRuntimeNode; wsId: str
</Button>
</div>
{node.instance_id && (
- <div className="mt-2 truncate font-mono text-micro text-muted-foreground/80">
+ <div className="mt-2 truncate font-mono text-micro text-muted-foreground">
{node.instance_id}
</div>
)}
diff --git a/packages/views/runtimes/components/delete-runtime-dialog.tsx b/packages/views/runtimes/components/delete-runtime-dialog.tsx
index cfe3e263e8..8f6acc3fbf 100644
--- a/packages/views/runtimes/components/delete-runtime-dialog.tsx
+++ b/packages/views/runtimes/components/delete-runtime-dialog.tsx
@@ -522,7 +522,7 @@ function PresenceCell({ presence }: { presence: AgentPresenceDetail | undefined
const { t } = useT("runtimes");
if (!presence) {
return (
- <span className="text-muted-foreground/60">
+ <span className="text-muted-foreground">
{t(($) => $.detail.delete_dialog.cascade.table.presence_unknown)}
</span>
);
@@ -556,7 +556,7 @@ function PresenceCell({ presence }: { presence: AgentPresenceDetail | undefined
t(($) => $.detail.delete_dialog.cascade.table.workload_queued)}
</span>
{counts && (
- <span className="font-mono tabular-nums text-muted-foreground/80">
+ <span className="font-mono tabular-nums text-muted-foreground">
{counts}
</span>
)}
diff --git a/packages/views/runtimes/components/runtime-detail-page.tsx b/packages/views/runtimes/components/runtime-detail-page.tsx
index 211fb39d73..f134f110e8 100644
--- a/packages/views/runtimes/components/runtime-detail-page.tsx
+++ b/packages/views/runtimes/components/runtime-detail-page.tsx
@@ -325,7 +325,7 @@ export function RuntimeDetailPage({
<div className="flex min-h-48 flex-col items-center justify-center rounded-lg border border-dashed px-6 text-center">
<Server
aria-hidden="true"
- className="h-7 w-7 text-muted-foreground/40"
+ className="h-7 w-7 text-faint-foreground"
/>
<p className="mt-3 text-body font-medium">
{bootstrapping
diff --git a/packages/views/runtimes/components/runtime-detail.tsx b/packages/views/runtimes/components/runtime-detail.tsx
index 253f87d097..ec07bd3871 100644
--- a/packages/views/runtimes/components/runtime-detail.tsx
+++ b/packages/views/runtimes/components/runtime-detail.tsx
@@ -406,7 +406,7 @@ function ServingAgentsCard({
</div>
{agents.length === 0 ? (
<div className="flex flex-col items-center px-4 py-6 text-center">
- <Cpu className="h-5 w-5 text-muted-foreground/40" />
+ <Cpu className="h-5 w-5 text-faint-foreground" />
<p className="mt-2 text-caption text-muted-foreground">
{t(($) => $.detail.no_agents)}
</p>
@@ -455,7 +455,7 @@ function ServingAgentsCard({
)}
</div>
</div>
- <ChevronRight className="h-3.5 w-3.5 shrink-0 text-muted-foreground/40 transition-colors group-hover:text-muted-foreground" />
+ <ChevronRight className="h-3.5 w-3.5 shrink-0 text-faint-foreground transition-colors group-hover:text-muted-foreground" />
</AppLink>
);
})}
diff --git a/packages/views/runtimes/components/runtime-list.tsx b/packages/views/runtimes/components/runtime-list.tsx
index 6227b3bdda..b785a7ee1f 100644
--- a/packages/views/runtimes/components/runtime-list.tsx
+++ b/packages/views/runtimes/components/runtime-list.tsx
@@ -390,7 +390,7 @@ export function CostCell({ runtimeId }: { runtimeId: string }) {
if (usage.length === 0) {
return (
<div className="w-full text-right">
- <span className="text-caption text-muted-foreground/50">—</span>
+ <span className="text-caption text-faint-foreground">—</span>
</div>
);
}
@@ -451,7 +451,7 @@ export function CliCell({ runtime }: { runtime: AgentRuntime }) {
const command = pendingRuntimeCommandName(runtime);
if (!command) {
return (
- <span className="text-caption text-muted-foreground/50">
+ <span className="text-caption text-muted-foreground">
{t(($) => $.list.pending_cli_unknown)}
</span>
);
@@ -469,7 +469,7 @@ export function CliCell({ runtime }: { runtime: AgentRuntime }) {
}
if (runtime.runtime_mode === "cloud") {
- return <span className="text-caption text-muted-foreground/50">—</span>;
+ return <span className="text-caption text-faint-foreground">—</span>;
}
const meta = runtime.metadata as Record<string, unknown> | null;
// `version` is the agent's own underlying CLI tool version — distinct per
@@ -483,7 +483,7 @@ export function CliCell({ runtime }: { runtime: AgentRuntime }) {
meta && typeof meta.version === "string" ? meta.version : null;
if (!version) {
- return <span className="text-caption text-muted-foreground/50">—</span>;
+ return <span className="text-caption text-faint-foreground">—</span>;
}
return (
@@ -500,7 +500,7 @@ export function CliCell({ runtime }: { runtime: AgentRuntime }) {
// surfaces AgentProfileCard.
function AgentStack({ agentIds }: { agentIds: string[] }) {
if (agentIds.length === 0) {
- return <span className="text-caption text-muted-foreground/50">—</span>;
+ return <span className="text-caption text-faint-foreground">—</span>;
}
const visible = agentIds.slice(0, 3);
const extra = agentIds.length - visible.length;
@@ -774,7 +774,7 @@ export function RuntimeList({
</span>
</>
) : (
- <span className="text-caption text-muted-foreground/50">—</span>
+ <span className="text-caption text-faint-foreground">—</span>
)}
</ListGridCell>
) : (
@@ -786,7 +786,7 @@ export function RuntimeList({
<ListGridCell className="hidden @2xl:flex">
{pending ? (
<div className="w-full text-right">
- <span className="text-caption text-muted-foreground/50">—</span>
+ <span className="text-caption text-faint-foreground">—</span>
</div>
) : (
<CostCell runtimeId={row.runtime.id} />
diff --git a/packages/views/runtimes/components/runtime-settings-page.tsx b/packages/views/runtimes/components/runtime-settings-page.tsx
index 2bdaa2a514..9fe45117ae 100644
--- a/packages/views/runtimes/components/runtime-settings-page.tsx
+++ b/packages/views/runtimes/components/runtime-settings-page.tsx
@@ -49,10 +49,10 @@ export function RuntimeSettingsPage({
<div className="flex h-full flex-col items-center justify-center text-muted-foreground">
<Server
aria-hidden="true"
- className="h-10 w-10 text-muted-foreground/30"
+ className="h-10 w-10 text-faint-foreground"
/>
<p className="mt-3 text-body">{t(($) => $.detail_page.not_found_title)}</p>
- <p className="mt-1 text-caption text-muted-foreground/70">
+ <p className="mt-1 text-caption text-muted-foreground">
{t(($) => $.detail_page.not_found_hint)}
</p>
</div>
diff --git a/packages/views/runtimes/components/runtimes-page.tsx b/packages/views/runtimes/components/runtimes-page.tsx
index a1c5904272..c6909d7c7f 100644
--- a/packages/views/runtimes/components/runtimes-page.tsx
+++ b/packages/views/runtimes/components/runtimes-page.tsx
@@ -344,7 +344,7 @@ function MachineRow({ machine }: { machine: RuntimeMachine }) {
{locator && (
<ChevronRight
aria-hidden="true"
- className="h-4 w-4 shrink-0 text-muted-foreground/50 transition-transform group-hover:translate-x-0.5 group-hover:text-muted-foreground"
+ className="h-4 w-4 shrink-0 text-faint-foreground transition-transform group-hover:translate-x-0.5 group-hover:text-muted-foreground"
/>
)}
</>
diff --git a/packages/views/runtimes/components/shared.tsx b/packages/views/runtimes/components/shared.tsx
index 2ed7d31e5a..e05da66b79 100644
--- a/packages/views/runtimes/components/shared.tsx
+++ b/packages/views/runtimes/components/shared.tsx
@@ -84,7 +84,7 @@ export function HealthIcon({
className?: string;
}) {
if (health === "loading") {
- return <Wifi className={`${className} text-muted-foreground/40`} />;
+ return <Wifi className={`${className} text-faint-foreground`} />;
}
const { Icon, tone } = HEALTH_ICON[health];
return <Icon className={`${className} ${tone}`} />;
diff --git a/packages/views/runtimes/components/usage-section.tsx b/packages/views/runtimes/components/usage-section.tsx
index bc74ae75b0..adc56f1c1a 100644
--- a/packages/views/runtimes/components/usage-section.tsx
+++ b/packages/views/runtimes/components/usage-section.tsx
@@ -512,7 +512,7 @@ function EmptyChartState({ usage }: { usage: RuntimeUsage[] }) {
return (
<div className="flex aspect-[3/1] flex-col items-center justify-center gap-2 rounded-md border border-dashed bg-muted/20 p-6 text-center">
- <BarChart3 className="h-5 w-5 text-muted-foreground/50" />
+ <BarChart3 className="h-5 w-5 text-faint-foreground" />
{!hasTokens ? (
<p className="text-caption text-muted-foreground">
{t(($) => $.usage.empty_no_usage)}
@@ -527,7 +527,7 @@ function EmptyChartState({ usage }: { usage: RuntimeUsage[] }) {
<p className="font-mono text-micro text-foreground">
{unmapped.join(", ")}
</p>
- <p className="text-micro text-muted-foreground/70">
+ <p className="text-micro text-muted-foreground">
{t(($) => $.usage.empty_pricing_hint)}
</p>
</>
@@ -888,7 +888,7 @@ function UsageEmpty() {
const { t } = useT("runtimes");
return (
<div className="flex flex-col items-center rounded-lg border border-dashed py-8">
- <BarChart3 className="h-5 w-5 text-muted-foreground/40" />
+ <BarChart3 className="h-5 w-5 text-faint-foreground" />
<p className="mt-2 text-caption text-muted-foreground">
{t(($) => $.usage.no_data)}
</p>
diff --git a/packages/views/settings/components/labels-tab.tsx b/packages/views/settings/components/labels-tab.tsx
index e2df1c78c4..82795820d2 100644
--- a/packages/views/settings/components/labels-tab.tsx
+++ b/packages/views/settings/components/labels-tab.tsx
@@ -159,7 +159,7 @@ export function LabelsTab() {
</div>
) : filteredLabels.length === 0 ? (
<div className="px-4 py-12 text-center">
- <Tag className="mx-auto size-6 text-muted-foreground/60" />
+ <Tag className="mx-auto size-6 text-faint-foreground" />
<p className="mt-3 text-body font-medium">
{query
? t(($) => $.labels.no_results)
diff --git a/packages/views/settings/components/properties-tab.tsx b/packages/views/settings/components/properties-tab.tsx
index c3547373c6..6e1eafab93 100644
--- a/packages/views/settings/components/properties-tab.tsx
+++ b/packages/views/settings/components/properties-tab.tsx
@@ -198,7 +198,7 @@ export function PropertiesTab() {
</div>
) : visible.length === 0 ? (
<div className="px-4 py-12 text-center">
- <SlidersHorizontal className="mx-auto size-6 text-muted-foreground/60" />
+ <SlidersHorizontal className="mx-auto size-6 text-faint-foreground" />
<p className="mt-3 text-body font-medium">
{query
? t(($) => $.properties.no_results)
@@ -570,7 +570,7 @@ function PropertyEditorDialog({
<div className="space-y-2">
{draft.options.map((option, index) => (
<div key={option.id ?? index} className="flex items-center gap-2">
- <GripVertical className="size-4 shrink-0 text-muted-foreground/40" />
+ <GripVertical className="size-4 shrink-0 text-faint-foreground" />
<ColorPicker
value={option.color}
onChange={(color) => setOption(index, { color })}
diff --git a/packages/views/skills/components/create-skill-dialog.tsx b/packages/views/skills/components/create-skill-dialog.tsx
index 19a2a36ebc..8ac8bb6044 100644
--- a/packages/views/skills/components/create-skill-dialog.tsx
+++ b/packages/views/skills/components/create-skill-dialog.tsx
@@ -90,7 +90,7 @@ function MethodChooser({ onChoose }: { onChoose: (m: Method) => void }) {
{t(($) => $.create.method_card[`${titleKey}_desc`])}
</div>
</div>
- <ChevronRight className="h-4 w-4 shrink-0 text-muted-foreground/40 transition-colors group-hover:text-muted-foreground" />
+ <ChevronRight className="h-4 w-4 shrink-0 text-faint-foreground transition-colors group-hover:text-muted-foreground" />
</button>
))}
</div>
@@ -463,7 +463,7 @@ export function CreateSkillDialog({
<button
type="button"
onClick={() => setMethod("chooser")}
- className="-ml-1 rounded-sm p-1 text-muted-foreground opacity-70 transition-opacity hover:bg-accent/60 hover:opacity-100"
+ className="-ml-1 rounded-sm p-1 text-faint-foreground transition-colors hover:bg-accent/60 hover:text-muted-foreground"
aria-label={t(($) => $.create.back_aria)}
>
<ArrowLeft className="h-3.5 w-3.5" />
@@ -488,7 +488,7 @@ export function CreateSkillDialog({
<button
type="button"
onClick={onClose}
- className="rounded-sm p-1 text-muted-foreground opacity-70 transition-opacity hover:bg-accent/60 hover:opacity-100"
+ className="rounded-sm p-1 text-faint-foreground transition-colors hover:bg-accent/60 hover:text-muted-foreground"
aria-label={t(($) => $.create.close_aria)}
>
<XIcon className="h-3.5 w-3.5" />
diff --git a/packages/views/skills/components/file-tree.tsx b/packages/views/skills/components/file-tree.tsx
index d649ccc1bf..11987b78d4 100644
--- a/packages/views/skills/components/file-tree.tsx
+++ b/packages/views/skills/components/file-tree.tsx
@@ -222,7 +222,7 @@ function TreeNodeItem({
// Hidden until the row is hovered or something inside it holds
// focus, so a rail of ten files is not a rail of ten buttons.
// after:-inset-1 widens the hit area past the 20px glyph.
- className="mr-1 shrink-0 rounded p-0.5 text-muted-foreground/60 opacity-0 transition-opacity after:absolute after:-inset-1 hover:text-foreground group-hover/row:opacity-100 focus-visible:opacity-100 aria-expanded:opacity-100"
+ className="mr-1 shrink-0 rounded p-0.5 text-faint-foreground opacity-0 transition-opacity after:absolute after:-inset-1 hover:text-foreground group-hover/row:opacity-100 focus-visible:opacity-100 aria-expanded:opacity-100"
onClick={(event) => event.stopPropagation()}
>
<MoreHorizontal className="h-3.5 w-3.5" />
@@ -335,7 +335,7 @@ export function FileTree({
if (tree.length === 0) {
return (
<div className="flex flex-col items-center justify-center py-8 text-muted-foreground">
- <FolderOpen className="h-5 w-5 text-muted-foreground/40" />
+ <FolderOpen className="h-5 w-5 text-faint-foreground" />
<p className="mt-2 text-caption">{t(($) => $.file_tree.no_files)}</p>
</div>
);
diff --git a/packages/views/skills/components/runtime-local-skill-import-panel.tsx b/packages/views/skills/components/runtime-local-skill-import-panel.tsx
index faa61d3656..f00946bd08 100644
--- a/packages/views/skills/components/runtime-local-skill-import-panel.tsx
+++ b/packages/views/skills/components/runtime-local-skill-import-panel.tsx
@@ -361,7 +361,7 @@ function ConflictResolutionPanel({
count: conflicts.length,
})}
</p>
- <p className="mt-1 text-caption opacity-85">
+ <p className="mt-1 text-caption">
{t(($) => $.runtime_import.conflict_hint)}
</p>
</div>
diff --git a/packages/views/skills/components/skill-detail-page.tsx b/packages/views/skills/components/skill-detail-page.tsx
index 2650c21a76..b4286316fd 100644
--- a/packages/views/skills/components/skill-detail-page.tsx
+++ b/packages/views/skills/components/skill-detail-page.tsx
@@ -975,7 +975,7 @@ export function SkillDetailPage({ skillId }: { skillId: string }) {
</Button>
</div>
<div className="flex flex-1 flex-col items-center justify-center gap-2 text-center">
- <AlertCircle className="h-8 w-8 text-muted-foreground/40" />
+ <AlertCircle className="h-8 w-8 text-faint-foreground" />
<p className="text-body font-medium">{t(($) => $.detail.not_found.title)}</p>
<p className="max-w-xs text-caption text-muted-foreground">
{error instanceof Error ? error.message : t(($) => $.detail.not_found.fallback)}
diff --git a/packages/views/skills/components/skill-list-actions.tsx b/packages/views/skills/components/skill-list-actions.tsx
index 027e9d3cc9..b1ff14ec43 100644
--- a/packages/views/skills/components/skill-list-actions.tsx
+++ b/packages/views/skills/components/skill-list-actions.tsx
@@ -202,7 +202,7 @@ function AgentGroup({
<CollapsibleTrigger className="group/trigger flex w-full items-center gap-1 rounded-md px-2.5 py-1.5 text-caption font-medium text-muted-foreground transition-colors hover:bg-accent/50">
<ChevronRight className="size-3 stroke-[2.5] transition-transform duration-200 group-data-[panel-open]/trigger:rotate-90" />
<span>{label}</span>
- <span className="text-muted-foreground/60">{agents.length}</span>
+ <span className="text-muted-foreground">{agents.length}</span>
</CollapsibleTrigger>
<CollapsibleContent className="space-y-0.5">
{agents.map((agent) => (
diff --git a/packages/views/skills/components/skills-page.tsx b/packages/views/skills/components/skills-page.tsx
index 5e7938c0f5..381d5f1301 100644
--- a/packages/views/skills/components/skills-page.tsx
+++ b/packages/views/skills/components/skills-page.tsx
@@ -244,7 +244,7 @@ function NameCell({ row }: { row: SkillRow }) {
<Tooltip>
<TooltipTrigger
render={
- <Lock className="h-3 w-3 shrink-0 text-muted-foreground/60" />
+ <Lock className="h-3 w-3 shrink-0 text-faint-foreground" />
}
/>
<TooltipContent>{t(($) => $.table.lock_tooltip)}</TooltipContent>
@@ -259,7 +259,7 @@ function UsedByCell({ agents }: { agents: Agent[] }) {
if (agents.length === 0) {
return (
<ListGridCell>
- <span className="text-caption text-muted-foreground/70">
+ <span className="text-caption text-muted-foreground">
{t(($) => $.table.unused)}
</span>
</ListGridCell>
diff --git a/packages/views/squads/components/squad-detail-page.tsx b/packages/views/squads/components/squad-detail-page.tsx
index 829d02e405..beada3db88 100644
--- a/packages/views/squads/components/squad-detail-page.tsx
+++ b/packages/views/squads/components/squad-detail-page.tsx
@@ -393,7 +393,7 @@ function SquadNameEditor({
className="group -mx-1 inline-flex items-center gap-1.5 self-start rounded px-1 text-left text-title font-semibold leading-tight transition-colors hover:bg-accent/50"
>
<span>{value}</span>
- <Pencil className="h-3.5 w-3.5 shrink-0 text-muted-foreground/0 transition-colors group-hover:text-muted-foreground" />
+ <Pencil className="h-3.5 w-3.5 shrink-0 text-transparent transition-colors group-hover:text-muted-foreground" />
</button>
)}
</InlineEditPopover>
@@ -620,7 +620,7 @@ function AddMemberDialog({
<div>
<Label className="text-caption text-muted-foreground">
{t(($) => $.add_member_dialog.label_role)}{" "}
- <span className="text-muted-foreground/60">{t(($) => $.add_member_dialog.label_optional)}</span>
+ <span className="text-muted-foreground">{t(($) => $.add_member_dialog.label_optional)}</span>
</Label>
<Input
type="text"
@@ -770,7 +770,7 @@ function SquadDetailInspector({
{squad.description}
</span>
) : (
- <span className="text-caption italic leading-relaxed text-muted-foreground/50">
+ <span className="text-caption italic leading-relaxed text-muted-foreground">
{t(($) => $.description_dialog.placeholder_empty)}
</span>
)}
@@ -844,9 +844,9 @@ function SquadDescriptionEditor({
{value ? (
<span className="text-muted-foreground">{value}</span>
) : (
- <span className="italic text-muted-foreground/50">{t(($) => $.description_dialog.placeholder_empty)}</span>
+ <span className="italic text-muted-foreground">{t(($) => $.description_dialog.placeholder_empty)}</span>
)}
- <Pencil className="mt-0.5 h-3 w-3 shrink-0 text-muted-foreground/0 transition-colors group-hover:text-muted-foreground" />
+ <Pencil className="mt-0.5 h-3 w-3 shrink-0 text-transparent transition-colors group-hover:text-muted-foreground" />
</button>
<Dialog open={open} onOpenChange={setOpen}>
diff --git a/packages/views/squads/components/squads-page.tsx b/packages/views/squads/components/squads-page.tsx
index 49b200e74f..e0c8d59dc8 100644
--- a/packages/views/squads/components/squads-page.tsx
+++ b/packages/views/squads/components/squads-page.tsx
@@ -213,7 +213,7 @@ function MembersCell({ squad }: { squad: Squad }) {
if (count === 0) {
return (
<ListGridCell className="hidden @2xl:flex">
- <span className="text-caption text-muted-foreground/40">—</span>
+ <span className="text-caption text-faint-foreground">—</span>
</ListGridCell>
);
}
@@ -497,7 +497,7 @@ function SquadListToolbar({
onClick={() => onScopeChange(s)}
>
{SCOPE_LABELS[s]}
- <span className="tabular-nums text-caption text-muted-foreground/70">
+ <span className="tabular-nums text-caption text-muted-foreground">
{scopeCounts[s]}
</span>
</Button>
@@ -524,7 +524,7 @@ function SquadListToolbar({
{SQUAD_SCOPES.map((s) => (
<DropdownMenuRadioItem key={s} value={s}>
{SCOPE_LABELS[s]}
- <span className="ml-2 tabular-nums text-caption text-muted-foreground/70">
+ <span className="ml-2 tabular-nums text-caption text-muted-foreground">
{scopeCounts[s]}
</span>
</DropdownMenuRadioItem>
diff --git a/packages/views/workspace/welcome-after-onboarding.tsx b/packages/views/workspace/welcome-after-onboarding.tsx
index 12da12b731..e262533e09 100644
--- a/packages/views/workspace/welcome-after-onboarding.tsx
+++ b/packages/views/workspace/welcome-after-onboarding.tsx
@@ -523,12 +523,12 @@ function RuntimeWelcome({
)}
</DialogDescription>
<div className="mt-1 flex flex-col gap-1.5 max-w-sm">
- <p className="text-center text-caption text-muted-foreground/80 leading-relaxed">
+ <p className="text-center text-caption text-muted-foreground leading-relaxed">
{t(
($) => $.welcome_after_onboarding.runtime.success.tip_inbox,
)}
</p>
- <p className="text-center text-caption text-muted-foreground/80 leading-relaxed">
+ <p className="text-center text-caption text-muted-foreground leading-relaxed">
{t(
($) => $.welcome_after_onboarding.runtime.success.tip_chat,
)}