Skip to content

πŸ™Œ OpenHands: AI-Driven Development

refactor(shadcn-lint): agentic linting - first pass, map --oh-* tokens into the Tailwind theme (#17435)

🐾 smolpaws380fd839d6bc
diff --git a/.pr/live-automation.png b/.pr/live-automation.png
new file mode 100644
index 0000000000..ebd89e384c
Binary files /dev/null and b/.pr/live-automation.png differ
diff --git a/.pr/live-mcp.png b/.pr/live-mcp.png
new file mode 100644
index 0000000000..530c2abf74
Binary files /dev/null and b/.pr/live-mcp.png differ
diff --git a/.pr/live-mobile-findings.png b/.pr/live-mobile-findings.png
new file mode 100644
index 0000000000..1e070602d0
Binary files /dev/null and b/.pr/live-mobile-findings.png differ
diff --git a/.pr/live-workspace-diff.png b/.pr/live-workspace-diff.png
new file mode 100644
index 0000000000..52b0953e12
Binary files /dev/null and b/.pr/live-workspace-diff.png differ
diff --git a/.pr/live-workspace.png b/.pr/live-workspace.png
new file mode 100644
index 0000000000..cf107a0538
Binary files /dev/null and b/.pr/live-workspace.png differ
diff --git a/__tests__/components/automations/automation-card.test.tsx b/__tests__/components/automations/automation-card.test.tsx
index 5f6a03118a..9031778ffd 100644
--- a/__tests__/components/automations/automation-card.test.tsx
+++ b/__tests__/components/automations/automation-card.test.tsx
@@ -113,7 +113,7 @@ describe("AutomationCard", () => {
const card = screen.getByTestId("automation-card-automation-1");
expect(card.className).toContain("extension-module-card-interactive");
expect(card.className).toContain("bg-base-secondary");
- expect(card.className).not.toContain("border-[var(--oh-border)]");
+ expect(card.className).not.toContain("border-border");
});
it("renders title, description, and overflow pills", () => {
diff --git a/__tests__/components/automations/recommended-automations.test.tsx b/__tests__/components/automations/recommended-automations.test.tsx
index fb30753b5a..44530409ec 100644
--- a/__tests__/components/automations/recommended-automations.test.tsx
+++ b/__tests__/components/automations/recommended-automations.test.tsx
@@ -603,9 +603,7 @@ describe("recommended automations", () => {
);
expect(plusBadge.tagName).toBe("SPAN");
expect(plusBadge).toHaveAttribute("aria-hidden", "true");
- expect(plusBadge.className).toContain(
- "hover:bg-[var(--oh-interactive-hover)]",
- );
+ expect(plusBadge.className).toContain("hover:bg-interactive-hover");
expect(plusBadge.querySelector('[role="switch"]')).not.toBeInTheDocument();
});
diff --git a/__tests__/components/browser.test.tsx b/__tests__/components/browser.test.tsx
index 9e20498675..300e833e60 100644
--- a/__tests__/components/browser.test.tsx
+++ b/__tests__/components/browser.test.tsx
@@ -63,7 +63,7 @@ describe("Browser", () => {
render(<BrowserPanel />);
- expect(screen.getByTestId("browser-chrome-bar")).toHaveClass("min-h-[34px]");
+ expect(screen.getByTestId("browser-chrome-bar")).toHaveClass("min-h-8.5");
expect(screen.getByTestId("browser-chrome-url")).toHaveTextContent(
"BROWSER$URL_PLACEHOLDER",
);
diff --git a/__tests__/components/buttons/circle-plus-check-toggle.test.tsx b/__tests__/components/buttons/circle-plus-check-toggle.test.tsx
index 98fa27147f..24793eb8db 100644
--- a/__tests__/components/buttons/circle-plus-check-toggle.test.tsx
+++ b/__tests__/components/buttons/circle-plus-check-toggle.test.tsx
@@ -15,7 +15,7 @@ describe("CirclePlusBadge", () => {
const plusBadge = screen.getByTestId("automation-plus");
expect(plusBadge.tagName).toBe("SPAN");
expect(plusBadge).toHaveAttribute("aria-hidden", "true");
- expect(plusBadge.className).toContain("hover:bg-[var(--oh-interactive-hover)]");
+ expect(plusBadge.className).toContain("hover:bg-interactive-hover");
expect(plusBadge.className).not.toContain("group-hover/card");
});
});
diff --git a/__tests__/components/chat/error-message-banner.test.tsx b/__tests__/components/chat/error-message-banner.test.tsx
index ede6142475..807ace04f1 100644
--- a/__tests__/components/chat/error-message-banner.test.tsx
+++ b/__tests__/components/chat/error-message-banner.test.tsx
@@ -67,7 +67,7 @@ describe("ErrorMessageBanner", () => {
);
expect(screen.getByTestId("warning-message-banner-icon")).toHaveClass(
- "text-[var(--oh-warning)]",
+ "text-warning",
);
});
@@ -109,8 +109,8 @@ describe("ErrorMessageBanner", () => {
render(<ErrorMessageBanner message="Something went wrong" />);
const banner = screen.getByTestId("error-message-banner");
- expect(banner.className).toContain("border-[var(--oh-border)]");
- expect(banner.className).toContain("bg-[var(--oh-surface-raised)]");
+ expect(banner.className).toContain("border-border");
+ expect(banner.className).toContain("bg-surface-raised");
expect(banner.className).not.toContain("#FF0006");
expect(banner.className).not.toContain("#4A0709");
});
diff --git a/__tests__/components/conversation-events/chat/task-tracking-item-status.test.tsx b/__tests__/components/conversation-events/chat/task-tracking-item-status.test.tsx
index 621e3561c2..799424e6bf 100644
--- a/__tests__/components/conversation-events/chat/task-tracking-item-status.test.tsx
+++ b/__tests__/components/conversation-events/chat/task-tracking-item-status.test.tsx
@@ -54,15 +54,15 @@ describe("conversation task status display", () => {
const icon = screen.getByTestId(iconTestId);
expect(icon).toBeInTheDocument();
const title = screen.getByText(`${status} task`);
- expect(title).toHaveClass("text-[12px]");
+ expect(title).toHaveClass("text-xs");
if (isMuted) {
- expect(icon).toHaveClass("text-[var(--oh-muted)]");
- expect(title).toHaveClass("text-[var(--oh-muted)]");
+ expect(icon).toHaveClass("text-muted");
+ expect(title).toHaveClass("text-muted");
} else {
expect(icon).toHaveClass("text-[#ffffff]");
expect(title).toHaveClass("text-white");
- expect(title).not.toHaveClass("text-[var(--oh-muted)]");
+ expect(title).not.toHaveClass("text-muted");
}
},
);
@@ -104,7 +104,7 @@ describe("conversation task status display", () => {
expect(screen.getByTestId("todo-icon")).toHaveClass("text-[#ffffff]");
expect(screen.getByText("Review the implementation")).not.toHaveClass(
- "text-[var(--oh-muted)]",
+ "text-muted",
);
});
diff --git a/__tests__/components/features/chat/change-agent-button.test.tsx b/__tests__/components/features/chat/change-agent-button.test.tsx
index ed8c51f45b..2ec52a4d8a 100644
--- a/__tests__/components/features/chat/change-agent-button.test.tsx
+++ b/__tests__/components/features/chat/change-agent-button.test.tsx
@@ -244,7 +244,7 @@ describe("ChangeAgentButton mode selection", () => {
"rounded-[100px]",
"border",
"border-transparent",
- "text-[var(--oh-muted)]",
+ "text-muted",
"cursor-pointer",
"hover:text-white",
"hover:bg-white/10",
diff --git a/__tests__/components/features/chat/change-agent-context-menu.test.tsx b/__tests__/components/features/chat/change-agent-context-menu.test.tsx
index 20339a22af..512661a70b 100644
--- a/__tests__/components/features/chat/change-agent-context-menu.test.tsx
+++ b/__tests__/components/features/chat/change-agent-context-menu.test.tsx
@@ -17,8 +17,8 @@ describe("ChangeAgentContextMenu", () => {
const codeOption = screen.getByTestId("code-option");
const planOption = screen.getByTestId("plan-option");
- expect(codeOption).toHaveClass("bg-[var(--oh-interactive-hover)]");
- expect(planOption).not.toHaveClass("bg-[var(--oh-interactive-hover)]");
+ expect(codeOption).toHaveClass("bg-interactive-hover");
+ expect(planOption).not.toHaveClass("bg-interactive-hover");
expect(codeOption.querySelectorAll("svg")).toHaveLength(2);
expect(planOption.querySelectorAll("svg")).toHaveLength(1);
});
@@ -36,8 +36,8 @@ describe("ChangeAgentContextMenu", () => {
const codeOption = screen.getByTestId("code-option");
const planOption = screen.getByTestId("plan-option");
- expect(planOption).toHaveClass("bg-[var(--oh-interactive-hover)]");
- expect(codeOption).not.toHaveClass("bg-[var(--oh-interactive-hover)]");
+ expect(planOption).toHaveClass("bg-interactive-hover");
+ expect(codeOption).not.toHaveClass("bg-interactive-hover");
expect(planOption.querySelectorAll("svg")).toHaveLength(2);
});
diff --git a/__tests__/components/features/chat/components/chat-input-llm-profile-picker.test.tsx b/__tests__/components/features/chat/components/chat-input-llm-profile-picker.test.tsx
index 689bbd3cc2..44f1350d7c 100644
--- a/__tests__/components/features/chat/components/chat-input-llm-profile-picker.test.tsx
+++ b/__tests__/components/features/chat/components/chat-input-llm-profile-picker.test.tsx
@@ -1,4 +1,4 @@
-import { fireEvent, screen } from "@testing-library/react";
+import { act, fireEvent, screen } from "@testing-library/react";
import { describe, it, expect, vi, beforeEach } from "vitest";
import { renderWithProviders } from "test-utils";
@@ -68,6 +68,21 @@ describe("ChatInputLlmProfilePicker", () => {
);
});
+ it("fits the upward menu above its trigger and follows scrolling", () => {
+ renderWithProviders(<ChatInputLlmProfilePicker />);
+ const trigger = screen.getByTestId("chat-input-llm-profile");
+ const rect = vi.spyOn(trigger, "getBoundingClientRect");
+ rect.mockReturnValue({ top: 200 } as DOMRect);
+ fireEvent.click(trigger);
+ const menu = screen.getByTestId("chat-input-llm-profile-popover");
+ expect(menu).toHaveStyle({ maxHeight: "184px" });
+
+ rect.mockReturnValue({ top: 100 } as DOMRect);
+ act(() => window.dispatchEvent(new Event("scroll")));
+ expect(menu).toHaveStyle({ maxHeight: "84px" });
+ rect.mockRestore();
+ });
+
it("live-switches to the picked profile", () => {
renderWithProviders(<ChatInputLlmProfilePicker />);
fireEvent.click(screen.getByTestId("chat-input-llm-profile"));
diff --git a/__tests__/components/features/chat/git-control-bar-pull-button.test.tsx b/__tests__/components/features/chat/git-control-bar-pull-button.test.tsx
index 83f86e2370..ebef9b957c 100644
--- a/__tests__/components/features/chat/git-control-bar-pull-button.test.tsx
+++ b/__tests__/components/features/chat/git-control-bar-pull-button.test.tsx
@@ -33,7 +33,7 @@ describe("GitControlBarPullButton", () => {
const button = screen.getByRole("button");
expect(button).toBeDisabled();
- expect(button.className).toContain("text-[var(--oh-muted)]");
+ expect(button.className).toContain("text-muted");
expect(button.className).toContain("opacity-50");
expect(button.className).not.toContain("hover:bg-tertiary");
expect(screen.getByTestId("pull-icon")).toHaveAttribute(
diff --git a/__tests__/components/features/command-menu/command-menu.test.tsx b/__tests__/components/features/command-menu/command-menu.test.tsx
index b701c916ba..8513c6c044 100644
--- a/__tests__/components/features/command-menu/command-menu.test.tsx
+++ b/__tests__/components/features/command-menu/command-menu.test.tsx
@@ -409,13 +409,13 @@ describe("CommandMenu", () => {
expect(surface).toHaveClass(
"max-w-2xl",
- "border-[var(--oh-border)]",
+ "border-border",
"shadow-[0_24px_90px_rgba(0,0,0,0.52),0_0_0_1px_rgba(255,255,255,0.03)_inset]",
);
expect(activeOption).toHaveClass("rounded-xl", "bg-white/[0.09]");
- expect(inactiveOption).toHaveClass("rounded-xl", "text-[var(--oh-muted)]");
- expect(activeIcon).toHaveClass("size-9", "border-[var(--oh-accent)]");
- expect(inactiveIcon).toHaveClass("size-9", "border-[var(--oh-border)]");
+ expect(inactiveOption).toHaveClass("rounded-xl", "text-muted");
+ expect(activeIcon).toHaveClass("size-9", "border-accent");
+ expect(inactiveIcon).toHaveClass("size-9", "border-border");
});
it("leaves modified command links to native browser behavior", () => {
diff --git a/__tests__/components/features/conversation-panel/advanced-conversation-options-modal.test.tsx b/__tests__/components/features/conversation-panel/advanced-conversation-options-modal.test.tsx
index 28b69a7ab0..4f17f33954 100644
--- a/__tests__/components/features/conversation-panel/advanced-conversation-options-modal.test.tsx
+++ b/__tests__/components/features/conversation-panel/advanced-conversation-options-modal.test.tsx
@@ -57,7 +57,7 @@ describe("AdvancedConversationOptionsModal", () => {
expect(
screen.getByTestId("advanced-conversation-options-modal"),
- ).toHaveClass("w-[520px]");
+ ).toHaveClass("w-130");
});
it("keeps thread scope in its own section, apart from inclusion toggles", () => {
diff --git a/__tests__/components/features/conversation-panel/conversation-card.test.tsx b/__tests__/components/features/conversation-panel/conversation-card.test.tsx
index 03e646bf91..e79f53cfbb 100644
--- a/__tests__/components/features/conversation-panel/conversation-card.test.tsx
+++ b/__tests__/components/features/conversation-panel/conversation-card.test.tsx
@@ -153,9 +153,9 @@ describe("ConversationCard", () => {
const branch = screen.getByTestId("conversation-card-selected-branch");
const tag = screen.getByTestId("conversation-card-tag-chip");
- expect(repo).toHaveClass("bg-[var(--oh-surface-raised)]");
- expect(branch).toHaveClass("bg-[var(--oh-surface-raised)]");
- expect(tag).toHaveClass("bg-[var(--oh-surface-raised)]");
+ expect(repo).toHaveClass("bg-surface-raised");
+ expect(branch).toHaveClass("bg-surface-raised");
+ expect(tag).toHaveClass("bg-surface-raised");
// Identical pill look. The one intentional difference is flex-shrink:
// repo and branch share a single overflow-hidden row, so they must shrink
diff --git a/__tests__/components/features/conversation-panel/conversation-group-folder-interactions.test.tsx b/__tests__/components/features/conversation-panel/conversation-group-folder-interactions.test.tsx
index 72f74f1bc8..cdd4915053 100644
--- a/__tests__/components/features/conversation-panel/conversation-group-folder-interactions.test.tsx
+++ b/__tests__/components/features/conversation-panel/conversation-group-folder-interactions.test.tsx
@@ -181,7 +181,7 @@ describe("conversation group folder interactions", () => {
"thread-folder-content-ws--workspace-alpha",
);
expect(section).toHaveTextContent("Workspace Alpha");
- expect(row).toHaveClass("flex", "text-[var(--oh-muted)]");
+ expect(row).toHaveClass("flex", "text-muted");
expect(heading).toHaveClass("cursor-grab", "focus-visible:ring-1");
expect(folder).toHaveClass("h-4", "block", "group-hover/folder:hidden");
expect(folderOpen).toHaveClass("h-4", "hidden", "group-hover/folder:block");
diff --git a/__tests__/components/features/conversation-panel/conversation-panel.test.tsx b/__tests__/components/features/conversation-panel/conversation-panel.test.tsx
index c699f076ed..2779354730 100644
--- a/__tests__/components/features/conversation-panel/conversation-panel.test.tsx
+++ b/__tests__/components/features/conversation-panel/conversation-panel.test.tsx
@@ -1863,7 +1863,7 @@ describe("ConversationPanel", () => {
const deleteAllRow = screen.getByTestId("delete-all-conversations");
expect(deleteAllRow.querySelector("svg")).toBeInTheDocument();
expect(deleteAllRow).toHaveClass("text-danger");
- expect(deleteAllRow).not.toHaveClass("text-[var(--oh-foreground)]");
+ expect(deleteAllRow).not.toHaveClass("text-foreground");
// The older-conversations toggle lives in the Advanced options modal.
await user.click(screen.getByTestId("advanced-options-row"));
diff --git a/__tests__/components/features/home/automation-run-activity-sparkline.test.ts b/__tests__/components/features/home/automation-run-activity-sparkline.test.ts
index 0d30b15d1e..208b360d50 100644
--- a/__tests__/components/features/home/automation-run-activity-sparkline.test.ts
+++ b/__tests__/components/features/home/automation-run-activity-sparkline.test.ts
@@ -92,7 +92,7 @@ describe("formatDurationForTitle", () => {
describe("barColorClassForStatus", () => {
it("uses a pulsing success green for running bars", () => {
const classes = barColorClassForStatus(AutomationRunStatus.RUNNING);
- expect(classes).toContain("bg-[var(--oh-status-success)]");
+ expect(classes).toContain("bg-status-success");
expect(classes).toContain("animate-pulse");
});
@@ -104,17 +104,11 @@ describe("barColorClassForStatus", () => {
});
it("uses warning color for blocked task outcomes", () => {
- expect(barColorClassForStatus("blocked")).toContain(
- "bg-[var(--oh-warning)]",
- );
+ expect(barColorClassForStatus("blocked")).toContain("bg-warning");
});
it("uses warning color for partial and unknown task outcomes", () => {
- expect(barColorClassForStatus("partial_success")).toContain(
- "bg-[var(--oh-warning)]",
- );
- expect(barColorClassForStatus("unknown")).toContain(
- "bg-[var(--oh-warning)]",
- );
+ expect(barColorClassForStatus("partial_success")).toContain("bg-warning");
+ expect(barColorClassForStatus("unknown")).toContain("bg-warning");
});
});
diff --git a/__tests__/components/features/home/featured-automations-section.test.tsx b/__tests__/components/features/home/featured-automations-section.test.tsx
index 7ddd0fe7e2..2b38cf9369 100644
--- a/__tests__/components/features/home/featured-automations-section.test.tsx
+++ b/__tests__/components/features/home/featured-automations-section.test.tsx
@@ -436,7 +436,7 @@ describe("home automations composer layout", () => {
);
expect(pinnedCard.className).toContain("extension-module-card-interactive");
expect(pinnedCard.className).toContain("bg-base-secondary");
- expect(pinnedCard.className).not.toContain("border-[var(--oh-border)]");
+ expect(pinnedCard.className).not.toContain("border-border");
expect(pinnedCard).toBeInTheDocument();
expect(
within(dashboard).getByTestId("pinned-automation-pills-auto-1-wrap"),
diff --git a/__tests__/components/features/home/git-repo-dropdown.test.tsx b/__tests__/components/features/home/git-repo-dropdown.test.tsx
index 8203f60be8..8b28cb992b 100644
--- a/__tests__/components/features/home/git-repo-dropdown.test.tsx
+++ b/__tests__/components/features/home/git-repo-dropdown.test.tsx
@@ -183,7 +183,7 @@ describe("GitRepoDropdown", () => {
"text-sm",
"font-normal",
"leading-5",
- "placeholder:text-[var(--oh-muted)]",
+ "placeholder:text-muted",
"disabled:cursor-not-allowed",
"disabled:opacity-60",
);
@@ -489,10 +489,10 @@ describe("GitRepoDropdown", () => {
screen.getByTestId("git-repo-dropdown-menu"),
).getByRole("option", { name: "user/repo-two" });
expect(selectedOption).toHaveAttribute("aria-selected", "true");
- expect(selectedOption).toHaveClass("bg-[var(--oh-interactive-selected)]");
+ expect(selectedOption).toHaveClass("bg-interactive-selected");
expect(unselectedOption).toHaveAttribute("aria-selected", "false");
expect(unselectedOption).toHaveClass(
- "hover:bg-[var(--oh-interactive-hover)]",
+ "hover:bg-interactive-hover",
);
});
diff --git a/__tests__/components/features/home/provider-selection.test.tsx b/__tests__/components/features/home/provider-selection.test.tsx
index efed6ce30f..fa7e7a7c1e 100644
--- a/__tests__/components/features/home/provider-selection.test.tsx
+++ b/__tests__/components/features/home/provider-selection.test.tsx
@@ -67,7 +67,7 @@ describe("git provider selection", () => {
expect(emptyMarkup).toContain('value=""');
expect(selectedMarkup).toContain("pl-6");
- expect(selectedMarkup).toContain("min-w-[14px]");
+ expect(selectedMarkup).toContain("min-w-3.5");
});
it("lists every provider with its user-facing name and selects one", async () => {
@@ -97,15 +97,15 @@ describe("git provider selection", () => {
"rounded",
"text-inherit",
"bg-tertiary",
- "placeholder:text-[var(--oh-muted)]",
+ "placeholder:text-muted",
"focus:outline-none",
"focus:ring-0",
- "focus:border-[var(--oh-border-input)]",
+ "focus:border-border-input",
"disabled:bg-tertiary",
"disabled:cursor-not-allowed",
"disabled:opacity-60",
"pl-1.5",
- "pr-[1px]",
+ "pr-px",
"cursor-pointer",
"text-xs",
"font-normal",
@@ -144,8 +144,8 @@ describe("git provider selection", () => {
"z-10",
);
expect(input.previousElementSibling?.querySelector("svg")).toHaveClass(
- "min-w-[14px]",
- "h-[14px]",
+ "min-w-3.5",
+ "h-3.5",
);
expect(screen.queryByRole("option")).not.toBeInTheDocument();
});
@@ -388,16 +388,16 @@ describe("git provider selection", () => {
name: "GitHub",
});
expect(selectedOption).toHaveAttribute("aria-selected", "true");
- expect(selectedOption).toHaveClass("bg-[var(--oh-interactive-selected)]");
+ expect(selectedOption).toHaveClass("bg-interactive-selected");
expect(selectedOption).not.toHaveClass(
- "hover:bg-[var(--oh-interactive-hover)]",
+ "hover:bg-interactive-hover",
);
expect(unselectedOption).toHaveAttribute("aria-selected", "false");
expect(unselectedOption).toHaveClass(
- "hover:bg-[var(--oh-interactive-hover)]",
+ "hover:bg-interactive-hover",
);
expect(unselectedOption).not.toHaveClass(
- "bg-[var(--oh-interactive-selected)]",
+ "bg-interactive-selected",
);
});
});
diff --git a/__tests__/components/features/settings/secrets-settings/secret-form-behavior.test.tsx b/__tests__/components/features/settings/secrets-settings/secret-form-behavior.test.tsx
index 0c595125b8..04f4783a1a 100644
--- a/__tests__/components/features/settings/secrets-settings/secret-form-behavior.test.tsx
+++ b/__tests__/components/features/settings/secrets-settings/secret-form-behavior.test.tsx
@@ -80,14 +80,14 @@ describe("Secret form behavior", () => {
expect(screen.getByTestId("value-input")).toHaveClass(
"resize-none",
"placeholder:italic",
- "disabled:bg-[var(--oh-surface-raised)]",
- "disabled:border-[var(--oh-border-subtle)]",
+ "disabled:bg-surface-raised",
+ "disabled:border-border-subtle",
"disabled:cursor-not-allowed",
);
expect(screen.getByTestId("description-input")).toHaveValue("");
expect(screen.getByTestId("description-input")).toHaveClass(
- "disabled:bg-[var(--oh-surface-raised)]",
- "disabled:border-[var(--oh-border-subtle)]",
+ "disabled:bg-surface-raised",
+ "disabled:border-border-subtle",
);
expect(screen.getByTestId("submit-button")).toHaveTextContent(
I18nKey.SECRETS$ADD_SECRET,
diff --git a/__tests__/components/shared/brand-button.test.tsx b/__tests__/components/shared/brand-button.test.tsx
index ee8eb5d456..72d27c9fda 100644
--- a/__tests__/components/shared/brand-button.test.tsx
+++ b/__tests__/components/shared/brand-button.test.tsx
@@ -6,6 +6,23 @@ import { BrandButton } from "#/components/features/settings/brand-button";
describe("BrandButton", () => {
const onClickMock = vi.fn();
+ it.each([undefined, "text-xs"])(
+ "preserves primary foreground and font size when merging %s",
+ (className) => {
+ render(
+ <BrandButton type="button" variant="primary" className={className}>
+ Save
+ </BrandButton>,
+ );
+ // A color named text-base is misclassified as a font size by
+ // tailwind-merge, dropping text-sm or being dropped by a size override.
+ expect(screen.getByRole("button", { name: "Save" })).toHaveClass(
+ className ?? "text-sm",
+ "text-on-primary",
+ );
+ },
+ );
+
it("should set a test id", () => {
render(
<BrandButton testId="brand-button" type="button" variant="primary">
diff --git a/__tests__/utils/form-control-classes.test.ts b/__tests__/utils/form-control-classes.test.ts
index e52d64519a..c2f83ce6f9 100644
--- a/__tests__/utils/form-control-classes.test.ts
+++ b/__tests__/utils/form-control-classes.test.ts
@@ -9,7 +9,7 @@ describe("formControlClasses", () => {
it("standardizes fields, shells, and buttons to 36px with rounded-lg", () => {
expect(formControlFieldClassName).toContain("h-9");
expect(formControlFieldClassName).toContain("rounded-lg");
- expect(formControlFieldClassName).toContain("border-[var(--oh-border)]");
+ expect(formControlFieldClassName).toContain("border-border");
expect(formControlFieldClassName).toContain("bg-base-secondary");
expect(formControlShellClassName).toContain("h-9");
diff --git a/__tests__/utils/git-and-task-utilities.test.ts b/__tests__/utils/git-and-task-utilities.test.ts
index 73fd97c9e9..03959d6011 100644
--- a/__tests__/utils/git-and-task-utilities.test.ts
+++ b/__tests__/utils/git-and-task-utilities.test.ts
@@ -516,12 +516,8 @@ describe("getStatusClassName", () => {
expect(getStatusClassName("in_progress")).toBe(
"bg-yellow-800 text-yellow-200",
);
- expect(getStatusClassName("todo")).toBe(
- "bg-tertiary text-[var(--oh-text-tertiary)]",
- );
- expect(getStatusClassName("")).toBe(
- "bg-tertiary text-[var(--oh-text-tertiary)]",
- );
+ expect(getStatusClassName("todo")).toBe("bg-tertiary text-text-tertiary");
+ expect(getStatusClassName("")).toBe("bg-tertiary text-text-tertiary");
});
});
diff --git a/eslint.config.js b/eslint.config.js
index 6645535212..ef1c4080fd 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -36,6 +36,7 @@ import prettierPlugin from "eslint-plugin-prettier";
import prettierConfig from "eslint-config-prettier";
import unusedImportsPlugin from "eslint-plugin-unused-imports";
import tanstackQueryPlugin from "@tanstack/eslint-plugin-query";
+import { plugin as shadcnPlugin } from "@shadcn/lint";
import globals from "globals";
const __filename = fileURLToPath(import.meta.url);
@@ -389,4 +390,22 @@ export default [
"react/react-in-jsx-scope": "off",
},
},
+
+ // @shadcn/lint β€” design-system linter for Tailwind v4.
+ // Rules: https://github.com/shadcn-ui/lint#rules
+ // `no-arbitrary-values` stays at "warn": the remaining hits are one-offs
+ // (raw hex, vh/vw, calc(), grid templates) with no theme-scale equivalent.
+ // The other rules need per-component contracts before they are useful here.
+ {
+ files: ["src/**/*.{ts,tsx}"],
+ plugins: { shadcn: shadcnPlugin },
+ rules: {
+ "shadcn/no-arbitrary-values": "warn",
+ "shadcn/no-restyle": "off",
+ "shadcn/no-raw-colors": "off",
+ "shadcn/no-inline-styles": "off",
+ "shadcn/require-static-classes": "off",
+ "shadcn/no-unknown-classes": "off",
+ },
+ },
];
diff --git a/package-lock.json b/package-lock.json
index e9c25da3c1..056f6515ac 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -70,6 +70,7 @@
"@mswjs/socket.io-binding": "0.2.0",
"@playwright/test": "1.62.1",
"@react-router/dev": "7.18.2",
+ "@shadcn/lint": "^0.1.0",
"@stryker-mutator/core": "9.6.1",
"@stryker-mutator/vitest-runner": "9.6.1",
"@tailwindcss/typography": "0.5.20",
@@ -4197,6 +4198,353 @@
"zod": "^3.25.0 || ^4.0.0"
}
},
+ "node_modules/@oxc-parser/binding-android-arm-eabi": {
+ "version": "0.148.0",
+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-android-arm-eabi/-/binding-android-arm-eabi-0.148.0.tgz",
+ "integrity": "sha512-pHASv9g5pASxb7akHERZNSkrEqPhFaUix98o7d9hbTpolnnFWl7UiRrcMhCsV1+iVO4/cJwKsbKRJTFNs2tdBQ==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxc-parser/binding-android-arm64": {
+ "version": "0.148.0",
+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-android-arm64/-/binding-android-arm64-0.148.0.tgz",
+ "integrity": "sha512-sg/6Ez0KdAygsu0POELux9wN1Po2CP93WY8eNl4DBKIGprsd4QSHBXOb471Pu9i2OCD5sLkISSb2agZEhVn2Zw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxc-parser/binding-darwin-arm64": {
+ "version": "0.148.0",
+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-darwin-arm64/-/binding-darwin-arm64-0.148.0.tgz",
+ "integrity": "sha512-yiSJmzGUvCUaJT8X3j40gVcX+ckuHQMuiOtF8DvzTs5+JtB/7XuHFPp4M+vv5u+HlBtDUd4Ks5pyHpWz8mfnkg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxc-parser/binding-darwin-x64": {
+ "version": "0.148.0",
+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-darwin-x64/-/binding-darwin-x64-0.148.0.tgz",
+ "integrity": "sha512-6ZeklaamrMy4H2JmhvcJg6iip59tYILtuLaILxyAHT3l5FDxnI5ihVievAft5ZmAbqtlWHErOi1OpJK8gy1wcA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxc-parser/binding-freebsd-x64": {
+ "version": "0.148.0",
+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-freebsd-x64/-/binding-freebsd-x64-0.148.0.tgz",
+ "integrity": "sha512-vFsPx+a/qFECPnz/H8nC6x6MDvnWscLTCo/5muojEF54ERUq1kdgbvnWo95YnkhjF9sTIcG/uDxQBh1gffaufQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxc-parser/binding-linux-arm-gnueabihf": {
+ "version": "0.148.0",
+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-0.148.0.tgz",
+ "integrity": "sha512-eOr3M+6iGbbxNL4PSS0VtsyQ2eOUxSBh00BqO22SbolDimPSYsBuLr/LCrZBkiqW2BoabhR6V4R8jrRAay7hjg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxc-parser/binding-linux-arm-musleabihf": {
+ "version": "0.148.0",
+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-arm-musleabihf/-/binding-linux-arm-musleabihf-0.148.0.tgz",
+ "integrity": "sha512-58ZKDw0mQRbCNfrd2IDyV4o8T7enzGERJn41BH2tjrZVGyiKiFzcfDicuB7Zcpb/1xIOrObovr8Dja6lZi8dLw==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxc-parser/binding-linux-arm64-gnu": {
+ "version": "0.148.0",
+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-0.148.0.tgz",
+ "integrity": "sha512-Fnu95O4eZ5i++GPvIzBEZ8y4ddTLR+D9paYa8JRaRk6ZK7nHQiWP5xtrhcPQsXqgat1d7sU/d5rbbI0p1FTHSQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxc-parser/binding-linux-arm64-musl": {
+ "version": "0.148.0",
+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-arm64-musl/-/binding-linux-arm64-musl-0.148.0.tgz",
+ "integrity": "sha512-3CQy/BMdx7N7H3qrcPxUL+a2CwUZodUcf6oq8iJuNZ9C6Ol1aq3mcWzsgySJ7CHFLvpX21ZDPp1r1X0QLbu/AQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxc-parser/binding-linux-ppc64-gnu": {
+ "version": "0.148.0",
+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-0.148.0.tgz",
+ "integrity": "sha512-9LkaYvfiF8hMOw900csAvkf1oxE8XlmMeGowu5BcastSSwV8mKvKRMNU7HsV+ycyj1dQD8pX5qgOw8ja6SJacg==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxc-parser/binding-linux-riscv64-gnu": {
+ "version": "0.148.0",
+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-0.148.0.tgz",
+ "integrity": "sha512-2GBiM9h26dR4WJfhoMvnFMnFLf7m/kYs4UMqjvrOfQG4BV1nuTJDH22Zc2MQr3INZF7nSKYQ6xlhD3hQ7A6gug==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxc-parser/binding-linux-riscv64-musl": {
+ "version": "0.148.0",
+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-0.148.0.tgz",
+ "integrity": "sha512-uPqZexvKJmEgq4mAu36qe2xTfXZE7oyik1R7KtZ5tl8qKlq1U1fIqTFRUEBZqRGvforoTrGIpatRzcoPKO66RA==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxc-parser/binding-linux-s390x-gnu": {
+ "version": "0.148.0",
+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-0.148.0.tgz",
+ "integrity": "sha512-9oUHvnTbp7ZraFsTC8PN6XhdhPSSxZumYvixWl7Smi353gEULvK6yV0sXNVrdFMHQeaDKFCi8TgDhNK7/A+Y+Q==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxc-parser/binding-linux-x64-gnu": {
+ "version": "0.148.0",
+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-x64-gnu/-/binding-linux-x64-gnu-0.148.0.tgz",
+ "integrity": "sha512-2qhDSJwKzbSZzF7lDqqk8sr/yXsmwr3PeUa4/nazIF+zFAYz1gVPEfC34GQtGxzJUUmklaYAL63368LEfrMeyw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxc-parser/binding-linux-x64-musl": {
+ "version": "0.148.0",
+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-x64-musl/-/binding-linux-x64-musl-0.148.0.tgz",
+ "integrity": "sha512-qQoPDZUFV0bh9xA09XydmkjMBpgc1ukJuhMvzQ9QeVmFaHTS9W5TE5CoLmSl3QQyUP9OuHO3x/WPZTIIZPWR3Q==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxc-parser/binding-openharmony-arm64": {
+ "version": "0.148.0",
+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-openharmony-arm64/-/binding-openharmony-arm64-0.148.0.tgz",
+ "integrity": "sha512-1UGbaQWEXUCLqAmaR5kwRDjx/R4S5LQKZkM9CHmaHkuKhriOF32aRLfS0jCRNE2yGQJLMEA1z9UucbBVqjXnDw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxc-parser/binding-win32-arm64-msvc": {
+ "version": "0.148.0",
+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-0.148.0.tgz",
+ "integrity": "sha512-pWKdzRDNG2+NK4h/V6U/CYERcfYD6u28h5IB/VJVsrZaD3muvE58tUj22lieL5vLZ+XFi1GPv9YXckZbJZ9BLA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxc-parser/binding-win32-ia32-msvc": {
+ "version": "0.148.0",
+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-0.148.0.tgz",
+ "integrity": "sha512-i3p4x+mvwtjcE1J5HM6V7ggsbXiznExN/4MkNyOy3dfXrVV3bnkSfmZxvo6/84qCVX4ShkpNE1SKt9biIF31GQ==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxc-parser/binding-win32-x64-msvc": {
+ "version": "0.148.0",
+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-win32-x64-msvc/-/binding-win32-x64-msvc-0.148.0.tgz",
+ "integrity": "sha512-Ye6vB7VQulghWYkYkECOBYFRVEizz4XyRTUAv+t8BuyurhKU7uD0P9eowL+mKG5Mf8MSYx+DI3Cm8SKZvYG7bQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
"node_modules/@oxc-project/types": {
"version": "0.133.0",
"resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.133.0.tgz",
@@ -6626,6 +6974,32 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/@shadcn/lint": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/@shadcn/lint/-/lint-0.1.0.tgz",
+ "integrity": "sha512-UDSxO4eQa8UAclN1tChum+L336CL2uB2ZLGYiJ7r/GDrYUBOKPWWNUVoAfh2dZs4LhcwJRCn62+fKG12eAy1FQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint/core": "^0.17.0",
+ "@typescript-eslint/parser": "^8.40.0",
+ "cn": "0.2.6"
+ },
+ "engines": {
+ "node": ">=20.19"
+ },
+ "optionalDependencies": {
+ "oxc-parser": "^0.148.0"
+ },
+ "peerDependencies": {
+ "eslint": ">=9.30.0"
+ },
+ "peerDependenciesMeta": {
+ "eslint": {
+ "optional": true
+ }
+ }
+ },
"node_modules/@sindresorhus/is": {
"version": "4.6.0",
"resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz",
@@ -10227,6 +10601,19 @@
"node": ">=6"
}
},
+ "node_modules/cn": {
+ "version": "0.2.6",
+ "resolved": "https://registry.npmjs.org/cn/-/cn-0.2.6.tgz",
+ "integrity": "sha512-+i4L0zUGgRcEnhsxueVrP7iBGxBx5iD0WOTYg1MwFEu2ZyCmH5Ov2V1cul2Ht5UchRQQgftCf4be/RxspuW6QQ==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "cn": "bin/cn.mjs"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
"node_modules/code-block-writer": {
"version": "10.1.1",
"resolved": "https://registry.npmjs.org/code-block-writer/-/code-block-writer-10.1.1.tgz",
@@ -16983,6 +17370,55 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/oxc-parser": {
+ "version": "0.148.0",
+ "resolved": "https://registry.npmjs.org/oxc-parser/-/oxc-parser-0.148.0.tgz",
+ "integrity": "sha512-syxUKHeUll89RIABQADcI7sikYrwyssvA6gj4phSSIPezKVM8yMaLAiLLSc7fmzVvrwybfFGFbW5zme9sX87rg==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@oxc-project/types": "^0.148.0"
+ },
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/oxc-project"
+ },
+ "optionalDependencies": {
+ "@oxc-parser/binding-android-arm-eabi": "0.148.0",
+ "@oxc-parser/binding-android-arm64": "0.148.0",
+ "@oxc-parser/binding-darwin-arm64": "0.148.0",
+ "@oxc-parser/binding-darwin-x64": "0.148.0",
+ "@oxc-parser/binding-freebsd-x64": "0.148.0",
+ "@oxc-parser/binding-linux-arm-gnueabihf": "0.148.0",
+ "@oxc-parser/binding-linux-arm-musleabihf": "0.148.0",
+ "@oxc-parser/binding-linux-arm64-gnu": "0.148.0",
+ "@oxc-parser/binding-linux-arm64-musl": "0.148.0",
+ "@oxc-parser/binding-linux-ppc64-gnu": "0.148.0",
+ "@oxc-parser/binding-linux-riscv64-gnu": "0.148.0",
+ "@oxc-parser/binding-linux-riscv64-musl": "0.148.0",
+ "@oxc-parser/binding-linux-s390x-gnu": "0.148.0",
+ "@oxc-parser/binding-linux-x64-gnu": "0.148.0",
+ "@oxc-parser/binding-linux-x64-musl": "0.148.0",
+ "@oxc-parser/binding-openharmony-arm64": "0.148.0",
+ "@oxc-parser/binding-win32-arm64-msvc": "0.148.0",
+ "@oxc-parser/binding-win32-ia32-msvc": "0.148.0",
+ "@oxc-parser/binding-win32-x64-msvc": "0.148.0"
+ }
+ },
+ "node_modules/oxc-parser/node_modules/@oxc-project/types": {
+ "version": "0.148.0",
+ "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.148.0.tgz",
+ "integrity": "sha512-Nm4s/jB+4FpFsPhWGEC4h7rzksesmtnMXomo6rCMcg/b8zLQuOziRgkCS1fxDCXOlJB/6Q8oABOZ/OP6RIPj9A==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "funding": {
+ "url": "https://github.com/sponsors/oxc-project"
+ }
+ },
"node_modules/p-cancelable": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz",
diff --git a/package.json b/package.json
index 49eb560e45..3f090fa533 100644
--- a/package.json
+++ b/package.json
@@ -131,6 +131,7 @@
"@mswjs/socket.io-binding": "0.2.0",
"@playwright/test": "1.62.1",
"@react-router/dev": "7.18.2",
+ "@shadcn/lint": "0.1.0",
"@stryker-mutator/core": "9.6.1",
"@stryker-mutator/vitest-runner": "9.6.1",
"@tailwindcss/typography": "0.5.20",
diff --git a/src/components/conversation-events/chat/event-message-components/collapsible-thinking.tsx b/src/components/conversation-events/chat/event-message-components/collapsible-thinking.tsx
index 7b5100ec43..c0a241a4e2 100644
--- a/src/components/conversation-events/chat/event-message-components/collapsible-thinking.tsx
+++ b/src/components/conversation-events/chat/event-message-components/collapsible-thinking.tsx
@@ -41,9 +41,9 @@ export function CollapsibleThinking({ content }: CollapsibleThinkingProps) {
data-testid="collapsible-thinking-toggle"
className="w-full flex items-center gap-2 text-left cursor-pointer"
>
- <Chevron className="h-4 w-4 fill-[var(--oh-muted)] flex-shrink-0" />
- <LightbulbIcon className="h-4 w-4 fill-[var(--oh-muted)] flex-shrink-0" />
- <span className="font-normal text-[var(--oh-muted)]">
+ <Chevron className="h-4 w-4 fill-muted flex-shrink-0" />
+ <LightbulbIcon className="h-4 w-4 fill-muted flex-shrink-0" />
+ <span className="font-normal text-muted">
{t(I18nKey.THINKING$TITLE)}
</span>
</button>
diff --git a/src/components/conversation-events/chat/event-message-components/event-group.tsx b/src/components/conversation-events/chat/event-message-components/event-group.tsx
index 22f61eb3a8..4e4feb4321 100644
--- a/src/components/conversation-events/chat/event-message-components/event-group.tsx
+++ b/src/components/conversation-events/chat/event-message-components/event-group.tsx
@@ -124,26 +124,26 @@ export function EventGroup({
className="w-full flex items-center justify-between gap-2 text-left cursor-pointer"
>
{isFinalized ? (
- <span className="flex items-center gap-2 min-w-0 font-normal text-[var(--oh-muted)]">
- <Chevron className="h-4 w-4 fill-[var(--oh-muted)] flex-shrink-0" />
+ <span className="flex items-center gap-2 min-w-0 font-normal text-muted">
+ <Chevron className="h-4 w-4 fill-muted flex-shrink-0" />
<span className="truncate">{countSummary}</span>
</span>
) : (
<>
- <span className="flex items-center gap-2 min-w-0 font-normal text-[var(--oh-muted)]">
- <Chevron className="h-4 w-4 fill-[var(--oh-muted)] flex-shrink-0" />
+ <span className="flex items-center gap-2 min-w-0 font-normal text-muted">
+ <Chevron className="h-4 w-4 fill-muted flex-shrink-0" />
<span className="truncate">
<PathInteractiveContext.Provider value={false}>
{latestTitle ?? countSummary}
</PathInteractiveContext.Provider>
</span>
</span>
- <span className="flex items-center flex-shrink-0 font-normal text-[var(--oh-muted)]">
+ <span className="flex items-center flex-shrink-0 font-normal text-muted">
<span className="truncate">{countSummary}</span>
{isRunning ? (
<LoaderCircle
data-testid="spinner-icon"
- className="h-4 w-4 ml-2 inline animate-spin text-[var(--oh-muted)]"
+ className="h-4 w-4 ml-2 inline animate-spin text-muted"
/>
) : null}
</span>
diff --git a/src/components/conversation-events/chat/event-message-components/generic-event-message-wrapper.tsx b/src/components/conversation-events/chat/event-message-components/generic-event-message-wrapper.tsx
index 21c0bf270c..77657e7039 100644
--- a/src/components/conversation-events/chat/event-message-components/generic-event-message-wrapper.tsx
+++ b/src/components/conversation-events/chat/event-message-components/generic-event-message-wrapper.tsx
@@ -118,7 +118,7 @@ export function GenericEventMessageWrapper({
timestamp={event.timestamp}
titleIcon={
skillKnowledge ? (
- <SkillsIcon className="h-4 w-4 stroke-[var(--oh-muted)] flex-shrink-0 mr-2" />
+ <SkillsIcon className="h-4 w-4 stroke-muted flex-shrink-0 mr-2" />
) : undefined
}
/>
diff --git a/src/components/conversation-events/chat/event-message-components/skill-item-expanded.tsx b/src/components/conversation-events/chat/event-message-components/skill-item-expanded.tsx
index e9da328d8f..b06f1caaad 100644
--- a/src/components/conversation-events/chat/event-message-components/skill-item-expanded.tsx
+++ b/src/components/conversation-events/chat/event-message-components/skill-item-expanded.tsx
@@ -71,14 +71,14 @@ export function SkillItemExpanded({ content }: SkillItemExpandedProps) {
return (
<div className="pl-6 pr-2 pt-2 pb-2">
{hasMetadata && (
- <div className="mb-3 text-sm text-[var(--oh-muted)] space-y-1">
+ <div className="mb-3 text-sm text-muted space-y-1">
{matchInfo && <p>{matchInfo}</p>}
{filePath && (
<p>
- <Typography.Text className="text-[var(--oh-text-subtle)]">
+ <Typography.Text className="text-text-subtle">
{t(I18nKey.COMMON$PATH)}{" "}
</Typography.Text>
- <code className="bg-[var(--oh-surface)] px-1.5 py-0.5 rounded text-[var(--oh-text-tertiary)]">
+ <code className="bg-surface px-1.5 py-0.5 rounded text-text-tertiary">
{filePath}
</code>
</p>
@@ -86,9 +86,7 @@ export function SkillItemExpanded({ content }: SkillItemExpandedProps) {
</div>
)}
- {hasMetadata && body && (
- <hr className="border-[var(--oh-border-subtle)] mb-3" />
- )}
+ {hasMetadata && body && <hr className="border-border-subtle mb-3" />}
{body && <MarkdownRenderer>{styleImportantTags(body)}</MarkdownRenderer>}
</div>
diff --git a/src/components/conversation-events/chat/event-message-components/skill-ready-content-list.tsx b/src/components/conversation-events/chat/event-message-components/skill-ready-content-list.tsx
index 97018eb264..e9ec407895 100644
--- a/src/components/conversation-events/chat/event-message-components/skill-ready-content-list.tsx
+++ b/src/components/conversation-events/chat/event-message-components/skill-ready-content-list.tsx
@@ -31,7 +31,7 @@ export function SkillReadyContentList({
return (
<div className="flex flex-col gap-1 mt-1">
- <Typography.Text className="font-bold text-[var(--oh-foreground)] text-sm px-2 py-1">
+ <Typography.Text className="font-bold text-foreground text-sm px-2 py-1">
{t(titleKey)}
</Typography.Text>
{items.map((item) => {
@@ -40,28 +40,28 @@ export function SkillReadyContentList({
return (
<div
key={item.name}
- className="border border-[var(--oh-border-subtle)] rounded-md overflow-hidden"
+ className="border border-border-subtle rounded-md overflow-hidden"
>
<button
type="button"
onClick={() => toggleSkill(item.name)}
className="w-full py-1.5 px-2 text-left flex items-center gap-2 hover:bg-tertiary transition-colors cursor-pointer"
>
- <Typography.Text className="text-[var(--oh-text-tertiary)]">
+ <Typography.Text className="text-text-tertiary">
{isExpanded ? (
<ChevronDown size={14} />
) : (
<ChevronRight size={14} />
)}
</Typography.Text>
- <Typography.Text className="font-normal text-[var(--oh-foreground)] text-sm">
+ <Typography.Text className="font-normal text-foreground text-sm">
{item.name}
</Typography.Text>
</button>
{isExpanded && item.content && (
<>
- <hr className="border-[var(--oh-border-subtle)]" />
+ <hr className="border-border-subtle" />
<SkillItemExpanded content={item.content} />
</>
)}
diff --git a/src/components/conversation-events/chat/task-tracking/task-item.tsx b/src/components/conversation-events/chat/task-tracking/task-item.tsx
index cf77654351..13f525f822 100644
--- a/src/components/conversation-events/chat/task-tracking/task-item.tsx
+++ b/src/components/conversation-events/chat/task-tracking/task-item.tsx
@@ -22,7 +22,7 @@ export function TaskItem({ task }: TaskItemProps) {
case "in_progress":
return <CheckCircleHalfIcon className="w-4 h-4 text-[#ffffff]" />;
case "done":
- return <CheckCircleIcon className="w-4 h-4 text-[var(--oh-muted)]" />;
+ return <CheckCircleIcon className="w-4 h-4 text-muted" />;
default:
return <CircleIcon className="w-4 h-4 text-[#ffffff]" />;
}
@@ -32,21 +32,18 @@ export function TaskItem({ task }: TaskItemProps) {
return (
<div
- className="flex gap-[14px] items-center px-4 py-2 w-full"
+ className="flex gap-3.5 items-center px-4 py-2 w-full"
data-name="item"
>
<div className="shrink-0">{icon}</div>
- <div className="flex flex-col items-start justify-center leading-[20px] text-nowrap whitespace-pre font-normal">
+ <div className="flex flex-col items-start justify-center leading-5 text-nowrap whitespace-pre font-normal">
<Typography.Text
- className={cn(
- "text-[12px] text-white",
- isDoneStatus && "text-[var(--oh-muted)]",
- )}
+ className={cn("text-xs text-white", isDoneStatus && "text-muted")}
>
{task.title}
</Typography.Text>
{task.notes && (
- <Typography.Text className="text-[10px] text-[var(--oh-muted)]">
+ <Typography.Text className="text-[10px] text-muted">
{t(I18nKey.TASK_TRACKING_OBSERVATION$TASK_NOTES)}: {task.notes}
</Typography.Text>
)}
diff --git a/src/components/conversation-events/chat/task-tracking/task-list-section.tsx b/src/components/conversation-events/chat/task-tracking/task-list-section.tsx
index 8b0552e843..b673c03d01 100644
--- a/src/components/conversation-events/chat/task-tracking/task-list-section.tsx
+++ b/src/components/conversation-events/chat/task-tracking/task-list-section.tsx
@@ -13,11 +13,11 @@ export function TaskListSection({ taskList }: TaskListSectionProps) {
const { t } = useTranslation("openhands");
return (
- <div className="flex flex-col overflow-clip bg-[var(--oh-surface)] border border-[var(--oh-border)] rounded-[12px] w-full">
+ <div className="flex flex-col overflow-clip bg-surface border border-border rounded-xl w-full">
{/* Header Tabs */}
- <div className="flex gap-1 items-center border-b border-[var(--oh-border)] h-[41px] px-2 shrink-0">
- <LessonPlanIcon className="shrink-0 w-4.5 h-4.5 text-[var(--oh-muted)]" />
- <Typography.Text className="text-[11px] text-nowrap text-white tracking-[0.11px] font-medium leading-[16px] whitespace-pre">
+ <div className="flex gap-1 items-center border-b border-border h-10.25 px-2 shrink-0">
+ <LessonPlanIcon className="shrink-0 w-4.5 h-4.5 text-muted" />
+ <Typography.Text className="text-[11px] text-nowrap text-white tracking-[0.11px] font-medium leading-4 whitespace-pre">
{t(I18nKey.COMMON$TASKS)}
</Typography.Text>
</div>
diff --git a/src/components/features/analytics/telemetry-consent-banner.tsx b/src/components/features/analytics/telemetry-consent-banner.tsx
index 7dfa9af8d1..6ff959ab4e 100644
--- a/src/components/features/analytics/telemetry-consent-banner.tsx
+++ b/src/components/features/analytics/telemetry-consent-banner.tsx
@@ -80,7 +80,7 @@ function LocalTelemetryConsentBanner({
onSubmit={handleSubmit}
className="flex flex-col gap-2"
>
- <ModalBody className="border border-[var(--oh-border)]">
+ <ModalBody className="border border-border">
<BaseModalTitle title={t(I18nKey.TELEMETRY$CONSENT_TITLE)} />
<BaseModalDescription>
{t(I18nKey.TELEMETRY$CONSENT_DESCRIPTION)}
diff --git a/src/components/features/automations/add-automation-modal.tsx b/src/components/features/automations/add-automation-modal.tsx
index 74c25d8e25..b11d4708a0 100644
--- a/src/components/features/automations/add-automation-modal.tsx
+++ b/src/components/features/automations/add-automation-modal.tsx
@@ -26,7 +26,7 @@ export function AddAutomationModal({
>
<div
data-testid="add-automation-modal"
- className="relative flex w-full max-w-lg flex-col rounded-xl border border-[var(--oh-border)] bg-base-secondary"
+ className="relative flex w-full max-w-lg flex-col rounded-xl border border-border bg-base-secondary"
>
<ModalCloseButton
onClose={onClose}
diff --git a/src/components/features/automations/automation-card.tsx b/src/components/features/automations/automation-card.tsx
index 37d6885dd3..c7697d6953 100644
--- a/src/components/features/automations/automation-card.tsx
+++ b/src/components/features/automations/automation-card.tsx
@@ -132,7 +132,7 @@ export function AutomationCard({
>
<header className="flex flex-col gap-1.5">
<div className="flex h-8 items-center justify-between gap-3">
- <h3 className="min-w-0 flex-1 truncate text-sm font-semibold leading-none text-[var(--oh-foreground)]">
+ <h3 className="min-w-0 flex-1 truncate text-sm font-semibold leading-none text-foreground">
{automation.name}
</h3>
<div className="flex shrink-0 items-center gap-0.5">
@@ -164,7 +164,7 @@ export function AutomationCard({
</div>
</div>
{automation.prompt ? (
- <p className="line-clamp-2 text-xs leading-relaxed text-[var(--oh-text-secondary)]">
+ <p className="line-clamp-2 text-xs leading-relaxed text-text-secondary">
{automation.prompt}
</p>
) : null}
@@ -206,13 +206,13 @@ export function AutomationCard({
) : null}
{!isLoading && isError ? (
- <p className="truncate text-[var(--oh-text-secondary)]">
+ <p className="truncate text-text-secondary">
{t(I18nKey.FEATURED_AUTOMATIONS$STATUS_UNAVAILABLE)}
</p>
) : null}
{!isLoading && !isError && !latestRun ? (
- <p className="truncate text-[var(--oh-text-secondary)]">
+ <p className="truncate text-text-secondary">
{t(I18nKey.AUTOMATIONS$DETAIL$NO_RUNS)}
</p>
) : null}
@@ -245,14 +245,14 @@ export function AutomationCard({
placement="top"
closeDelay={100}
disableAnimation={disableAnimation}
- className="rounded-xl border border-[var(--oh-border)] bg-base-secondary p-0 text-white shadow-xl"
+ className="rounded-xl border border-border bg-base-secondary p-0 text-white shadow-xl"
>
- <span className="min-w-0 flex-1 cursor-default truncate text-[var(--oh-text-secondary)]">
+ <span className="min-w-0 flex-1 cursor-default truncate text-text-secondary">
{shortSummary}
</span>
</Tooltip>
) : (
- <p className="min-w-0 flex-1 truncate text-[var(--oh-text-secondary)]">
+ <p className="min-w-0 flex-1 truncate text-text-secondary">
{shortSummary}
</p>
)
@@ -264,7 +264,7 @@ export function AutomationCard({
{timestamp ? (
<span
data-testid={`automation-last-run-${automation.id}`}
- className="shrink-0 text-[var(--oh-text-secondary)]"
+ className="shrink-0 text-text-secondary"
>
{formatRelativeTime(timestamp, i18n.language, t)}
</span>
@@ -275,7 +275,7 @@ export function AutomationCard({
{impactStatement ? (
<p
data-testid={`automation-impact-${automation.id}`}
- className="mt-3 truncate text-xs text-[var(--oh-text-secondary)]"
+ className="mt-3 truncate text-xs text-text-secondary"
>
{impactStatement}
</p>
diff --git a/src/components/features/automations/automation-health-badge.tsx b/src/components/features/automations/automation-health-badge.tsx
index 111d564720..cf00cc561d 100644
--- a/src/components/features/automations/automation-health-badge.tsx
+++ b/src/components/features/automations/automation-health-badge.tsx
@@ -11,13 +11,12 @@ import { cn } from "#/utils/utils";
*/
const HEALTH_STYLES: Record<AutomationHealth, string> = {
healthy:
- "border-[var(--oh-success)]/50 bg-[var(--oh-success)]/10 text-[var(--oh-success)]",
- failing: "border-[var(--oh-danger)]/50 bg-[var(--oh-danger)]/10 text-danger",
- running: "border-[var(--oh-border)] bg-surface-raised text-muted",
- disabled: "border-[var(--oh-border)] bg-surface-raised text-muted",
- "never-run":
- "border-[var(--oh-warning)]/50 bg-[var(--oh-warning)]/10 text-[var(--oh-warning)]",
- unknown: "border-[var(--oh-border)] bg-surface-raised text-muted",
+ "border-semantic-success/50 bg-semantic-success/10 text-semantic-success",
+ failing: "border-semantic-danger/50 bg-semantic-danger/10 text-danger",
+ running: "border-border bg-surface-raised text-muted",
+ disabled: "border-border bg-surface-raised text-muted",
+ "never-run": "border-warning/50 bg-warning/10 text-warning",
+ unknown: "border-border bg-surface-raised text-muted",
};
interface AutomationHealthBadgeProps {
diff --git a/src/components/features/automations/automation-list-row.tsx b/src/components/features/automations/automation-list-row.tsx
index a7962f9537..d2df5bab87 100644
--- a/src/components/features/automations/automation-list-row.tsx
+++ b/src/components/features/automations/automation-list-row.tsx
@@ -131,12 +131,12 @@ export function AutomationListRow({
placement="top-start"
closeDelay={100}
disableAnimation={disableAnimation}
- className="rounded-xl border border-[var(--oh-border)] bg-base-secondary p-0 text-white shadow-xl"
+ className="rounded-xl border border-border bg-base-secondary p-0 text-white shadow-xl"
>
<NavigationLink
to={detailHref}
aria-label={`${automation.name} ${t(statusLabelKey)}`}
- className="flex min-w-0 flex-1 items-center justify-between gap-3 px-3 py-2.5 focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--oh-focus)]"
+ className="flex min-w-0 flex-1 items-center justify-between gap-3 px-3 py-2.5 focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus"
>
<div className="grid min-w-0 flex-1 grid-cols-[auto_minmax(0,1fr)] gap-x-2">
<span
@@ -145,11 +145,11 @@ export function AutomationListRow({
>
<AutomationHealthIndicator health={health} />
</span>
- <span className="truncate text-sm font-medium leading-5 text-[var(--oh-foreground)]">
+ <span className="truncate text-sm font-medium leading-5 text-foreground">
{automation.name}
</span>
{hasMeta ? (
- <span className="col-start-2 mt-0.5 flex min-w-0 items-center gap-1.5 text-xs leading-4 text-[var(--oh-text-secondary)]">
+ <span className="col-start-2 mt-0.5 flex min-w-0 items-center gap-1.5 text-xs leading-4 text-text-secondary">
<TriggerIcon className="size-3 shrink-0" aria-hidden="true" />
{triggerEventLabel ? (
<span className="truncate">{triggerEventLabel}</span>
@@ -161,7 +161,7 @@ export function AutomationListRow({
<span
className={cn(
extensionModuleCardPillClassName,
- "shrink-0 px-1.5 py-0 text-[var(--oh-text-secondary)]",
+ "shrink-0 px-1.5 py-0 text-text-secondary",
)}
>
{formatTriggerSourceLabel(triggerSource)}
diff --git a/src/components/features/automations/automation-view-mode.ts b/src/components/features/automations/automation-view-mode.ts
index 308222c529..a91b12f6aa 100644
--- a/src/components/features/automations/automation-view-mode.ts
+++ b/src/components/features/automations/automation-view-mode.ts
@@ -17,11 +17,11 @@ export function writeStoredAutomationViewMode(view: AutomationViewMode): void {
/** Shared chrome for the dashboard list and the home activity list. */
export const automationActivityListClassName =
- "divide-y divide-[var(--oh-border-subtle)] overflow-hidden rounded-xl border border-[var(--oh-border-subtle)] bg-[var(--oh-surface)]";
+ "divide-y divide-border-subtle overflow-hidden rounded-xl border border-border-subtle bg-surface";
export const automationActivityRowClassName =
"group relative flex items-stretch transition-colors hover:bg-surface-raised has-[:focus-visible]:bg-surface-raised";
/** Inset last-run strip used under the trigger/sparkline row. */
export const automationCardStatusStripClassName =
- "mt-3 flex min-h-9 items-center justify-between gap-2 overflow-hidden rounded-md border border-[var(--oh-border-subtle)] bg-[var(--oh-surface)] px-3 py-2 text-xs";
+ "mt-3 flex min-h-9 items-center justify-between gap-2 overflow-hidden rounded-md border border-border-subtle bg-surface px-3 py-2 text-xs";
diff --git a/src/components/features/automations/automation-view-toggle.tsx b/src/components/features/automations/automation-view-toggle.tsx
index e914c9c1c5..2a3f7e01b2 100644
--- a/src/components/features/automations/automation-view-toggle.tsx
+++ b/src/components/features/automations/automation-view-toggle.tsx
@@ -143,7 +143,7 @@ export function AutomationViewToggle({
setOpen((current) => !current);
}}
className={cn(
- "inline-flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-lg border border-[var(--oh-border)] bg-base-secondary text-white transition-colors hover:bg-[var(--oh-interactive-hover)] focus-visible:border-white/40 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-white/20",
+ "inline-flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-lg border border-border bg-base-secondary text-white transition-colors hover:bg-interactive-hover focus-visible:border-white/40 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-white/20",
"disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-base-secondary",
)}
>
diff --git a/src/components/features/automations/backend-not-configured.tsx b/src/components/features/automations/backend-not-configured.tsx
index 56a40c546c..b134f260e2 100644
--- a/src/components/features/automations/backend-not-configured.tsx
+++ b/src/components/features/automations/backend-not-configured.tsx
@@ -12,7 +12,7 @@ export function BackendUnavailable({ onRetry }: BackendUnavailableProps) {
return (
<div className="flex flex-col items-center justify-center py-20 px-4">
- <ExclamationCircleIcon className="size-12 text-[var(--oh-warning)]" />
+ <ExclamationCircleIcon className="size-12 text-warning" />
<h2 className="mt-4 text-lg font-medium text-content">
{t(I18nKey.AUTOMATIONS$BACKEND_UNAVAILABLE_TITLE)}
</h2>
diff --git a/src/components/features/automations/create-instructions.tsx b/src/components/features/automations/create-instructions.tsx
index 6032278c54..13a8b21fd9 100644
--- a/src/components/features/automations/create-instructions.tsx
+++ b/src/components/features/automations/create-instructions.tsx
@@ -19,8 +19,8 @@ function InlineCodeChip({ children }: { children?: ReactNode }) {
<code
data-testid="automations-create-instructions-example"
className={cn(
- "mx-0.5 inline-block rounded-sm border border-[var(--oh-border-subtle)]",
- "bg-[var(--oh-surface-raised)] px-1.5 py-0.5 align-baseline font-mono text-[11px] text-white",
+ "mx-0.5 inline-block rounded-sm border border-border-subtle",
+ "bg-surface-raised px-1.5 py-0.5 align-baseline font-mono text-[11px] text-white",
)}
>
{children}
@@ -104,7 +104,7 @@ export function CreateInstructions({
if (collapsible) {
return (
- <div className="w-full rounded-lg border border-[var(--oh-border)] bg-[var(--oh-surface)]">
+ <div className="w-full rounded-lg border border-border bg-surface">
<button
type="button"
onClick={() => setIsExpanded(!isExpanded)}
diff --git a/src/components/features/automations/dashboard/automations-dashboard-controls.tsx b/src/components/features/automations/dashboard/automations-dashboard-controls.tsx
index e5cdb9a06c..1565066e7d 100644
--- a/src/components/features/automations/dashboard/automations-dashboard-controls.tsx
+++ b/src/components/features/automations/dashboard/automations-dashboard-controls.tsx
@@ -124,7 +124,7 @@ export function AutomationsDashboardControls({
role="group"
data-testid="automations-filters-menu"
aria-label={filtersLabel}
- className="absolute right-0 top-full z-50 mt-1 flex min-w-[16rem] w-max flex-col gap-3 overflow-visible rounded-[6px] bg-tertiary p-3 context-menu-box-shadow"
+ className="absolute right-0 top-full z-50 mt-1 flex min-w-[16rem] w-max flex-col gap-3 overflow-visible rounded-md bg-tertiary p-3 context-menu-box-shadow"
>
{statusFilter ? (
<FilterField label={statusFilter.label}>
diff --git a/src/components/features/automations/dashboard/automations-filtered-empty-state.tsx b/src/components/features/automations/dashboard/automations-filtered-empty-state.tsx
index a5542d0da7..533062847c 100644
--- a/src/components/features/automations/dashboard/automations-filtered-empty-state.tsx
+++ b/src/components/features/automations/dashboard/automations-filtered-empty-state.tsx
@@ -16,7 +16,7 @@ export function AutomationsFilteredEmptyState({
return (
<div
data-testid="automations-filtered-empty"
- className="rounded-xl border border-dashed border-[var(--oh-border)] p-8 text-center"
+ className="rounded-xl border border-dashed border-border p-8 text-center"
>
<p className="text-sm text-muted">
{t(I18nKey.AUTOMATIONS$NO_FILTER_MATCHES)}
diff --git a/src/components/features/automations/delete-confirmation-modal.tsx b/src/components/features/automations/delete-confirmation-modal.tsx
index eb642ea2b4..e0e1fcbf87 100644
--- a/src/components/features/automations/delete-confirmation-modal.tsx
+++ b/src/components/features/automations/delete-confirmation-modal.tsx
@@ -30,7 +30,7 @@ export function DeleteConfirmationModal({
}}
role="presentation"
/>
- <div className="relative w-full max-w-sm rounded-xl border border-[var(--oh-border)] bg-[var(--oh-surface)] p-6">
+ <div className="relative w-full max-w-sm rounded-xl border border-border bg-surface p-6">
<button
type="button"
onClick={onCancel}
@@ -53,7 +53,7 @@ export function DeleteConfirmationModal({
<button
type="button"
onClick={onCancel}
- className="rounded-lg border border-[var(--oh-border)] px-4 py-2 text-sm text-white hover:bg-surface-raised"
+ className="rounded-lg border border-border px-4 py-2 text-sm text-white hover:bg-surface-raised"
>
{t(I18nKey.AUTOMATIONS$CANCEL)}
</button>
diff --git a/src/components/features/automations/detail/active-status-badge.tsx b/src/components/features/automations/detail/active-status-badge.tsx
index 1d7ebbb886..f7a1d179fc 100644
--- a/src/components/features/automations/detail/active-status-badge.tsx
+++ b/src/components/features/automations/detail/active-status-badge.tsx
@@ -17,7 +17,7 @@ export function ActiveStatusBadge({ active }: ActiveStatusBadgeProps) {
className={cn(
"inline-flex items-center rounded-full px-3 py-1 text-xs font-medium",
active
- ? "bg-[var(--oh-success)]/15 text-[var(--oh-success)]"
+ ? "bg-semantic-success/15 text-semantic-success"
: "bg-surface-raised text-muted",
)}
>
diff --git a/src/components/features/automations/detail/activity-log-section.tsx b/src/components/features/automations/detail/activity-log-section.tsx
index 66a9876708..7012d97f8f 100644
--- a/src/components/features/automations/detail/activity-log-section.tsx
+++ b/src/components/features/automations/detail/activity-log-section.tsx
@@ -88,9 +88,9 @@ export function ActivityLogSection({
return (
<div
data-testid="automation-activity-log"
- className="rounded-2xl border border-[var(--oh-border)] bg-[var(--oh-surface)]"
+ className="rounded-2xl border border-border bg-surface"
>
- <div className="flex items-center gap-2 border-b border-[var(--oh-border)] px-5 py-3">
+ <div className="flex items-center gap-2 border-b border-border px-5 py-3">
<span className="size-4 text-muted">
<ActivityIcon className="size-4" />
</span>
@@ -153,8 +153,8 @@ export function ActivityLogSection({
: undefined
}
className={cn(
- index > 0 ? "border-t border-[var(--oh-border)]" : "",
- isHighlighted && "bg-[var(--oh-focus)]/10",
+ index > 0 ? "border-t border-border" : "",
+ isHighlighted && "bg-focus/10",
)}
>
<ActivityLogItem run={run} automation={automation} />
@@ -163,7 +163,7 @@ export function ActivityLogSection({
})}
{hasMore && (
- <div className="border-t border-[var(--oh-border)] px-5 py-3">
+ <div className="border-t border-border px-5 py-3">
<button
type="button"
onClick={() => setLimit((prev) => prev + PAGE_SIZE)}
diff --git a/src/components/features/automations/detail/branch-badge.tsx b/src/components/features/automations/detail/branch-badge.tsx
index 81ae76b523..d424b58ade 100644
--- a/src/components/features/automations/detail/branch-badge.tsx
+++ b/src/components/features/automations/detail/branch-badge.tsx
@@ -4,7 +4,7 @@ interface BranchBadgeProps {
export function BranchBadge({ branch }: BranchBadgeProps) {
return (
- <span className="inline-flex items-center rounded-full border border-[var(--oh-border)] bg-surface-raised px-2.5 py-0.5 text-xs text-muted">
+ <span className="inline-flex items-center rounded-full border border-border bg-surface-raised px-2.5 py-0.5 text-xs text-muted">
{branch}
</span>
);
diff --git a/src/components/features/automations/detail/detail-header.tsx b/src/components/features/automations/detail/detail-header.tsx
index fc4267f3f1..891c0ece97 100644
--- a/src/components/features/automations/detail/detail-header.tsx
+++ b/src/components/features/automations/detail/detail-header.tsx
@@ -101,7 +101,7 @@ export function DetailHeader({
{canManage && onRunNow && (
<button
type="button"
- className="inline-flex items-center gap-1.5 rounded-md border border-[var(--oh-border)] px-3 py-1.5 text-sm font-medium text-content transition-colors hover:bg-surface-raised disabled:cursor-not-allowed disabled:opacity-60"
+ className="inline-flex items-center gap-1.5 rounded-md border border-border px-3 py-1.5 text-sm font-medium text-content transition-colors hover:bg-surface-raised disabled:cursor-not-allowed disabled:opacity-60"
disabled={isRunningNow || !automation.enabled}
onClick={onRunNow}
>
diff --git a/src/components/features/automations/detail/disabled-reason-banner.tsx b/src/components/features/automations/detail/disabled-reason-banner.tsx
index 1328df9bc1..b2b17b3918 100644
--- a/src/components/features/automations/detail/disabled-reason-banner.tsx
+++ b/src/components/features/automations/detail/disabled-reason-banner.tsx
@@ -35,7 +35,7 @@ export function DisabledReasonBanner({
return (
<div
data-testid="automation-disabled-reason-banner"
- className="flex flex-col gap-2 rounded-2xl border border-[var(--oh-border)] bg-[var(--oh-surface)] px-5 py-4"
+ className="flex flex-col gap-2 rounded-2xl border border-border bg-surface px-5 py-4"
>
<div className="flex items-center gap-2">
<PauseIcon className="size-4 shrink-0 text-muted" aria-hidden />
@@ -45,7 +45,7 @@ export function DisabledReasonBanner({
</div>
<p
data-testid="automation-disabled-reason-text"
- className="text-sm leading-5 text-[var(--oh-text-secondary)]"
+ className="text-sm leading-5 text-text-secondary"
>
{display.text}
</p>
diff --git a/src/components/features/automations/detail/edit-automation-modal.tsx b/src/components/features/automations/detail/edit-automation-modal.tsx
index 24eedf2600..f35e61af4d 100644
--- a/src/components/features/automations/detail/edit-automation-modal.tsx
+++ b/src/components/features/automations/detail/edit-automation-modal.tsx
@@ -306,7 +306,7 @@ export function EditAutomationModal({
}}
role="presentation"
/>
- <div className="relative w-full max-w-md rounded-xl border border-[var(--oh-border)] bg-[var(--oh-surface)] p-6">
+ <div className="relative w-full max-w-md rounded-xl border border-border bg-surface p-6">
<button
type="button"
onClick={onClose}
@@ -415,7 +415,7 @@ export function EditAutomationModal({
)}
{automation.trigger.type === "event" ? (
- <div className="flex flex-col gap-3 rounded-lg bg-[var(--oh-surface-raised)] p-3">
+ <div className="flex flex-col gap-3 rounded-lg bg-surface-raised p-3">
<div className="flex items-center gap-2">
<span className="text-xs font-medium text-muted">
{t(I18nKey.AUTOMATIONS$DETAIL$TRIGGER)}
@@ -499,7 +499,7 @@ export function EditAutomationModal({
disabled={form.isCustomSchedule}
className={cn(
formControlSettingsFieldClassName,
- "disabled:bg-[var(--oh-surface-raised)]",
+ "disabled:bg-surface-raised",
)}
/>
{automation.timezone && (
diff --git a/src/components/features/automations/detail/plugin-chip.tsx b/src/components/features/automations/detail/plugin-chip.tsx
index 061a7193cd..902f633f47 100644
--- a/src/components/features/automations/detail/plugin-chip.tsx
+++ b/src/components/features/automations/detail/plugin-chip.tsx
@@ -4,7 +4,7 @@ interface PluginChipProps {
export function PluginChip({ name }: PluginChipProps) {
return (
- <span className="inline-flex items-center rounded-full border border-[var(--oh-border)] bg-[var(--oh-surface-deep)] px-3.5 py-1.5 text-sm text-content">
+ <span className="inline-flex items-center rounded-full border border-border bg-surface-deep px-3.5 py-1.5 text-sm text-content">
{name}
</span>
);
diff --git a/src/components/features/automations/detail/prompt-section.tsx b/src/components/features/automations/detail/prompt-section.tsx
index e43ba0ea55..520e4d5c0d 100644
--- a/src/components/features/automations/detail/prompt-section.tsx
+++ b/src/components/features/automations/detail/prompt-section.tsx
@@ -59,7 +59,7 @@ export function PromptSection({ prompt }: PromptSectionProps) {
</p>
{isCollapsed ? (
<div
- className="pointer-events-none absolute inset-x-0 bottom-0 h-20 bg-gradient-to-t from-[var(--oh-surface)] to-transparent"
+ className="pointer-events-none absolute inset-x-0 bottom-0 h-20 bg-gradient-to-t from-surface to-transparent"
aria-hidden
data-testid="automation-prompt-fade"
/>
@@ -69,7 +69,7 @@ export function PromptSection({ prompt }: PromptSectionProps) {
{isOverflowing ? (
<button
type="button"
- className="self-start cursor-pointer text-sm font-normal text-[var(--oh-muted)] hover:text-white"
+ className="self-start cursor-pointer text-sm font-normal text-muted hover:text-white"
onClick={() => setIsExpanded((expanded) => !expanded)}
data-testid="automation-prompt-toggle"
>
diff --git a/src/components/features/automations/detail/run-logs-modal.tsx b/src/components/features/automations/detail/run-logs-modal.tsx
index 6cb3ca5cca..c060070a8f 100644
--- a/src/components/features/automations/detail/run-logs-modal.tsx
+++ b/src/components/features/automations/detail/run-logs-modal.tsx
@@ -108,7 +108,7 @@ function RunInspectionSummary({ run }: { run: AutomationRun | undefined }) {
const hasSystemDetails = systemError || statusDetail;
return (
- <dl className="mt-4 grid gap-3 rounded-lg border border-[var(--oh-border)] bg-black/20 p-3 text-xs">
+ <dl className="mt-4 grid gap-3 rounded-lg border border-border bg-black/20 p-3 text-xs">
<div className="grid gap-1 sm:grid-cols-[5rem_minmax(0,1fr)] sm:items-center">
<dt className="text-muted">
{t(I18nKey.AUTOMATIONS$DETAIL$RUN_LABEL)}
@@ -143,7 +143,7 @@ function RunInspectionSummary({ run }: { run: AutomationRun | undefined }) {
</p>
<pre
data-testid="automation-task-metadata"
- className="max-h-48 overflow-auto whitespace-pre-wrap break-words rounded-md border border-[var(--oh-border)] bg-black/30 p-2 font-mono text-[11px] leading-4 text-content"
+ className="max-h-48 overflow-auto whitespace-pre-wrap break-words rounded-md border border-border bg-black/30 p-2 font-mono text-[11px] leading-4 text-content"
>
{taskMetadataText}
</pre>
@@ -259,7 +259,7 @@ export function RunLogsModal({
}}
role="presentation"
/>
- <div className="relative flex max-h-[80vh] w-full max-w-3xl flex-col rounded-xl border border-[var(--oh-border)] bg-[var(--oh-surface)] p-6">
+ <div className="relative flex max-h-[80vh] w-full max-w-3xl flex-col rounded-xl border border-border bg-surface p-6">
<button
type="button"
onClick={onClose}
@@ -278,7 +278,7 @@ export function RunLogsModal({
<div
role="tablist"
aria-label={t(I18nKey.AUTOMATIONS$DETAIL$LOGS_TITLE)}
- className="mt-4 flex gap-1 border-b border-[var(--oh-border)]"
+ className="mt-4 flex gap-1 border-b border-border"
>
<button
type="button"
@@ -314,7 +314,7 @@ export function RunLogsModal({
role="tabpanel"
id={`run-logs-panel-${activeTab}`}
aria-labelledby={`run-logs-tab-${activeTab}`}
- className="mt-3 min-h-[12rem] flex-1 overflow-auto rounded-lg border border-[var(--oh-border)] bg-black/40 p-4 font-mono text-xs"
+ className="mt-3 min-h-[12rem] flex-1 overflow-auto rounded-lg border border-border bg-black/40 p-4 font-mono text-xs"
>
{noBashCommand && (
<p className="text-muted italic">
diff --git a/src/components/features/automations/detail/run-phase.tsx b/src/components/features/automations/detail/run-phase.tsx
index dd02ffc6be..12dae6593f 100644
--- a/src/components/features/automations/detail/run-phase.tsx
+++ b/src/components/features/automations/detail/run-phase.tsx
@@ -185,7 +185,7 @@ export function RunPhase({
disableAnimation={import.meta.env.MODE === "test"}
classNames={{
content:
- "max-w-xs whitespace-pre-wrap break-words rounded-xl border border-[var(--oh-border)] bg-base-secondary px-3 py-2 text-left text-xs text-white shadow-xl",
+ "max-w-xs whitespace-pre-wrap break-words rounded-xl border border-border bg-base-secondary px-3 py-2 text-left text-xs text-white shadow-xl",
}}
>
<span className="flex min-w-0 cursor-default items-center gap-1">
diff --git a/src/components/features/automations/detail/run-status-badge.tsx b/src/components/features/automations/detail/run-status-badge.tsx
index 688f25e2e8..43a4ccfe68 100644
--- a/src/components/features/automations/detail/run-status-badge.tsx
+++ b/src/components/features/automations/detail/run-status-badge.tsx
@@ -26,32 +26,32 @@ interface RunStatusBadgeProps {
const statusConfig: Record<string, { style: string; iconTone: string }> = {
[AutomationRunStatus.COMPLETED]: {
- style: "bg-[var(--oh-success)]/10 text-[var(--oh-success)]",
- iconTone: "text-[var(--oh-success)]",
+ style: "bg-semantic-success/10 text-semantic-success",
+ iconTone: "text-semantic-success",
},
success: {
- style: "bg-[var(--oh-success)]/10 text-[var(--oh-success)]",
- iconTone: "text-[var(--oh-success)]",
+ style: "bg-semantic-success/10 text-semantic-success",
+ iconTone: "text-semantic-success",
},
[AutomationRunStatus.FAILED]: {
- style: "bg-[var(--oh-danger)]/10 text-danger",
+ style: "bg-semantic-danger/10 text-danger",
iconTone: "text-danger",
},
failed: {
- style: "bg-[var(--oh-danger)]/10 text-danger",
+ style: "bg-semantic-danger/10 text-danger",
iconTone: "text-danger",
},
blocked: {
- style: "bg-[var(--oh-warning)]/10 text-[var(--oh-warning)]",
- iconTone: "text-[var(--oh-warning)]",
+ style: "bg-warning/10 text-warning",
+ iconTone: "text-warning",
},
partial_success: {
- style: "bg-[var(--oh-warning)]/10 text-[var(--oh-warning)]",
- iconTone: "text-[var(--oh-warning)]",
+ style: "bg-warning/10 text-warning",
+ iconTone: "text-warning",
},
unknown: {
- style: "bg-[var(--oh-warning)]/10 text-[var(--oh-warning)]",
- iconTone: "text-[var(--oh-warning)]",
+ style: "bg-warning/10 text-warning",
+ iconTone: "text-warning",
},
[AutomationRunStatus.PENDING]: {
style: "bg-surface-raised text-muted",
diff --git a/src/components/features/automations/detail/section-card.tsx b/src/components/features/automations/detail/section-card.tsx
index 258baa3c18..6d1c32aae5 100644
--- a/src/components/features/automations/detail/section-card.tsx
+++ b/src/components/features/automations/detail/section-card.tsx
@@ -6,8 +6,8 @@ interface SectionCardProps {
export function SectionCard({ icon, title, children }: SectionCardProps) {
return (
- <div className="rounded-2xl border border-[var(--oh-border)] bg-[var(--oh-surface)]">
- <div className="flex items-center gap-2 border-b border-[var(--oh-border)] px-5 py-3">
+ <div className="rounded-2xl border border-border bg-surface">
+ <div className="flex items-center gap-2 border-b border-border px-5 py-3">
<span className="size-4 text-muted">{icon}</span>
<h3 className="text-sm font-medium text-content">{title}</h3>
</div>
diff --git a/src/components/features/automations/error-state.tsx b/src/components/features/automations/error-state.tsx
index a91bc8e131..8ff97b22b9 100644
--- a/src/components/features/automations/error-state.tsx
+++ b/src/components/features/automations/error-state.tsx
@@ -18,7 +18,7 @@ export function ErrorState({ onRetry }: ErrorStateProps) {
<button
type="button"
onClick={onRetry}
- className="mt-4 rounded-lg border border-[var(--oh-border)] px-4 py-2 text-sm text-white hover:bg-surface-raised"
+ className="mt-4 rounded-lg border border-border px-4 py-2 text-sm text-white hover:bg-surface-raised"
>
{t(I18nKey.AUTOMATIONS$ERROR_RETRY)}
</button>
diff --git a/src/components/features/automations/git-sync/git-sync-overview-section.tsx b/src/components/features/automations/git-sync/git-sync-overview-section.tsx
index d2d25475af..deb9cbeff4 100644
--- a/src/components/features/automations/git-sync/git-sync-overview-section.tsx
+++ b/src/components/features/automations/git-sync/git-sync-overview-section.tsx
@@ -191,9 +191,7 @@ export function GitSyncOverviewSection({
icon={<ClockIcon className="size-3.5" />}
label={t(I18nKey.AUTOMATIONS$GIT_SYNC$PENDING_CHANGES)}
>
- <span
- className={cn(status.dirty_count > 0 && "text-[var(--oh-warning)]")}
- >
+ <span className={cn(status.dirty_count > 0 && "text-warning")}>
{status.dirty_count}
</span>
</ConfigField>
diff --git a/src/components/features/automations/git-sync/git-sync-status-pill.tsx b/src/components/features/automations/git-sync/git-sync-status-pill.tsx
index f58dcfbcb1..3f5cc3a14e 100644
--- a/src/components/features/automations/git-sync/git-sync-status-pill.tsx
+++ b/src/components/features/automations/git-sync/git-sync-status-pill.tsx
@@ -16,10 +16,8 @@ export function GitSyncStatusPill({
data-testid={testId}
className={cn(
"inline-flex items-center rounded-full px-3 py-1 text-xs font-medium",
- tone === "success" &&
- "bg-[var(--oh-success)]/15 text-[var(--oh-success)]",
- tone === "warning" &&
- "bg-[var(--oh-warning)]/15 text-[var(--oh-warning)]",
+ tone === "success" && "bg-semantic-success/15 text-semantic-success",
+ tone === "warning" && "bg-warning/15 text-warning",
tone === "neutral" && "bg-surface-raised text-muted",
)}
>
diff --git a/src/components/features/automations/import-automation-modal.tsx b/src/components/features/automations/import-automation-modal.tsx
index 12357cc327..04278b19cd 100644
--- a/src/components/features/automations/import-automation-modal.tsx
+++ b/src/components/features/automations/import-automation-modal.tsx
@@ -106,11 +106,11 @@ function ImportAutomationPicker({ onFile }: { onFile: (file: File) => void }) {
className={cn(
"flex cursor-pointer flex-col items-center justify-center gap-3 rounded-xl border border-dashed px-6 py-10 text-center",
isDragging
- ? "border-[var(--oh-focus)] bg-[var(--oh-interactive-hover)]"
- : "border-[var(--oh-border)] bg-[var(--oh-surface)]",
+ ? "border-focus bg-interactive-hover"
+ : "border-border bg-surface",
)}
>
- <FileUp className="size-8 text-[var(--oh-muted)]" aria-hidden />
+ <FileUp className="size-8 text-muted" aria-hidden />
<p className="text-sm font-medium text-content">
{t(I18nKey.AUTOMATIONS$IMPORT_DROPZONE)}
</p>
@@ -168,7 +168,7 @@ export function ImportAutomationModal({
<div
data-testid="import-automation-modal"
data-view={spec ? "preview" : "picker"}
- className="relative flex max-h-[85vh] w-[min(36rem,calc(100vw-2rem))] flex-col rounded-xl border border-[var(--oh-border)] bg-base-secondary"
+ className="relative flex max-h-[85vh] w-[min(36rem,calc(100vw-2rem))] flex-col rounded-xl border border-border bg-base-secondary"
>
<ModalCloseButton
onClose={onClose}
@@ -188,7 +188,7 @@ export function ImportAutomationModal({
{spec ? (
<>
- <dl className="mx-6 flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto rounded-xl border border-[var(--oh-border)] bg-[var(--oh-surface)] px-4 py-4">
+ <dl className="mx-6 flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto rounded-xl border border-border bg-surface px-4 py-4">
<PreviewField
label={t(I18nKey.AUTOMATIONS$NAME)}
value={spec.name}
diff --git a/src/components/features/automations/recommended-automations-rail.tsx b/src/components/features/automations/recommended-automations-rail.tsx
index 2b35b11a34..092bd15f89 100644
--- a/src/components/features/automations/recommended-automations-rail.tsx
+++ b/src/components/features/automations/recommended-automations-rail.tsx
@@ -92,11 +92,7 @@ function RailIntegrationIcons({
key={entry.id}
entry={entry}
size="base"
- className={
- isOverlap
- ? "ring-2 ring-[var(--oh-color-base-secondary)]"
- : undefined
- }
+ className={isOverlap ? "ring-2 ring-base-secondary" : undefined}
/>
))
)}
@@ -154,7 +150,7 @@ export function RecommendedAutomationsRail({
aria-label={t(I18nKey.RECOMMENDED_AUTOMATIONS$SECTION_LABEL)}
className={cn("w-full", AUTOMATION_STACK_SECTION_BOTTOM_CLASS, className)}
>
- <h2 className="mb-2 text-sm font-medium text-[var(--oh-foreground)]">
+ <h2 className="mb-2 text-sm font-medium text-foreground">
{t(I18nKey.RECOMMENDED_AUTOMATIONS$SECTION_LABEL)}
</h2>
@@ -177,7 +173,7 @@ export function RecommendedAutomationsRail({
data-testid={`recommended-automation-rail-card-${automation.id}`}
onClick={() => onSelect(automation)}
className={cn(
- "flex w-[220px] shrink-0 flex-col gap-3 p-3 text-left",
+ "flex w-55 shrink-0 flex-col gap-3 p-3 text-left",
extensionModuleCardSurfaceClassName,
extensionModuleCardInteractiveClassName,
)}
diff --git a/src/components/features/automations/responder-deployment-modal.tsx b/src/components/features/automations/responder-deployment-modal.tsx
index 515d97b3c3..4d1b0df528 100644
--- a/src/components/features/automations/responder-deployment-modal.tsx
+++ b/src/components/features/automations/responder-deployment-modal.tsx
@@ -40,7 +40,7 @@ export function ResponderDeploymentModal({
>
<div
data-testid="responder-deployment-modal"
- className="relative flex w-full max-w-3xl flex-col rounded-xl border border-[var(--oh-border)] bg-base-secondary"
+ className="relative flex w-full max-w-3xl flex-col rounded-xl border border-border bg-base-secondary"
>
<ModalCloseButton
onClose={onClose}
@@ -63,7 +63,7 @@ export function ResponderDeploymentModal({
<div
key={option.target}
data-testid={option.testId}
- className="flex flex-1 flex-col gap-3 rounded-xl border border-[var(--oh-border)] bg-surface-raised p-4"
+ className="flex flex-1 flex-col gap-3 rounded-xl border border-border bg-surface-raised p-4"
>
<div className="flex flex-col gap-1">
<h3 className="text-sm font-semibold text-white">
diff --git a/src/components/features/automations/search-input.tsx b/src/components/features/automations/search-input.tsx
index c93728e538..2f46e696ea 100644
--- a/src/components/features/automations/search-input.tsx
+++ b/src/components/features/automations/search-input.tsx
@@ -16,7 +16,7 @@ export function SearchInput({ value, onChange, className }: SearchInputProps) {
<div
className={cn(
"relative flex min-w-0 flex-1 items-center",
- "h-9 rounded-lg border border-[var(--oh-border)] bg-base-secondary",
+ "h-9 rounded-lg border border-border bg-base-secondary",
"focus-within:border-white/40 focus-within:ring-1 focus-within:ring-white/20",
"transition-colors",
className,
diff --git a/src/components/features/automations/turn-off-confirmation-modal.tsx b/src/components/features/automations/turn-off-confirmation-modal.tsx
index 0e79703f8a..a44a7006e4 100644
--- a/src/components/features/automations/turn-off-confirmation-modal.tsx
+++ b/src/components/features/automations/turn-off-confirmation-modal.tsx
@@ -34,7 +34,7 @@ export function TurnOffConfirmationModal({
role="dialog"
aria-modal="true"
aria-labelledby="turn-off-automation-title"
- className="relative w-full max-w-sm rounded-xl border border-[var(--oh-border)] bg-[var(--oh-surface)] p-6"
+ className="relative w-full max-w-sm rounded-xl border border-border bg-surface p-6"
>
<button
type="button"
@@ -61,7 +61,7 @@ export function TurnOffConfirmationModal({
<button
type="button"
onClick={onCancel}
- className="rounded-lg border border-[var(--oh-border)] px-4 py-2 text-sm text-white hover:bg-surface-raised"
+ className="rounded-lg border border-border px-4 py-2 text-sm text-white hover:bg-surface-raised"
>
{t(I18nKey.AUTOMATIONS$CANCEL)}
</button>
diff --git a/src/components/features/backends/api-key-entry-screen.tsx b/src/components/features/backends/api-key-entry-screen.tsx
index 324dc87317..c6c0cc7c13 100644
--- a/src/components/features/backends/api-key-entry-screen.tsx
+++ b/src/components/features/backends/api-key-entry-screen.tsx
@@ -87,7 +87,7 @@ export default function ApiKeyEntryScreen() {
>
<div
className={cn(
- "relative rounded-xl border border-[var(--oh-border)] bg-base-secondary",
+ "relative rounded-xl border border-border bg-base-secondary",
modalWidthClassName("md"),
MODAL_MAX_WIDTH_VIEWPORT,
)}
diff --git a/src/components/features/backends/backend-form-modal.tsx b/src/components/features/backends/backend-form-modal.tsx
index a302aa5629..e7f979d265 100644
--- a/src/components/features/backends/backend-form-modal.tsx
+++ b/src/components/features/backends/backend-form-modal.tsx
@@ -242,10 +242,10 @@ function BackendStatusBadge({
{statusLabel}
</span>
<span className="text-tertiary-alt">Β·</span>
- <span className="text-[var(--oh-text-tertiary)]">{kindLabel}</span>
+ <span className="text-text-tertiary">{kindLabel}</span>
{version ? (
<span
- className="text-xs text-[var(--oh-muted)]"
+ className="text-xs text-muted"
data-testid={`${testIdRoot}-version`}
>
{t(I18nKey.BACKEND$VERSION_LABEL, { version })}
@@ -261,7 +261,7 @@ function BackendStatusBadge({
<span className="font-semibold text-red-300">
{t(I18nKey.BACKEND$HEALTH_FAILED_TITLE)}
</span>
- <span className="text-xs text-[var(--oh-text-tertiary)]">
+ <span className="text-xs text-text-tertiary">
{t(I18nKey.BACKEND$HEALTH_FAILED_DETAIL, {
count: consecutiveFailures,
})}
@@ -1017,7 +1017,7 @@ function CloudLoginColumn({
className="w-full items-center"
idleDescription={
<p
- className="text-center text-sm leading-relaxed text-[var(--oh-muted)]"
+ className="text-center text-sm leading-relaxed text-muted"
data-testid={`${testIdRoot}-cloud-description`}
>
{t(I18nKey.BACKEND$CLOUD_DESCRIPTION)}
@@ -1037,7 +1037,7 @@ function CloudLoginColumn({
aria-expanded={advancedOpen}
aria-controls={advancedPanelId}
data-testid={`${testIdRoot}-advanced-toggle`}
- className="flex w-full cursor-pointer items-center justify-center gap-1 text-center text-xs text-[var(--oh-muted)] transition-colors hover:text-content-2"
+ className="flex w-full cursor-pointer items-center justify-center gap-1 text-center text-xs text-muted transition-colors hover:text-content-2"
>
<span>{t(I18nKey.BACKEND$ADVANCED)}</span>
<ChevronDownSmallIcon
@@ -1079,7 +1079,7 @@ function CloudLoginColumn({
placeholder={DEFAULT_OPENHANDS_CLOUD_HOST}
className="w-full"
/>
- <p className="mt-1 text-xs text-[var(--oh-muted)]">
+ <p className="mt-1 text-xs text-muted">
{t(I18nKey.BACKEND$LOGIN_CLOUD_HINT)}
</p>
</div>
@@ -1135,11 +1135,11 @@ function BackendOptionTab({
onClick={() => onSelect(value)}
className={cn(
"relative flex min-h-16 w-full cursor-pointer items-center gap-3 px-3 py-3 text-left transition-colors",
- "first:border-r first:border-r-[var(--oh-border)]",
+ "first:border-r first:border-r-border",
"focus-visible:z-10 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-blue-300",
isSelected
- ? "bg-[var(--oh-surface-raised)] text-white after:absolute after:inset-x-0 after:bottom-0 after:h-0.5 after:bg-primary"
- : "text-[var(--oh-muted)] hover:bg-[var(--oh-surface-raised)] hover:text-white",
+ ? "bg-surface-raised text-white after:absolute after:inset-x-0 after:bottom-0 after:h-0.5 after:bg-primary"
+ : "text-muted hover:bg-surface-raised hover:text-white",
)}
>
<span
@@ -1150,7 +1150,7 @@ function BackendOptionTab({
</span>
<span className="min-w-0 flex-1">
<span className="block truncate text-sm font-medium">{title}</span>
- <span className="mt-0.5 block text-xs leading-tight text-[var(--oh-muted)]">
+ <span className="mt-0.5 block text-xs leading-tight text-muted">
{description}
</span>
</span>
@@ -1241,7 +1241,7 @@ function AgentServerGuidance({ location }: { location: AgentServerLocation }) {
return (
<aside
data-testid={`${testIdRoot}-guidance`}
- className="rounded-lg bg-[var(--oh-surface-raised)] text-sm text-[var(--oh-muted)]"
+ className="rounded-lg bg-surface-raised text-sm text-muted"
>
{/* Heading wraps the button so the accordion keeps a real heading in the
document outline while the whole row stays clickable. */}
@@ -1257,20 +1257,17 @@ function AgentServerGuidance({ location }: { location: AgentServerLocation }) {
// Padding lives on the button rather than the card so the hover
// fill spans the full row.
"flex w-full cursor-pointer items-center justify-between gap-2 rounded-lg px-3 py-2 text-left font-medium",
- "transition-colors hover:bg-[var(--oh-interactive-hover)]",
+ "transition-colors hover:bg-interactive-hover",
"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-300",
)}
>
<span className="flex min-w-0 items-center gap-2">
- <Info
- className="size-4 shrink-0 text-[var(--oh-muted)]"
- aria-hidden
- />
+ <Info className="size-4 shrink-0 text-muted" aria-hidden />
<span className="truncate">{title}</span>
</span>
<ChevronDown
className={cn(
- "size-5 shrink-0 text-[var(--oh-muted)] transition-transform duration-200 ease-out",
+ "size-5 shrink-0 text-muted transition-transform duration-200 ease-out",
isExpanded && "rotate-180",
)}
aria-hidden
@@ -1359,7 +1356,7 @@ function AddBackendChooser({
<div
role="tablist"
aria-label={t(I18nKey.BACKEND$CHOOSER_TITLE)}
- className="grid grid-cols-2 overflow-hidden rounded-lg border border-[var(--oh-border)]"
+ className="grid grid-cols-2 overflow-hidden rounded-lg border border-border"
>
<BackendOptionTab
value="cloud"
@@ -1404,7 +1401,7 @@ function AddBackendChooser({
<div
data-testid="add-backend-cloud-panel"
className={cn(
- "relative isolate flex min-h-[13.5rem] w-full items-center justify-center rounded-xl border border-[var(--oh-border)] px-5 py-6",
+ "relative isolate flex min-h-[13.5rem] w-full items-center justify-center rounded-xl border border-border px-5 py-6",
// A soft greyscale halo sits behind the CTA; -z-10 keeps it under the
// content rather than washing over it.
"before:pointer-events-none before:absolute before:inset-0 before:-z-10 before:rounded-xl",
@@ -1426,10 +1423,7 @@ function AddBackendChooser({
{/* Rules on either side center the toggle and read as a
divider between the chooser and the connection form. */}
<div className="flex items-center gap-3">
- <span
- className="h-px flex-1 bg-[var(--oh-border)]"
- aria-hidden
- />
+ <span className="h-px flex-1 bg-border" aria-hidden />
<SegmentedToggle<AgentServerLocation>
value={agentServerLocation}
options={[
@@ -1448,10 +1442,7 @@ function AddBackendChooser({
ariaLabel={t(I18nKey.BACKEND$AGENT_SERVER_LOCATION)}
testId="add-backend-location"
/>
- <span
- className="h-px flex-1 bg-[var(--oh-border)]"
- aria-hidden
- />
+ <span className="h-px flex-1 bg-border" aria-hidden />
</div>
<div className="mt-4 flex flex-col gap-4">
@@ -1555,7 +1546,7 @@ export function BackendFormModal({
hideCloseButton ? "onboarding-modal" : "add-backend-modal"
}
className={cn(
- "relative max-h-[92vh] w-[720px] overflow-y-auto rounded-xl border border-[var(--oh-border)] bg-base-secondary p-6",
+ "relative max-h-[92vh] w-180 overflow-y-auto rounded-xl border border-border bg-base-secondary p-6",
MODAL_MAX_WIDTH_VIEWPORT,
)}
>
@@ -1568,7 +1559,7 @@ export function BackendFormModal({
{t(I18nKey.BACKEND$CHOOSER_TITLE)}
</h2>
<p
- className="mt-2 text-sm leading-6 text-[var(--oh-muted)]"
+ className="mt-2 text-sm leading-6 text-muted"
data-testid="add-backend-description"
>
{t(I18nKey.BACKEND$CHOOSER_DESCRIPTION)}{" "}
@@ -1609,7 +1600,7 @@ export function BackendFormModal({
<div
data-testid={`${testIdRoot}-modal`}
className={cn(
- "relative bg-base-secondary p-6 rounded-xl flex flex-col gap-4 border border-[var(--oh-border)]",
+ "relative bg-base-secondary p-6 rounded-xl flex flex-col gap-4 border border-border",
modalWidthClassName("md"),
)}
>
diff --git a/src/components/features/backends/backend-row.tsx b/src/components/features/backends/backend-row.tsx
index 53b57d5805..d8cc356403 100644
--- a/src/components/features/backends/backend-row.tsx
+++ b/src/components/features/backends/backend-row.tsx
@@ -57,7 +57,7 @@ export function BackendRow({
? "text-green-300"
: health?.isConnected === false
? "text-red-300"
- : "text-[var(--oh-muted)]";
+ : "text-muted";
const dotStatus = isInvalidApiKey ? false : (health?.isConnected ?? null);
const canSelect = health?.isConnected === true && !isInvalidApiKey;
const lockedCloudHost = getLockedCloudHost();
@@ -87,14 +87,12 @@ export function BackendRow({
{orgLabel ? (
<span
data-testid={`manage-backends-org-${backend.name}`}
- className="truncate text-xs text-[var(--oh-text-secondary)]"
+ className="truncate text-xs text-text-secondary"
>
{orgLabel}
</span>
) : null}
- <span className="truncate text-xs text-[var(--oh-muted)]">
- {backend.host}
- </span>
+ <span className="truncate text-xs text-muted">{backend.host}</span>
<span
data-testid={`manage-backends-status-${backend.name}`}
className={cn("truncate text-xs", statusClassName)}
@@ -111,7 +109,7 @@ export function BackendRow({
</span>
) : null}
</div>
- <span className="px-2 py-1 rounded-full text-[11px] uppercase tracking-wide text-[var(--oh-text-tertiary)] bg-[var(--oh-surface)] border border-[var(--oh-border)]">
+ <span className="px-2 py-1 rounded-full text-[11px] uppercase tracking-wide text-text-tertiary bg-surface border border-border">
{backend.kind === "cloud"
? t(I18nKey.BACKEND$KIND_CLOUD)
: t(I18nKey.BACKEND$KIND_LOCAL)}
diff --git a/src/components/features/backends/backend-selector.tsx b/src/components/features/backends/backend-selector.tsx
index c83be59bad..8db4bcc1c3 100644
--- a/src/components/features/backends/backend-selector.tsx
+++ b/src/components/features/backends/backend-selector.tsx
@@ -414,7 +414,7 @@ export function BackendSelector({
}
loading={someCloudLoading}
options={options}
- className="h-10 px-2 py-0 bg-transparent border-transparent hover:bg-[var(--oh-surface-raised)] focus-within:bg-[var(--oh-surface-raised)] focus-within:border-transparent focus-within:ring-0"
+ className="h-10 px-2 py-0 bg-transparent border-transparent hover:bg-surface-raised focus-within:bg-surface-raised focus-within:border-transparent focus-within:ring-0"
/>
</div>
{!hideTrigger ? (
@@ -431,7 +431,7 @@ export function BackendSelector({
data-testid="backend-selector-settings-link"
aria-label={settingsLabel}
className={cn(
- "inline-flex items-center justify-center shrink-0 w-9 h-9 rounded-md text-[var(--oh-muted)] hover:text-white hover:bg-[var(--oh-surface-raised)] cursor-pointer",
+ "inline-flex items-center justify-center shrink-0 w-9 h-9 rounded-md text-muted hover:text-white hover:bg-surface-raised cursor-pointer",
formControlTransitionClassName,
)}
>
@@ -450,7 +450,7 @@ export function BackendSelector({
formControlTransitionClassName,
)
: cn(
- "inline-flex items-center justify-center shrink-0 w-9 h-9 rounded-md text-[var(--oh-muted)] hover:text-white hover:bg-[var(--oh-surface-raised)] cursor-pointer",
+ "inline-flex items-center justify-center shrink-0 w-9 h-9 rounded-md text-muted hover:text-white hover:bg-surface-raised cursor-pointer",
formControlTransitionClassName,
)
}
diff --git a/src/components/features/backends/backend-status-dot.tsx b/src/components/features/backends/backend-status-dot.tsx
index abaa955cc1..5d1b376176 100644
--- a/src/components/features/backends/backend-status-dot.tsx
+++ b/src/components/features/backends/backend-status-dot.tsx
@@ -21,11 +21,11 @@ export function BackendStatusDot({
let label: string;
let status: string;
if (isConnected === "unavailable") {
- color = "bg-[var(--oh-text-tertiary)]";
+ color = "bg-text-tertiary";
label = "No Backend Available";
status = "unavailable";
} else if (isConnected === true) {
- color = "bg-[var(--oh-status-success)]";
+ color = "bg-status-success";
label = "Connected";
status = "connected";
} else if (isConnected === false) {
@@ -33,7 +33,7 @@ export function BackendStatusDot({
label = "Disconnected";
status = "disconnected";
} else {
- color = "bg-[var(--oh-interactive-selected)]";
+ color = "bg-interactive-selected";
label = "Checking connection";
status = "checking";
}
diff --git a/src/components/features/backends/backend-version.tsx b/src/components/features/backends/backend-version.tsx
index 308ff39435..e041521951 100644
--- a/src/components/features/backends/backend-version.tsx
+++ b/src/components/features/backends/backend-version.tsx
@@ -30,7 +30,7 @@ export function BackendVersion({ backend }: { backend: Backend }) {
return (
<span
- className="inline-flex shrink-0 items-center rounded-full border border-[var(--oh-border)] bg-[var(--oh-surface)] px-1.5 py-0.5 text-[10px] font-medium leading-none text-[var(--oh-text-dim)]"
+ className="inline-flex shrink-0 items-center rounded-full border border-border bg-surface px-1.5 py-0.5 text-[10px] font-medium leading-none text-text-dim"
data-testid={`manage-backends-version-${backend.name}`}
>
{t(I18nKey.BACKEND$VERSION_LABEL, { version })}
diff --git a/src/components/features/backends/device-flow-auth.tsx b/src/components/features/backends/device-flow-auth.tsx
index eb79588969..a9b06f93c4 100644
--- a/src/components/features/backends/device-flow-auth.tsx
+++ b/src/components/features/backends/device-flow-auth.tsx
@@ -232,7 +232,7 @@ export function DeviceFlowAuth({
<ModalBody
testID={`${testIdRoot}-auth-modal`}
width="sm"
- className="items-stretch border border-[var(--oh-border)]"
+ className="items-stretch border border-border"
>
{statusContent}
</ModalBody>
@@ -272,7 +272,7 @@ function DeviceFlowStatusContent({
aria-live="polite"
>
<LoadingSpinner />
- <span className="text-sm text-[var(--oh-text-tertiary)]">
+ <span className="text-sm text-text-tertiary">
{t(I18nKey.BACKEND$AUTH_STARTING)}
</span>
</div>
@@ -299,7 +299,7 @@ function DeviceFlowStatusContent({
</span>
</div>
<div className="flex flex-col gap-1">
- <p className="text-center text-sm leading-5 text-[var(--oh-text-tertiary)]">
+ <p className="text-center text-sm leading-5 text-text-tertiary">
{validVerificationUrl
? `${t(I18nKey.BACKEND$AUTH_BROWSER_OPENED)} ${t(I18nKey.BACKEND$AUTH_OPEN_MANUALLY)}`
: t(I18nKey.BACKEND$AUTH_BROWSER_OPENED)}
diff --git a/src/components/features/backends/environment-switch-overlay.tsx b/src/components/features/backends/environment-switch-overlay.tsx
index b4b50f489a..8b36de5f64 100644
--- a/src/components/features/backends/environment-switch-overlay.tsx
+++ b/src/components/features/backends/environment-switch-overlay.tsx
@@ -157,8 +157,8 @@ export function EnvironmentSwitchOverlay() {
aria-live="polite"
aria-atomic="true"
>
- <div className="pointer-events-none flex min-w-[280px] max-w-[420px] flex-col items-center gap-2 rounded-xl border border-[var(--oh-border)] bg-[var(--oh-surface)] px-5 py-4 text-[var(--oh-foreground)] shadow-2xl">
- <EnvironmentSwitchIcon className="mb-2 h-6 w-20 shrink-0 text-[var(--oh-foreground)]" />
+ <div className="pointer-events-none flex min-w-70 max-w-105 flex-col items-center gap-2 rounded-xl border border-border bg-surface px-5 py-4 text-foreground shadow-2xl">
+ <EnvironmentSwitchIcon className="mb-2 h-6 w-20 shrink-0 text-foreground" />
<p className="text-center text-sm font-medium">
{t(I18nKey.BACKEND$SWITCHING_TO, { environment: target })}
</p>
diff --git a/src/components/features/backends/manage-backends-modal.tsx b/src/components/features/backends/manage-backends-modal.tsx
index 2a70ed006d..56e6404cbd 100644
--- a/src/components/features/backends/manage-backends-modal.tsx
+++ b/src/components/features/backends/manage-backends-modal.tsx
@@ -137,7 +137,7 @@ export function ManageBackendsModal({
<div
data-testid="manage-backends-modal"
className={cn(
- "relative flex flex-col bg-[var(--oh-surface)] border border-[var(--oh-border)] rounded-xl",
+ "relative flex flex-col bg-surface border border-border rounded-xl",
modalWidthClassName("lg"),
MODAL_MAX_WIDTH_VIEWPORT,
"max-h-[70vh]",
@@ -155,15 +155,15 @@ export function ManageBackendsModal({
<div className="flex min-h-0 flex-1 flex-col px-5">
<div
- className="flex-1 overflow-auto rounded-md border border-[var(--oh-border)] bg-surface-raised custom-scrollbar-always"
+ className="flex-1 overflow-auto rounded-md border border-border bg-surface-raised custom-scrollbar-always"
data-testid="manage-backends-list"
>
{backends.length === 0 ? (
- <p className="px-3 py-6 text-center text-sm text-[var(--oh-text-secondary)]">
+ <p className="px-3 py-6 text-center text-sm text-text-secondary">
{t(I18nKey.BACKEND$MANAGE_EMPTY)}
</p>
) : (
- <ul className="divide-y divide-[var(--oh-border)]">
+ <ul className="divide-y divide-border">
{backends.map((backend) => (
<BackendRow
key={backend.id}
diff --git a/src/components/features/browser/browser-chrome-bar.tsx b/src/components/features/browser/browser-chrome-bar.tsx
index 63a2d7ee1b..b5621e9969 100644
--- a/src/components/features/browser/browser-chrome-bar.tsx
+++ b/src/components/features/browser/browser-chrome-bar.tsx
@@ -13,21 +13,21 @@ export function BrowserChromeBar({ url, hasPage }: BrowserChromeBarProps) {
const disabledButtonClassName = cn(
"shrink-0 inline-flex items-center justify-center w-6 h-6 rounded-md",
- "text-[var(--oh-text-tertiary)] opacity-40 cursor-not-allowed",
+ "text-text-tertiary opacity-40 cursor-not-allowed",
);
const iconClassName = "w-3.5 h-3.5";
return (
<div
- className="flex w-full min-h-[34px] shrink-0 items-center gap-1 border-b border-[var(--oh-border)] px-2 py-1.5"
+ className="flex w-full min-h-8.5 shrink-0 items-center gap-1 border-b border-border px-2 py-1.5"
data-testid="browser-chrome-bar"
>
<div
className={cn(
- "flex min-h-7 min-w-0 flex-1 items-center rounded-md border border-[var(--oh-border)]",
- "bg-[var(--oh-surface-raised)] px-2 text-xs leading-5",
- url ? "text-[var(--oh-text-tertiary)]" : "text-[var(--oh-text-dim)]",
+ "flex min-h-7 min-w-0 flex-1 items-center rounded-md border border-border",
+ "bg-surface-raised px-2 text-xs leading-5",
+ url ? "text-text-tertiary" : "text-text-dim",
)}
data-testid="browser-chrome-url"
title={url || undefined}
@@ -47,7 +47,7 @@ export function BrowserChromeBar({ url, hasPage }: BrowserChromeBarProps) {
data-testid="browser-chrome-open-external"
className={cn(
"shrink-0 inline-flex items-center justify-center w-6 h-6 rounded-md",
- "text-[var(--oh-text-tertiary)] hover:bg-tertiary cursor-pointer",
+ "text-text-tertiary hover:bg-tertiary cursor-pointer",
)}
>
<ExternalLink className={iconClassName} aria-hidden strokeWidth={2} />
diff --git a/src/components/features/browser/browser.tsx b/src/components/features/browser/browser.tsx
index 47a21fdc57..591705241c 100644
--- a/src/components/features/browser/browser.tsx
+++ b/src/components/features/browser/browser.tsx
@@ -12,9 +12,9 @@ export function BrowserPanel() {
: `data:image/png;base64,${screenshotSrc ?? ""}`;
return (
- <div className="flex h-full min-h-0 w-full flex-col text-[var(--oh-muted)]">
+ <div className="flex h-full min-h-0 w-full flex-col text-muted">
<BrowserChromeBar url={url} hasPage={hasPage} />
- <div className="flex min-h-0 flex-1 flex-col overflow-y-auto scrollbar-hide bg-[var(--oh-surface)]">
+ <div className="flex min-h-0 flex-1 flex-col overflow-y-auto scrollbar-hide bg-surface">
{screenshotSrc ? (
<BrowserSnapshot src={imgSrc} />
) : (
diff --git a/src/components/features/canvas-extensions/add-canvas-extension-modal.tsx b/src/components/features/canvas-extensions/add-canvas-extension-modal.tsx
index 7e4de6cd51..b930767ea2 100644
--- a/src/components/features/canvas-extensions/add-canvas-extension-modal.tsx
+++ b/src/components/features/canvas-extensions/add-canvas-extension-modal.tsx
@@ -48,7 +48,7 @@ export function AddCanvasExtensionModal({
<form
onSubmit={handleSubmit}
data-testid="add-canvas-extension-modal"
- className="relative flex w-[520px] max-w-[90vw] max-h-[85vh] flex-col rounded-xl border border-[var(--oh-border)] bg-base-secondary"
+ className="relative flex w-130 max-w-[90vw] max-h-[85vh] flex-col rounded-xl border border-border bg-base-secondary"
>
<ModalCloseButton
onClose={onClose}
diff --git a/src/components/features/canvas-extensions/canvas-extension-card.tsx b/src/components/features/canvas-extensions/canvas-extension-card.tsx
index 33210990db..076afbb48a 100644
--- a/src/components/features/canvas-extensions/canvas-extension-card.tsx
+++ b/src/components/features/canvas-extensions/canvas-extension-card.tsx
@@ -108,7 +108,7 @@ export function CanvasExtensionCard({
</section>
) : null}
- <footer className="flex justify-end gap-2 border-t border-[var(--oh-border)] pt-3">
+ <footer className="flex justify-end gap-2 border-t border-border pt-3">
<BrandButton
type="button"
variant="ghost-danger"
diff --git a/src/components/features/chat/btw-messages.tsx b/src/components/features/chat/btw-messages.tsx
index 6a5f6272eb..3e512ae4cf 100644
--- a/src/components/features/chat/btw-messages.tsx
+++ b/src/components/features/chat/btw-messages.tsx
@@ -32,7 +32,7 @@ export function BtwMessages({ conversationId }: BtwMessagesProps) {
{isPending && (
<span
data-testid="btw-spinner"
- className="inline-block w-3.5 h-3.5 ml-2 rounded-full border-2 border-transparent border-t-[var(--oh-border-input)] animate-spin"
+ className="inline-block w-3.5 h-3.5 ml-2 rounded-full border-2 border-transparent border-t-border-input animate-spin"
/>
)}
</span>
diff --git a/src/components/features/chat/change-agent-button.tsx b/src/components/features/chat/change-agent-button.tsx
index fa9ee97e09..2881ad1695 100644
--- a/src/components/features/chat/change-agent-button.tsx
+++ b/src/components/features/chat/change-agent-button.tsx
@@ -153,7 +153,7 @@ export function ChangeAgentButton() {
const buttonIcon = useMemo(() => {
if (isExecutionAgent) {
- return <CodePillIcon className="h-[11px] w-[11px] shrink-0" />;
+ return <CodePillIcon className="h-2.75 w-2.75 shrink-0" />;
}
return <LessonPlanIcon width={18} height={18} color="currentColor" />;
}, [isExecutionAgent]);
@@ -168,7 +168,7 @@ export function ChangeAgentButton() {
"flex items-center rounded-[100px]",
formControlTransitionClassName,
isExecutionAgent
- ? "border border-transparent text-[var(--oh-muted)]"
+ ? "border border-transparent text-muted"
: "border border-[#597FF4] bg-[#4A67BD]",
!isButtonDisabled &&
isExecutionAgent &&
diff --git a/src/components/features/chat/change-agent-context-menu.tsx b/src/components/features/chat/change-agent-context-menu.tsx
index dfc0da4648..0316fe8b80 100644
--- a/src/components/features/chat/change-agent-context-menu.tsx
+++ b/src/components/features/chat/change-agent-context-menu.tsx
@@ -46,14 +46,12 @@ export function ChangeAgentContextMenu({
testId="change-agent-context-menu"
position="top"
alignment="left"
- className="min-h-fit mb-2 min-w-[195px] max-w-[195px]"
+ className="min-h-fit mb-2 min-w-48.75 max-w-48.75"
>
<ContextMenuListItem
testId="code-option"
onClick={handleCodeClick}
- className={cn(
- activeMode === "code" && "bg-[var(--oh-interactive-hover)]",
- )}
+ className={cn(activeMode === "code" && "bg-interactive-hover")}
>
<ContextMenuIconTextWithDescription
icon={CodeTagIcon}
@@ -65,9 +63,7 @@ export function ChangeAgentContextMenu({
<ContextMenuListItem
testId="plan-option"
onClick={handlePlanClick}
- className={cn(
- activeMode === "plan" && "bg-[var(--oh-interactive-hover)]",
- )}
+ className={cn(activeMode === "plan" && "bg-interactive-hover")}
>
<ContextMenuIconTextWithDescription
icon={LessonPlanIcon}
diff --git a/src/components/features/chat/chat-add-file-button.tsx b/src/components/features/chat/chat-add-file-button.tsx
index c5c4c9bc32..b09f8a6055 100644
--- a/src/components/features/chat/chat-add-file-button.tsx
+++ b/src/components/features/chat/chat-add-file-button.tsx
@@ -73,9 +73,7 @@ export function ChatAddFileButton({
className={cn(
chatInputIconButtonClassName,
"relative shrink-0 size-6",
- disabled
- ? "cursor-not-allowed text-[var(--oh-text-subtle)]"
- : undefined,
+ disabled ? "cursor-not-allowed text-text-subtle" : undefined,
menuOpen && !disabled && "text-white bg-white/10",
)}
aria-label={t(I18nKey.CHAT_INTERFACE$PLUS_MENU)}
@@ -86,7 +84,7 @@ export function ChatAddFileButton({
disabled={disabled}
>
<span className="flex h-full w-full items-center justify-center">
- <Plus className="h-[13px] w-[13px] shrink-0" strokeWidth={2} />
+ <Plus className="h-3.25 w-3.25 shrink-0" strokeWidth={2} />
</span>
</button>
diff --git a/src/components/features/chat/chat-interface.tsx b/src/components/features/chat/chat-interface.tsx
index 12bb5a1bee..c0d40d803b 100644
--- a/src/components/features/chat/chat-interface.tsx
+++ b/src/components/features/chat/chat-interface.tsx
@@ -597,7 +597,7 @@ export function ChatInterface() {
<GoalStatusBanner conversationId={conversationId} />
</div>
- <div className="flex shrink-0 flex-col gap-[6px] pb-4">
+ <div className="flex shrink-0 flex-col gap-1.5 pb-4">
<SkillInstallRestartBanner conversationId={conversationId} />
<BtwMessages conversationId={conversationId} />
{errorMessage && (
@@ -628,14 +628,14 @@ export function ChatInterface() {
// the chat input. The conversation history above is still visible.
<div
data-testid="archived-conversation-banner"
- className="mx-1 px-4 py-3 rounded-lg bg-[var(--oh-surface)] border border-[var(--oh-border-subtle)]"
+ className="mx-1 px-4 py-3 rounded-lg bg-surface border border-border-subtle"
>
- <p className="text-xs font-semibold text-[var(--oh-foreground)]">
+ <p className="text-xs font-semibold text-foreground">
{sandboxStatus === "ERROR"
? t(I18nKey.CHAT_INTERFACE$ERROR_SANDBOX_TITLE)
: t(I18nKey.CHAT_INTERFACE$ARCHIVED_SANDBOX_TITLE)}
</p>
- <p className="text-xs text-[var(--oh-muted)] mt-0.5">
+ <p className="text-xs text-muted mt-0.5">
{sandboxStatus === "ERROR"
? t(I18nKey.CHAT_INTERFACE$ERROR_SANDBOX_DESCRIPTION)
: t(I18nKey.CHAT_INTERFACE$ARCHIVED_SANDBOX_DESCRIPTION)}
diff --git a/src/components/features/chat/chat-message.tsx b/src/components/features/chat/chat-message.tsx
index e6a1b4a707..c575628995 100644
--- a/src/components/features/chat/chat-message.tsx
+++ b/src/components/features/chat/chat-message.tsx
@@ -156,8 +156,7 @@ export function ChatMessage({
isFromPlanningAgent &&
type === "agent" &&
"border border-[#597ff4] bg-tertiary p-4 mt-2",
- pendingStatus === "error" &&
- "border border-[var(--oh-status-error)]/40",
+ pendingStatus === "error" && "border border-status-error/40",
!isPendingUserMessage && "last:mb-4",
)}
>
@@ -216,7 +215,7 @@ export function ChatMessage({
aria-hidden={!showStopButton}
tabIndex={showStopButton ? 0 : -1}
className={cn(
- "group absolute z-10 inline-flex h-7 w-7 cursor-pointer items-center justify-center rounded-full bg-[var(--oh-color-tertiary)] text-[var(--oh-foreground)] transition-opacity duration-150",
+ "group absolute z-10 inline-flex h-7 w-7 cursor-pointer items-center justify-center rounded-full bg-tertiary text-foreground transition-opacity duration-150",
isSingleLinePendingMessage
? "right-3 top-1/2 -translate-y-1/2"
: "right-3 bottom-2.5",
@@ -261,14 +260,14 @@ export function ChatMessage({
<div
role="alert"
data-testid="chat-message-error"
- className="flex items-center gap-2 text-xs text-[var(--oh-status-error)]"
+ className="flex items-center gap-2 text-xs text-status-error"
>
<span>{t(I18nKey.CHAT_INTERFACE$MESSAGE_SEND_FAILED)}</span>
{onRetry ? (
<button
type="button"
onClick={onRetry}
- className="cursor-pointer rounded-md border border-[var(--oh-border)] px-2 py-1 text-xs font-normal text-[var(--oh-foreground)] hover:bg-[var(--oh-interactive-hover)]"
+ className="cursor-pointer rounded-md border border-border px-2 py-1 text-xs font-normal text-foreground hover:bg-interactive-hover"
data-testid="chat-message-retry"
>
{t(I18nKey.CHAT_INTERFACE$MESSAGE_RETRY)}
@@ -278,7 +277,7 @@ export function ChatMessage({
<button
type="button"
onClick={onDismiss}
- className="cursor-pointer rounded-md border border-[var(--oh-border)] px-2 py-1 text-xs font-normal text-[var(--oh-foreground)] hover:bg-[var(--oh-interactive-hover)]"
+ className="cursor-pointer rounded-md border border-border px-2 py-1 text-xs font-normal text-foreground hover:bg-interactive-hover"
data-testid="chat-message-dismiss"
>
{t(I18nKey.CHAT_INTERFACE$MESSAGE_DISMISS)}
diff --git a/src/components/features/chat/chat-send-button.tsx b/src/components/features/chat/chat-send-button.tsx
index 0b895796e7..37751ea1ab 100644
--- a/src/components/features/chat/chat-send-button.tsx
+++ b/src/components/features/chat/chat-send-button.tsx
@@ -18,7 +18,7 @@ export function ChatSendButton({
className={cn(
"flex items-center justify-center rounded-full border border-white size-8",
disabled
- ? "cursor-not-allowed border-[var(--oh-muted)]"
+ ? "cursor-not-allowed border-muted"
: "cursor-pointer hover:bg-white/10",
buttonClassName,
)}
diff --git a/src/components/features/chat/chat-status-indicator.tsx b/src/components/features/chat/chat-status-indicator.tsx
index bf1de033d7..7f6bf0059b 100644
--- a/src/components/features/chat/chat-status-indicator.tsx
+++ b/src/components/features/chat/chat-status-indicator.tsx
@@ -15,7 +15,7 @@ function ChatStatusIndicator({
<div
data-testid="chat-status-indicator"
className={cn(
- "w-full max-w-full rounded-[100px] p-1 bg-[var(--oh-surface)] flex items-center gap-1",
+ "w-full max-w-full rounded-[100px] p-1 bg-surface flex items-center gap-1",
)}
>
<AnimatePresence mode="wait">
@@ -38,7 +38,7 @@ function ChatStatusIndicator({
animate={{ opacity: 1, y: 0 }}
exit={{ opacity: 0, y: 2 }}
transition={{ duration: 0.3 }}
- className="pr-1.5 font-normal text-[11px] leading-[16px] normal-case break-words whitespace-normal"
+ className="pr-1.5 font-normal text-[11px] leading-4 normal-case break-words whitespace-normal"
>
{status}
</motion.span>
diff --git a/src/components/features/chat/chat-suggestions.tsx b/src/components/features/chat/chat-suggestions.tsx
index c8c8de7e64..160fce1268 100644
--- a/src/components/features/chat/chat-suggestions.tsx
+++ b/src/components/features/chat/chat-suggestions.tsx
@@ -22,7 +22,7 @@ export function ChatSuggestions({ onSuggestionsClick }: ChatSuggestionsProps) {
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
transition={{ duration: 0.3, ease: "easeInOut" }}
- className="pointer-events-auto absolute inset-x-4 bottom-[151px] top-0 flex flex-col items-center justify-center md:inset-x-8"
+ className="pointer-events-auto absolute inset-x-4 bottom-37.75 top-0 flex flex-col items-center justify-center md:inset-x-8"
>
<div className="flex flex-col items-center p-4 rounded-xl w-full">
<span className="pb-6 text-[32px] font-medium leading-5 text-white">
diff --git a/src/components/features/chat/components/chat-input-actions.tsx b/src/components/features/chat/components/chat-input-actions.tsx
index fbf0412790..de1c3633db 100644
--- a/src/components/features/chat/components/chat-input-actions.tsx
+++ b/src/components/features/chat/components/chat-input-actions.tsx
@@ -254,7 +254,7 @@ export function ChatInputActions({
formControlTransitionClassName,
);
const overflowSettingsIconClassName = cn(
- "text-[var(--oh-muted)] group-hover:text-[var(--oh-foreground)]",
+ "text-muted group-hover:text-foreground",
formControlTransitionClassName,
);
@@ -293,7 +293,7 @@ export function ChatInputActions({
testId="chat-input-overflow-menu"
position="top"
alignment="left"
- className="!static !top-auto !bottom-auto !left-auto !right-auto !mt-0 overflow-visible min-w-[200px]"
+ className="!static !top-auto !bottom-auto !left-auto !right-auto !mt-0 overflow-visible min-w-50"
>
{showChangeAgentButton && !showCodeInline && (
<div className="relative group/overflow-agent">
@@ -307,7 +307,7 @@ export function ChatInputActions({
isDisabled={isAgentSwitcherDisabled}
>
<ToolsContextMenuIconText
- icon={<CodePillIcon className="h-[11px] w-[11px]" />}
+ icon={<CodePillIcon className="h-2.75 w-2.75" />}
text={
conversationMode === "code"
? t(I18nKey.COMMON$CODE)
@@ -319,7 +319,7 @@ export function ChatInputActions({
{!isAgentSwitcherDisabled && (
<div
className={cn(
- "absolute left-full top-[-4px] z-60 opacity-0 invisible pointer-events-none transition-all duration-200 ml-[1px]",
+ "absolute left-full top-[-4px] z-60 opacity-0 invisible pointer-events-none transition-all duration-200 ml-px",
"group-hover/overflow-agent:opacity-100 group-hover/overflow-agent:visible group-hover/overflow-agent:pointer-events-auto",
"hover:opacity-100 hover:visible hover:pointer-events-auto",
activeSubmenu === "agent" &&
@@ -328,7 +328,7 @@ export function ChatInputActions({
>
<ContextMenu
testId="overflow-agent-submenu"
- className="overflow-visible min-w-[195px]"
+ className="overflow-visible min-w-48.75"
>
<ContextMenuListItem
testId="overflow-agent-code"
@@ -340,7 +340,7 @@ export function ChatInputActions({
}}
>
<ToolsContextMenuIconText
- icon={<CodePillIcon className="h-[11px] w-[11px]" />}
+ icon={<CodePillIcon className="h-2.75 w-2.75" />}
text={t(I18nKey.COMMON$CODE)}
/>
</ContextMenuListItem>
@@ -385,7 +385,7 @@ export function ChatInputActions({
</ContextMenuListItem>
<div
className={cn(
- "absolute left-full top-[-4px] z-60 opacity-0 invisible pointer-events-none transition-all duration-200 ml-[1px]",
+ "absolute left-full top-[-4px] z-60 opacity-0 invisible pointer-events-none transition-all duration-200 ml-px",
"group-hover/overflow-model:opacity-100 group-hover/overflow-model:visible group-hover/overflow-model:pointer-events-auto",
"hover:opacity-100 hover:visible hover:pointer-events-auto",
activeSubmenu === "model" &&
@@ -399,7 +399,7 @@ export function ChatInputActions({
+ Settings link. Revisit if floating children are added here. */}
<ContextMenu
testId="overflow-model-submenu"
- className="min-w-[220px] max-w-[320px] max-h-[60vh] overflow-y-auto gap-0"
+ className="min-w-55 max-w-80 max-h-[60vh] overflow-y-auto gap-0"
>
{pickerKind === "model" ? (
<ChatInputModelMenuContent
diff --git a/src/components/features/chat/components/chat-input-container.tsx b/src/components/features/chat/components/chat-input-container.tsx
index 2905bcb24a..c6a5f7e2b8 100644
--- a/src/components/features/chat/components/chat-input-container.tsx
+++ b/src/components/features/chat/components/chat-input-container.tsx
@@ -67,7 +67,7 @@ export function ChatInputContainer({
<div
ref={chatContainerRef}
className={cn(
- "bg-[var(--oh-surface)] box-border content-stretch flex flex-col items-start justify-center p-4 relative rounded-[15px] w-full",
+ "bg-surface box-border content-stretch flex flex-col items-start justify-center p-4 relative rounded-[15px] w-full",
conversationMode === "plan" && "border border-[#597FF4]",
)}
onDragOver={(e) => onDragOver(e, disabled)}
diff --git a/src/components/features/chat/components/chat-input-field.tsx b/src/components/features/chat/components/chat-input-field.tsx
index 9668fca6e7..0a06897b9c 100644
--- a/src/components/features/chat/components/chat-input-field.tsx
+++ b/src/components/features/chat/components/chat-input-field.tsx
@@ -45,11 +45,14 @@ export function ChatInputField({
className="box-border content-stretch flex flex-row items-center justify-start min-h-6 p-0 relative shrink-0 flex-1"
data-name="Text & caret"
>
- <div className="basis-0 flex flex-col font-normal grow justify-center leading-[0] min-h-px min-w-px overflow-ellipsis overflow-hidden relative shrink-0 text-[var(--oh-text-tertiary)] text-[16px] text-left">
+ {/* `text-base` is a color utility in this theme (--color-base), not 16px. */}
+ {/* eslint-disable-next-line shadcn/no-arbitrary-values */}
+ <div className="basis-0 flex flex-col font-normal grow justify-center leading-[0] min-h-px min-w-px overflow-ellipsis overflow-hidden relative shrink-0 text-text-tertiary text-[16px] text-left">
<div
ref={chatInputRef}
className={cn(
- "chat-input bg-transparent text-white text-[16px] font-normal leading-[20px] outline-none resize-none custom-scrollbar min-h-[20px] max-h-[400px] [text-overflow:inherit] [text-wrap-mode:inherit] [white-space-collapse:inherit] block whitespace-pre-wrap",
+ // eslint-disable-next-line shadcn/no-arbitrary-values
+ "chat-input bg-transparent text-white text-[16px] font-normal leading-5 outline-none resize-none custom-scrollbar min-h-5 max-h-100 [text-overflow:inherit] [text-wrap-mode:inherit] [white-space-collapse:inherit] block whitespace-pre-wrap",
disabled && "cursor-not-allowed opacity-50",
)}
contentEditable={!disabled}
diff --git a/src/components/features/chat/components/chat-input-llm-profile-picker.tsx b/src/components/features/chat/components/chat-input-llm-profile-picker.tsx
index 60dfada5c3..7f108946e6 100644
--- a/src/components/features/chat/components/chat-input-llm-profile-picker.tsx
+++ b/src/components/features/chat/components/chat-input-llm-profile-picker.tsx
@@ -70,7 +70,7 @@ export function ChatInputLlmProfileMenuContent({
{/* role="presentation" keeps this a valid <li> child of the
ContextMenu <ul> without exposing the label as a menu item. */}
<li role="presentation" className="px-2 pt-1 pb-0.5">
- <Typography.Text className="text-[11px] font-medium text-[var(--oh-text-dim)] uppercase tracking-wide leading-4">
+ <Typography.Text className="text-[11px] font-medium text-text-dim uppercase tracking-wide leading-4">
{t(I18nKey.SETTINGS$AVAILABLE_PROFILES)}
</Typography.Text>
</li>
@@ -95,7 +95,7 @@ export function ChatInputLlmProfileMenuContent({
}}
className={cn(
"flex flex-col items-stretch gap-0.5",
- isCurrent && "bg-[var(--oh-interactive-hover)]",
+ isCurrent && "bg-interactive-hover",
)}
>
<span className="flex items-center gap-2">
@@ -115,7 +115,7 @@ export function ChatInputLlmProfileMenuContent({
)}
</span>
{displayModel && (
- <span className="block truncate text-xs leading-4 text-[var(--oh-muted)]">
+ <span className="block truncate text-xs leading-4 text-muted">
{displayModel}
</span>
)}
@@ -126,12 +126,12 @@ export function ChatInputLlmProfileMenuContent({
)}
{readOnlyProfileName && (
<li className="text-sm" data-testid="chat-input-llm-profile-current">
- <div className="flex flex-col gap-0.5 p-2 leading-5 text-[var(--oh-foreground)]">
+ <div className="flex flex-col gap-0.5 p-2 leading-5 text-foreground">
<span className="truncate" title={readOnlyProfileName}>
{readOnlyProfileName}
</span>
{currentProfileModel && (
- <span className="truncate text-xs leading-4 text-[var(--oh-muted)]">
+ <span className="truncate text-xs leading-4 text-muted">
{formatModelPillLabel(currentProfileModel, freeModels)}
</span>
)}
@@ -146,7 +146,7 @@ export function ChatInputLlmProfileMenuContent({
to="/settings/llm"
onClick={onClose}
className={cn(
- "flex h-[30px] items-center gap-2 rounded p-2 leading-5 text-[var(--oh-foreground)] hover:bg-[var(--oh-interactive-hover)] transition-colors",
+ "flex h-7.5 items-center gap-2 rounded p-2 leading-5 text-foreground hover:bg-interactive-hover transition-colors",
settingsLinkClassName,
)}
>
@@ -169,11 +169,37 @@ export function ChatInputLlmProfilePicker() {
useChatInputLlmProfileState();
const [isPopoverOpen, setIsPopoverOpen] = React.useState(false);
const triggerRef = React.useRef<HTMLButtonElement>(null);
+ const [popoverMaxHeight, setPopoverMaxHeight] = React.useState<number>();
const popoverRef = useClickOutsideElement<HTMLUListElement>(
() => setIsPopoverOpen(false),
triggerRef,
);
+ React.useLayoutEffect(() => {
+ if (!isPopoverOpen) return undefined;
+ const measureAvailableSpace = () => {
+ const trigger = triggerRef.current;
+ if (!trigger) return;
+ // Leave room for the menu margin and an 8px viewport gutter.
+ setPopoverMaxHeight(
+ Math.max(
+ 0,
+ Math.min(
+ window.innerHeight * 0.6,
+ trigger.getBoundingClientRect().top - 16,
+ ),
+ ),
+ );
+ };
+ measureAvailableSpace();
+ window.addEventListener("resize", measureAvailableSpace);
+ window.addEventListener("scroll", measureAvailableSpace, true);
+ return () => {
+ window.removeEventListener("resize", measureAvailableSpace);
+ window.removeEventListener("scroll", measureAvailableSpace, true);
+ };
+ }, [isPopoverOpen]);
+
// No LLM profiles yet (or the agent-server lacks the surface): stay out of
// the way, exactly like the ACP/AgentProfile pickers.
if (isLoading || profiles.length === 0) {
@@ -187,7 +213,7 @@ export function ChatInputLlmProfilePicker() {
<button
ref={triggerRef}
type="button"
- className={cn(chatInputPillButtonClassName, "max-w-[200px]")}
+ className={cn(chatInputPillButtonClassName, "max-w-50")}
title={currentProfileName ?? undefined}
data-testid="chat-input-llm-profile"
aria-expanded={isPopoverOpen}
@@ -209,10 +235,11 @@ export function ChatInputLlmProfilePicker() {
<ContextMenu
ref={popoverRef}
testId="chat-input-llm-profile-popover"
+ style={{ maxHeight: popoverMaxHeight }}
position="top"
alignment="left"
spacing="none"
- className="z-[60] mb-2 min-w-[200px] max-w-[320px] max-h-[60vh] overflow-y-auto"
+ className="z-[60] mb-2 min-w-50 max-w-80 max-h-[60vh] overflow-y-auto"
>
<ChatInputLlmProfileMenuContent
onClose={() => setIsPopoverOpen(false)}
diff --git a/src/components/features/chat/components/chat-input-model.tsx b/src/components/features/chat/components/chat-input-model.tsx
index 975b5f6d01..1c5e54205d 100644
--- a/src/components/features/chat/components/chat-input-model.tsx
+++ b/src/components/features/chat/components/chat-input-model.tsx
@@ -71,7 +71,7 @@ export function ChatInputModelMenuContent({
ContextMenu <ul> without exposing the section label as a
selectable menu item (the label text is still announced). */}
<li role="presentation" className="px-2 pt-1 pb-0.5">
- <Typography.Text className="text-[11px] font-medium text-[var(--oh-text-dim)] uppercase tracking-wide leading-4">
+ <Typography.Text className="text-[11px] font-medium text-text-dim uppercase tracking-wide leading-4">
{t(I18nKey.MODEL$AVAILABLE_MODELS)}
</Typography.Text>
</li>
@@ -88,7 +88,7 @@ export function ChatInputModelMenuContent({
}}
className={cn(
"flex items-center gap-2",
- isSelected && "bg-[var(--oh-interactive-hover)]",
+ isSelected && "bg-interactive-hover",
)}
>
<span
@@ -111,7 +111,7 @@ export function ChatInputModelMenuContent({
</>
) : model.displayModel ? (
<li className="text-sm">
- <div className="p-2 leading-5 text-[var(--oh-foreground)] break-all">
+ <div className="p-2 leading-5 text-foreground break-all">
{model.displayModel}
</div>
</li>
@@ -122,7 +122,7 @@ export function ChatInputModelMenuContent({
to={model.destinationPath}
onClick={onClose}
className={cn(
- "flex h-[30px] items-center gap-2 rounded p-2 leading-5 text-[var(--oh-foreground)] hover:bg-[var(--oh-interactive-hover)] transition-colors",
+ "flex h-7.5 items-center gap-2 rounded p-2 leading-5 text-foreground hover:bg-interactive-hover transition-colors",
settingsLinkClassName,
)}
>
@@ -184,7 +184,7 @@ export function ChatInputModel() {
position="top"
alignment="left"
spacing="none"
- className="z-[60] mb-2 min-w-[200px] max-w-[320px] max-h-[60vh] overflow-y-auto"
+ className="z-[60] mb-2 min-w-50 max-w-80 max-h-[60vh] overflow-y-auto"
>
<ChatInputModelMenuContent
model={model}
diff --git a/src/components/features/chat/components/chat-input-profile-picker.tsx b/src/components/features/chat/components/chat-input-profile-picker.tsx
index 635f0b3bda..e9290d3f9a 100644
--- a/src/components/features/chat/components/chat-input-profile-picker.tsx
+++ b/src/components/features/chat/components/chat-input-profile-picker.tsx
@@ -51,7 +51,7 @@ export function ChatInputProfileMenuContent({
{/* role="presentation" keeps this a valid <li> child of the
ContextMenu <ul> without exposing the label as a menu item. */}
<li role="presentation" className="px-2 pt-1 pb-0.5">
- <Typography.Text className="text-[11px] font-medium text-[var(--oh-text-dim)] uppercase tracking-wide leading-4">
+ <Typography.Text className="text-[11px] font-medium text-text-dim uppercase tracking-wide leading-4">
{t(I18nKey.SETTINGS$AVAILABLE_PROFILES)}
</Typography.Text>
</li>
@@ -74,7 +74,7 @@ export function ChatInputProfileMenuContent({
}}
className={cn(
"flex items-center gap-2",
- isCurrent && "bg-[var(--oh-interactive-hover)]",
+ isCurrent && "bg-interactive-hover",
)}
>
<span
@@ -96,7 +96,7 @@ export function ChatInputProfileMenuContent({
})}
{isInConversation && (
<li role="presentation" className="px-2 pt-0.5 pb-1">
- <Typography.Text className="text-[11px] text-[var(--oh-text-dim)] leading-4">
+ <Typography.Text className="text-[11px] text-text-dim leading-4">
{t(I18nKey.CHAT$START_NEW_WITH_PROFILE_HINT)}
</Typography.Text>
</li>
@@ -109,7 +109,7 @@ export function ChatInputProfileMenuContent({
to="/settings/agents"
onClick={onClose}
className={cn(
- "flex h-[30px] items-center gap-2 rounded p-2 leading-5 text-[var(--oh-foreground)] hover:bg-[var(--oh-interactive-hover)] transition-colors",
+ "flex h-7.5 items-center gap-2 rounded p-2 leading-5 text-foreground hover:bg-interactive-hover transition-colors",
settingsLinkClassName,
)}
>
diff --git a/src/components/features/chat/components/chat-input-row.tsx b/src/components/features/chat/components/chat-input-row.tsx
index f2cfd407a4..c96d5cb1f8 100644
--- a/src/components/features/chat/components/chat-input-row.tsx
+++ b/src/components/features/chat/components/chat-input-row.tsx
@@ -21,7 +21,7 @@ export function ChatInputRow({
onBlur,
}: ChatInputRowProps) {
return (
- <div className="box-border content-stretch flex flex-row items-end justify-between p-0 relative shrink-0 w-full pb-[18px] gap-2">
+ <div className="box-border content-stretch flex flex-row items-end justify-between p-0 relative shrink-0 w-full pb-4.5 gap-2">
<div className="basis-0 box-border content-stretch flex flex-row gap-4 grow items-end justify-start min-h-px min-w-px p-0 relative shrink-0">
<ChatInputField
chatInputRef={chatInputRef}
diff --git a/src/components/features/chat/components/context-window-meter.tsx b/src/components/features/chat/components/context-window-meter.tsx
index c068312a7a..5675d8a461 100644
--- a/src/components/features/chat/components/context-window-meter.tsx
+++ b/src/components/features/chat/components/context-window-meter.tsx
@@ -29,7 +29,7 @@ const TONE_BAR_CLASS = {
} as const;
const TONE_LABEL_CLASS = {
- neutral: "text-[var(--oh-muted)]",
+ neutral: "text-muted",
warning: "text-amber-500",
danger: "text-red-500",
} as const;
@@ -96,13 +96,13 @@ export function ContextWindowMeter() {
ref={popoverRef}
data-testid="context-window-meter-popover"
className={cn(
- "absolute bottom-full right-0 z-[60] mb-2 w-[280px]",
- "flex flex-col gap-0.5 rounded-md border border-[var(--oh-border-subtle)] bg-tertiary px-1 py-1 shadow-lg",
+ "absolute bottom-full right-0 z-[60] mb-2 w-70",
+ "flex flex-col gap-0.5 rounded-md border border-border-subtle bg-tertiary px-1 py-1 shadow-lg",
)}
>
<div className="flex flex-col gap-2 px-2 py-1.5">
<div className="flex items-center justify-between gap-2 text-sm">
- <span className="font-semibold text-[var(--oh-foreground)]">
+ <span className="font-semibold text-foreground">
{t(I18nKey.CONVERSATION$CONTEXT_WINDOW)}
</span>
<span className={cn("shrink-0 text-xs", TONE_LABEL_CLASS[tone])}>
@@ -140,7 +140,7 @@ export function ContextWindowMeter() {
aria-label={t(I18nKey.CONVERSATION$COMPACT_CONTEXT)}
className={cn(
"inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-xs",
- "text-[var(--oh-muted)] hover:bg-[var(--oh-interactive-hover)] hover:text-[var(--oh-foreground)]",
+ "text-muted hover:bg-interactive-hover hover:text-foreground",
"transition-colors disabled:cursor-not-allowed disabled:opacity-50",
)}
onClick={(event) => {
@@ -156,9 +156,7 @@ export function ContextWindowMeter() {
)}
<span>{t(I18nKey.CONVERSATION$COMPACT_CONTEXT)}</span>
</button>
- <span className="text-xs text-[var(--oh-muted)]">
- {usageTokenSummary}
- </span>
+ <span className="text-xs text-muted">{usageTokenSummary}</span>
</div>
</div>
diff --git a/src/components/features/chat/components/slash-command-menu.tsx b/src/components/features/chat/components/slash-command-menu.tsx
index 29b3af7847..f5438f52be 100644
--- a/src/components/features/chat/components/slash-command-menu.tsx
+++ b/src/components/features/chat/components/slash-command-menu.tsx
@@ -108,7 +108,7 @@ function SlashCommandMenuItem({
className={cn(
"w-full px-3 py-2.5 text-left",
dropdownInstantColorClassName,
- isSelected ? "bg-tertiary" : "hover:bg-[var(--oh-surface-raised)]",
+ isSelected ? "bg-tertiary" : "hover:bg-surface-raised",
)}
onMouseDown={(e) => {
// Use mouseDown instead of click to fire before input blur
@@ -118,7 +118,7 @@ function SlashCommandMenuItem({
>
<Text className="font-normal">{item.command}</Text>
{description && (
- <Text className="text-xs text-[var(--oh-muted)] mt-0.5 truncate block">
+ <Text className="text-xs text-muted mt-0.5 truncate block">
{description}
</Text>
)}
@@ -159,10 +159,10 @@ export function SlashCommandMenu({
<div
role="listbox"
aria-label={t(I18nKey.CHAT_INTERFACE$COMMANDS)}
- className="absolute bottom-full left-0 w-full mb-1 bg-[var(--oh-surface)] border border-[var(--oh-border-subtle)] rounded-lg shadow-lg max-h-[300px] overflow-y-auto custom-scrollbar z-50"
+ className="absolute bottom-full left-0 w-full mb-1 bg-surface border border-border-subtle rounded-lg shadow-lg max-h-75 overflow-y-auto custom-scrollbar z-50"
data-testid="slash-command-menu"
>
- <div className="px-3 py-2 text-xs text-[var(--oh-muted)] border-b border-[var(--oh-border-subtle)]">
+ <div className="px-3 py-2 text-xs text-muted border-b border-border-subtle">
{t(I18nKey.CHAT_INTERFACE$COMMANDS)}
</div>
<div className={dropdownMenuListClassName}>
diff --git a/src/components/features/chat/confirmation-mode-enabled.tsx b/src/components/features/chat/confirmation-mode-enabled.tsx
index 8b5bcb6f0a..1023223fed 100644
--- a/src/components/features/chat/confirmation-mode-enabled.tsx
+++ b/src/components/features/chat/confirmation-mode-enabled.tsx
@@ -19,7 +19,7 @@ function ConfirmationModeEnabled() {
content={t(I18nKey.COMMON$CONFIRMATION_MODE_ENABLED)}
tooltipClassName="bg-white text-black hover:bg-transparent"
>
- <div className="flex items-center justify-center w-[26px] h-[26px] rounded-lg bg-[var(--oh-surface)]">
+ <div className="flex items-center justify-center w-6.5 h-6.5 rounded-lg bg-surface">
<LockIcon width={15} height={15} />
</div>
</StyledTooltip>
diff --git a/src/components/features/chat/error-message-banner.tsx b/src/components/features/chat/error-message-banner.tsx
index cff1972000..dea19bd6dc 100644
--- a/src/components/features/chat/error-message-banner.tsx
+++ b/src/components/features/chat/error-message-banner.tsx
@@ -95,7 +95,7 @@ export function ErrorMessageBanner({
return (
<div
className={cn(
- "flex w-full gap-2 rounded-lg border border-[var(--oh-border)] bg-[var(--oh-surface-raised)] p-2 text-[var(--oh-foreground)]",
+ "flex w-full gap-2 rounded-lg border border-border bg-surface-raised p-2 text-foreground",
isMultiLine ? "items-start" : "items-center",
)}
data-testid="error-message-banner"
@@ -105,7 +105,7 @@ export function ErrorMessageBanner({
classification.kind !== "unknown" ? (
<CircleAlert
aria-hidden
- className="h-4 w-4 shrink-0 text-[var(--oh-warning)]"
+ className="h-4 w-4 shrink-0 text-warning"
strokeWidth={2}
data-testid="warning-message-banner-icon"
/>
@@ -121,7 +121,7 @@ export function ErrorMessageBanner({
<div className="min-w-0 flex-1">
{headerKey && (
<div
- className="text-sm font-medium text-[var(--oh-foreground)]"
+ className="text-sm font-medium text-foreground"
data-testid="error-message-banner-header"
>
{t(headerKey)}
@@ -130,7 +130,7 @@ export function ErrorMessageBanner({
<div
ref={contentRef}
className={cn(
- "whitespace-pre-wrap break-words text-sm text-[var(--oh-muted)]",
+ "whitespace-pre-wrap break-words text-sm text-muted",
isCollapsed && "line-clamp-3",
)}
data-testid="error-message-banner-content"
@@ -142,7 +142,7 @@ export function ErrorMessageBanner({
<button
type="button"
onClick={onReauth}
- className="mt-2 cursor-pointer rounded-md border border-[var(--oh-border)] px-2 py-1 text-xs font-normal text-[var(--oh-foreground)] hover:bg-[var(--oh-interactive-hover)]"
+ className="mt-2 cursor-pointer rounded-md border border-border px-2 py-1 text-xs font-normal text-foreground hover:bg-interactive-hover"
data-testid="error-message-banner-reauth"
>
{t(I18nKey.ERROR$ACP_UPDATE_CREDENTIALS)}
@@ -152,7 +152,7 @@ export function ErrorMessageBanner({
{shouldShowToggle && (
<button
type="button"
- className="mt-1 cursor-pointer text-xs font-normal text-[var(--oh-foreground)] underline"
+ className="mt-1 cursor-pointer text-xs font-normal text-foreground underline"
onClick={() => setIsExpanded((prev) => !prev)}
data-testid="error-message-banner-toggle"
>
@@ -173,7 +173,7 @@ export function ErrorMessageBanner({
<button
type="button"
onClick={onRetry}
- className="cursor-pointer rounded-md border border-[var(--oh-border)] px-2 py-1 text-xs font-normal text-[var(--oh-foreground)] hover:bg-[var(--oh-interactive-hover)]"
+ className="cursor-pointer rounded-md border border-border px-2 py-1 text-xs font-normal text-foreground hover:bg-interactive-hover"
data-testid="error-message-banner-retry"
>
{t(I18nKey.CHAT_INTERFACE$MESSAGE_RETRY)}
@@ -183,7 +183,7 @@ export function ErrorMessageBanner({
<button
type="button"
onClick={handleCopy}
- className="shrink-0 cursor-pointer rounded-md p-1 text-[var(--oh-muted)] hover:bg-[var(--oh-interactive-hover)] hover:text-[var(--oh-foreground)]"
+ className="shrink-0 cursor-pointer rounded-md p-1 text-muted hover:bg-interactive-hover hover:text-foreground"
aria-label={t(isCopied ? I18nKey.BUTTON$COPIED : I18nKey.BUTTON$COPY)}
data-testid="error-message-banner-copy"
>
@@ -198,7 +198,7 @@ export function ErrorMessageBanner({
<button
type="button"
onClick={onDismiss}
- className="shrink-0 cursor-pointer rounded-md p-1 text-[var(--oh-muted)] hover:bg-[var(--oh-interactive-hover)] hover:text-[var(--oh-foreground)]"
+ className="shrink-0 cursor-pointer rounded-md p-1 text-muted hover:bg-interactive-hover hover:text-foreground"
aria-label={t(I18nKey.BUTTON$CLOSE)}
data-testid="error-message-banner-dismiss"
>
diff --git a/src/components/features/chat/generic-event-message.tsx b/src/components/features/chat/generic-event-message.tsx
index 3c93f79904..7818a1176a 100644
--- a/src/components/features/chat/generic-event-message.tsx
+++ b/src/components/features/chat/generic-event-message.tsx
@@ -58,14 +58,14 @@ export function GenericEventMessage({
{showDetails ? (
<ArrowUp
className={cn(
- "h-4 w-4 inline fill-[var(--oh-muted)]",
+ "h-4 w-4 inline fill-muted",
chevronPosition === "after" ? "ml-2" : "mr-2",
)}
/>
) : (
<ArrowDown
className={cn(
- "h-4 w-4 inline fill-[var(--oh-muted)]",
+ "h-4 w-4 inline fill-muted",
chevronPosition === "after" ? "ml-2" : "mr-2",
)}
/>
@@ -110,7 +110,7 @@ export function GenericEventMessage({
);
const titleRow = (
- <div className="flex items-center justify-between font-normal text-[var(--oh-muted)]">
+ <div className="flex items-center justify-between font-normal text-muted">
{titleContentWithTimestamp}
<div className="flex items-center">
{titleTrailing}
diff --git a/src/components/features/chat/git-control-bar-branch-button.tsx b/src/components/features/chat/git-control-bar-branch-button.tsx
index 0b171ff6cf..566e992154 100644
--- a/src/components/features/chat/git-control-bar-branch-button.tsx
+++ b/src/components/features/chat/git-control-bar-branch-button.tsx
@@ -46,10 +46,10 @@ export function GitControlBarBranchButton({
target="_blank"
rel="noopener noreferrer"
className={cn(
- "group flex flex-row items-center justify-between gap-2 pl-2.5 pr-2.5 py-1 rounded-[100px] w-fit flex-shrink-0 max-w-[200px] truncate relative",
+ "group flex flex-row items-center justify-between gap-2 pl-2.5 pr-2.5 py-1 rounded-[100px] w-fit flex-shrink-0 max-w-50 truncate relative",
hasLinkableBranch
- ? "border border-[var(--oh-border)] bg-transparent hover:border-[var(--oh-border-subtle)] cursor-pointer"
- : "border border-[rgba(71,74,84,0.50)] bg-transparent cursor-not-allowed min-w-[108px]",
+ ? "border border-border bg-transparent hover:border-border-subtle cursor-pointer"
+ : "border border-[rgba(71,74,84,0.50)] bg-transparent cursor-not-allowed min-w-27",
)}
>
<div className="w-3 h-3 flex items-center justify-center flex-shrink-0">
diff --git a/src/components/features/chat/git-control-bar-pr-button.tsx b/src/components/features/chat/git-control-bar-pr-button.tsx
index aaec63b174..2874f3b06a 100644
--- a/src/components/features/chat/git-control-bar-pr-button.tsx
+++ b/src/components/features/chat/git-control-bar-pr-button.tsx
@@ -43,7 +43,7 @@ export function GitControlBarPrButton({
disabled={!isButtonEnabled}
className={cn(
gitControlBarActionButtonClassName(isButtonEnabled),
- "px-2 py-1 w-[126px] min-w-[126px] h-7",
+ "px-2 py-1 w-31.5 min-w-31.5 h-7",
)}
>
<div className="w-3 h-3 flex items-center justify-center">
@@ -54,7 +54,7 @@ export function GitControlBarPrButton({
/>
</div>
<div
- className={cn(gitControlBarActionLabelClassName, "max-w-[126px]")}
+ className={cn(gitControlBarActionLabelClassName, "max-w-31.5")}
title={t(I18nKey.COMMON$PULL_REQUEST)}
>
{t(I18nKey.COMMON$PULL_REQUEST)}
diff --git a/src/components/features/chat/git-control-bar-pull-button.tsx b/src/components/features/chat/git-control-bar-pull-button.tsx
index 7efb7ae188..9c59e3180d 100644
--- a/src/components/features/chat/git-control-bar-pull-button.tsx
+++ b/src/components/features/chat/git-control-bar-pull-button.tsx
@@ -40,7 +40,7 @@ export function GitControlBarPullButton({
disabled={!isButtonEnabled}
className={cn(
gitControlBarActionButtonClassName(isButtonEnabled),
- "px-0.5 py-1 w-[76px] min-w-[76px]",
+ "px-0.5 py-1 w-19 min-w-19",
)}
>
<div className="w-3 h-3 flex items-center justify-center">
@@ -51,7 +51,7 @@ export function GitControlBarPullButton({
/>
</div>
<div
- className={cn(gitControlBarActionLabelClassName, "max-w-[76px]")}
+ className={cn(gitControlBarActionLabelClassName, "max-w-19")}
title={t(I18nKey.COMMON$PULL)}
>
{t(I18nKey.COMMON$PULL)}
diff --git a/src/components/features/chat/git-control-bar-push-button.tsx b/src/components/features/chat/git-control-bar-push-button.tsx
index 2bb59592b9..30329d4e71 100644
--- a/src/components/features/chat/git-control-bar-push-button.tsx
+++ b/src/components/features/chat/git-control-bar-push-button.tsx
@@ -43,7 +43,7 @@ export function GitControlBarPushButton({
disabled={!isButtonEnabled}
className={cn(
gitControlBarActionButtonClassName(isButtonEnabled),
- "px-2 py-1 w-[77px] min-w-[77px]",
+ "px-2 py-1 w-19.25 min-w-19.25",
)}
>
<div className="w-3 h-3 flex items-center justify-center">
@@ -54,7 +54,7 @@ export function GitControlBarPushButton({
/>
</div>
<div
- className={cn(gitControlBarActionLabelClassName, "max-w-[77px]")}
+ className={cn(gitControlBarActionLabelClassName, "max-w-19.25")}
title={t(I18nKey.COMMON$PUSH)}
>
{t(I18nKey.COMMON$PUSH)}
diff --git a/src/components/features/chat/git-control-bar-repo-button.tsx b/src/components/features/chat/git-control-bar-repo-button.tsx
index 79a97054e6..9db9d93e6d 100644
--- a/src/components/features/chat/git-control-bar-repo-button.tsx
+++ b/src/components/features/chat/git-control-bar-repo-button.tsx
@@ -55,7 +55,7 @@ export function GitControlBarRepoButton({
rel="noopener noreferrer"
className={cn(
"group flex flex-row items-center justify-between gap-2 pl-2.5 pr-2.5 py-1 rounded-[100px] flex-1 truncate relative",
- "border border-[var(--oh-border)] bg-transparent hover:border-[var(--oh-border-subtle)] cursor-pointer",
+ "border border-border bg-transparent hover:border-border-subtle cursor-pointer",
)}
>
<div className="w-3 h-3 flex items-center justify-center flex-shrink-0">
@@ -85,7 +85,7 @@ export function GitControlBarRepoButton({
"border border-[rgba(71,74,84,0.50)] bg-transparent",
disabled
? "cursor-not-allowed opacity-50"
- : "cursor-pointer hover:border-[var(--oh-border-subtle)]",
+ : "cursor-pointer hover:border-border-subtle",
)}
>
<div className="w-3 h-3 flex items-center justify-center flex-shrink-0 text-white">
diff --git a/src/components/features/chat/goal-status-content.tsx b/src/components/features/chat/goal-status-content.tsx
index dea4701bc3..5c64422a2f 100644
--- a/src/components/features/chat/goal-status-content.tsx
+++ b/src/components/features/chat/goal-status-content.tsx
@@ -146,7 +146,7 @@ export function GoalStatusContent({ status }: { status: GoalStatus }) {
{active ? (
<span
data-testid="goal-spinner"
- className="inline-block w-3.5 h-3.5 ml-1 rounded-full border-2 border-transparent border-t-[var(--oh-border-input)] animate-spin"
+ className="inline-block w-3.5 h-3.5 ml-1 rounded-full border-2 border-transparent border-t-border-input animate-spin"
/>
) : status.status === "complete" ? (
<span data-testid="goal-done" className="inline-flex ml-1">
@@ -154,7 +154,7 @@ export function GoalStatusContent({ status }: { status: GoalStatus }) {
</span>
) : (
<span data-testid="goal-ended" className="inline-flex ml-1">
- <XCircle className="w-3.5 h-3.5 fill-[var(--oh-muted)]" />
+ <XCircle className="w-3.5 h-3.5 fill-muted" />
</span>
)}
</span>
diff --git a/src/components/features/chat/open-repository-modal.tsx b/src/components/features/chat/open-repository-modal.tsx
index c2994e94f1..68b238cf1d 100644
--- a/src/components/features/chat/open-repository-modal.tsx
+++ b/src/components/features/chat/open-repository-modal.tsx
@@ -97,7 +97,7 @@ export function OpenRepositoryModal({
<ModalBackdrop onClose={handleClose}>
<ModalBody
width="sm"
- className="relative items-start border border-[var(--oh-border)] !gap-4"
+ className="relative items-start border border-border !gap-4"
>
<ModalCloseButton
onClose={handleClose}
@@ -109,7 +109,7 @@ export function OpenRepositoryModal({
<div className="flex flex-col gap-4 w-full">
<div className="flex items-center justify-between">
- <span className="text-sm text-white font-normal leading-[22px]">
+ <span className="text-sm text-white font-normal leading-5.5">
{t(I18nKey.CONVERSATION$SELECT_OR_INSERT_LINK)}
</span>
{providers.length > 1 && (
@@ -121,7 +121,7 @@ export function OpenRepositoryModal({
)}
</div>
- <div className="flex flex-col gap-[10px] w-full">
+ <div className="flex flex-col gap-2.5 w-full">
<GitRepoDropdown
provider={activeProvider}
value={selectedRepository?.id || null}
diff --git a/src/components/features/chat/pasted-image-upload-as-file-button.tsx b/src/components/features/chat/pasted-image-upload-as-file-button.tsx
index 1ad77260d8..8d2e3b05c6 100644
--- a/src/components/features/chat/pasted-image-upload-as-file-button.tsx
+++ b/src/components/features/chat/pasted-image-upload-as-file-button.tsx
@@ -36,7 +36,7 @@ export function PastedImageUploadAsFileButton({
onToggle();
}}
className={cn(
- "flex h-4 w-4 items-center justify-center rounded-full bg-[var(--oh-surface)] text-[var(--oh-foreground)] transition-colors cursor-pointer hover:bg-[var(--oh-muted)]",
+ "flex h-4 w-4 items-center justify-center rounded-full bg-surface text-foreground transition-colors cursor-pointer hover:bg-muted",
)}
>
{active ? (
diff --git a/src/components/features/chat/pending-stop-icon.tsx b/src/components/features/chat/pending-stop-icon.tsx
index ce8f50a925..e519e218e7 100644
--- a/src/components/features/chat/pending-stop-icon.tsx
+++ b/src/components/features/chat/pending-stop-icon.tsx
@@ -11,16 +11,9 @@ export function PendingStopIcon({ className }: { className?: string }) {
cx="12"
cy="12"
r="10"
- className="fill-[var(--oh-foreground)] transition-colors duration-150 group-hover:fill-[var(--oh-text-secondary)]"
- />
- <rect
- x="9"
- y="9"
- width="6"
- height="6"
- rx="1"
- className="fill-[var(--oh-color-tertiary)]"
+ className="fill-foreground transition-colors duration-150 group-hover:fill-text-secondary"
/>
+ <rect x="9" y="9" width="6" height="6" rx="1" className="fill-tertiary" />
</svg>
);
}
diff --git a/src/components/features/chat/plan-preview.tsx b/src/components/features/chat/plan-preview.tsx
index 1dd63a7bea..b8bdccc981 100644
--- a/src/components/features/chat/plan-preview.tsx
+++ b/src/components/features/chat/plan-preview.tsx
@@ -67,9 +67,9 @@ export function PlanPreview({
}
return (
- <div className="bg-[var(--oh-surface)] border border-[#597FF4] rounded-[12px] w-full mt-2">
+ <div className="bg-surface border border-[#597FF4] rounded-xl w-full mt-2">
{/* Header */}
- <div className="border-b border-[var(--oh-border)] flex h-[41px] items-center px-2 gap-1">
+ <div className="border-b border-border flex h-10.25 items-center px-2 gap-1">
<LessonPlanIcon width={18} height={18} color="var(--oh-muted)" />
<Typography.Text className="font-normal text-[11px] text-white tracking-[0.11px] leading-4">
{t(I18nKey.COMMON$PLAN_MD)}
@@ -91,7 +91,7 @@ export function PlanPreview({
{/* Content */}
<div
data-testid="plan-preview-content"
- className="flex flex-col gap-[10px] p-4 text-[15px] text-white leading-[29px]"
+ className="flex flex-col gap-2.5 p-4 text-[15px] text-white leading-7.25"
>
{truncatedContent && (
<>
@@ -116,20 +116,20 @@ export function PlanPreview({
</div>
{/* Footer */}
- <div className="border-t border-[var(--oh-border)] flex h-[54px] items-center justify-start px-4">
+ <div className="border-t border-border flex h-13.5 items-center justify-start px-4">
<button
type="button"
onClick={handleBuildClick}
disabled={isBuildDisabled}
className={cn(
- "bg-white flex items-center justify-center h-[26px] px-2 rounded-[4px] w-[93px] transition-opacity",
+ "bg-white flex items-center justify-center h-6.5 px-2 rounded-sm w-23.25 transition-opacity",
isBuildDisabled
? "opacity-50 cursor-not-allowed"
: "hover:opacity-90 cursor-pointer",
)}
data-testid="plan-preview-build-button"
>
- <Typography.Text className="font-normal text-[14px] text-black leading-5">
+ <Typography.Text className="font-normal text-sm text-black leading-5">
{t(I18nKey.COMMON$BUILD)}{" "}
<Typography.Text className="font-normal text-black">
βŒ˜β†©
diff --git a/src/components/features/chat/remove-file-button.tsx b/src/components/features/chat/remove-file-button.tsx
index cf5c8d7969..dfe7c912a0 100644
--- a/src/components/features/chat/remove-file-button.tsx
+++ b/src/components/features/chat/remove-file-button.tsx
@@ -13,7 +13,7 @@ export function RemoveFileButton({ onClick }: RemoveFileButtonProps) {
type="button"
onClick={onClick}
className={cn(
- "z-10 flex w-4 h-4 rounded-full items-center justify-center bg-[var(--oh-surface)] hover:bg-[var(--oh-muted)] cursor-pointer absolute top-1 right-1 opacity-0 group-hover:opacity-100 transition-opacity duration-200",
+ "z-10 flex w-4 h-4 rounded-full items-center justify-center bg-surface hover:bg-muted cursor-pointer absolute top-1 right-1 opacity-0 group-hover:opacity-100 transition-opacity duration-200",
isMobile && "opacity-100",
)}
>
diff --git a/src/components/features/chat/skill-install-restart-banner.tsx b/src/components/features/chat/skill-install-restart-banner.tsx
index 30243ec432..93bf6d14ba 100644
--- a/src/components/features/chat/skill-install-restart-banner.tsx
+++ b/src/components/features/chat/skill-install-restart-banner.tsx
@@ -69,11 +69,11 @@ export function SkillInstallRestartBanner({
return (
<div
- className="flex w-full items-start gap-2 rounded-lg border border-[var(--oh-border)] bg-[var(--oh-surface-raised)] p-2 text-[var(--oh-foreground)]"
+ className="flex w-full items-start gap-2 rounded-lg border border-border bg-surface-raised p-2 text-foreground"
data-testid="skill-install-restart-banner"
>
<div className="min-w-0 flex-1">
- <p className="text-sm text-[var(--oh-foreground)]">
+ <p className="text-sm text-foreground">
{t(I18nKey.SKILLS$INSTALL_BANNER_MESSAGE, {
skills: skillNames.join(", "),
})}
@@ -82,7 +82,7 @@ export function SkillInstallRestartBanner({
type="button"
onClick={handleRestart}
disabled={isPending || isCreatingElsewhere}
- className="mt-2 cursor-pointer rounded-md border border-[var(--oh-border)] px-2 py-1 text-xs font-normal text-[var(--oh-foreground)] hover:bg-[var(--oh-interactive-hover)] disabled:cursor-not-allowed disabled:opacity-50"
+ className="mt-2 cursor-pointer rounded-md border border-border px-2 py-1 text-xs font-normal text-foreground hover:bg-interactive-hover disabled:cursor-not-allowed disabled:opacity-50"
data-testid="skill-install-restart-action"
>
{t(I18nKey.SKILLS$INSTALL_BANNER_ACTION)}
@@ -91,7 +91,7 @@ export function SkillInstallRestartBanner({
<button
type="button"
onClick={dismissAll}
- className="shrink-0 cursor-pointer rounded-md p-1 text-[var(--oh-muted)] hover:bg-[var(--oh-interactive-hover)] hover:text-[var(--oh-foreground)]"
+ className="shrink-0 cursor-pointer rounded-md p-1 text-muted hover:bg-interactive-hover hover:text-foreground"
aria-label={t(I18nKey.BUTTON$CLOSE)}
data-testid="skill-install-restart-dismiss"
>
diff --git a/src/components/features/chat/task-tracking/task-item.tsx b/src/components/features/chat/task-tracking/task-item.tsx
index f0119a76e2..26a2669f60 100644
--- a/src/components/features/chat/task-tracking/task-item.tsx
+++ b/src/components/features/chat/task-tracking/task-item.tsx
@@ -26,7 +26,7 @@ export function TaskItem({ task }: TaskItemProps) {
case "in_progress":
return <CheckCircleHalfIcon className="w-4 h-4 text-[#ffffff]" />;
case "done":
- return <CheckCircleIcon className="w-4 h-4 text-[var(--oh-muted)]" />;
+ return <CheckCircleIcon className="w-4 h-4 text-muted" />;
default:
return <CircleIcon className="w-4 h-4 text-[#ffffff]" />;
}
@@ -37,17 +37,14 @@ export function TaskItem({ task }: TaskItemProps) {
return (
<div className="flex gap-2 items-center w-full" data-name="item">
<div className="shrink-0">{icon}</div>
- <div className="flex flex-col items-start justify-center leading-[16px] text-nowrap whitespace-pre font-normal">
+ <div className="flex flex-col items-start justify-center leading-4 text-nowrap whitespace-pre font-normal">
<Typography.Text
- className={cn(
- "text-[12px]",
- isDoneStatus ? "text-[var(--oh-muted)]" : "text-white",
- )}
+ className={cn("text-xs", isDoneStatus ? "text-muted" : "text-white")}
>
{task.title}
</Typography.Text>
{task.notes && (
- <Typography.Text className="text-[10px] text-[var(--oh-muted)]">
+ <Typography.Text className="text-[10px] text-muted">
{t(I18nKey.TASK_TRACKING_OBSERVATION$TASK_NOTES)}: {task.notes}
</Typography.Text>
)}
diff --git a/src/components/features/chat/tool-visualizers/primitives/file-path-chip.tsx b/src/components/features/chat/tool-visualizers/primitives/file-path-chip.tsx
index 21939246d3..6bd736acb5 100644
--- a/src/components/features/chat/tool-visualizers/primitives/file-path-chip.tsx
+++ b/src/components/features/chat/tool-visualizers/primitives/file-path-chip.tsx
@@ -29,7 +29,7 @@ export function FilePathChip({ path, range, onClick }: FilePathChipProps) {
</>
);
const className =
- "inline-flex max-w-full cursor-pointer items-center gap-1.5 self-start rounded bg-surface-raised px-2 py-0.5 text-left font-mono text-xs text-foreground hover:bg-[var(--oh-interactive-hover)]";
+ "inline-flex max-w-full cursor-pointer items-center gap-1.5 self-start rounded bg-surface-raised px-2 py-0.5 text-left font-mono text-xs text-foreground hover:bg-interactive-hover";
return (
<button
diff --git a/src/components/features/chat/tool-visualizers/primitives/markdown-file-preview.tsx b/src/components/features/chat/tool-visualizers/primitives/markdown-file-preview.tsx
index 91d1adc3c1..01547bac26 100644
--- a/src/components/features/chat/tool-visualizers/primitives/markdown-file-preview.tsx
+++ b/src/components/features/chat/tool-visualizers/primitives/markdown-file-preview.tsx
@@ -163,7 +163,7 @@ export function MarkdownFilePreview({
return (
<div
- className="w-full overflow-hidden rounded-[12px] border border-[var(--oh-border)] bg-[var(--oh-surface)]"
+ className="w-full overflow-hidden rounded-xl border border-border bg-surface"
data-testid="markdown-file-preview"
>
<div
@@ -180,10 +180,10 @@ export function MarkdownFilePreview({
components={planComponents}
/>
</div>
- <div className="flex h-10 items-center justify-between gap-2 border-t border-[var(--oh-border)] px-3">
+ <div className="flex h-10 items-center justify-between gap-2 border-t border-border px-3">
<div className="flex min-w-0 items-center gap-1.5">
- <FileIcon className="h-3.5 w-3.5 flex-shrink-0 text-[var(--oh-muted)]" />
- <Typography.Text className="truncate font-mono text-[11px] leading-4 tracking-[0.11px] text-[var(--oh-muted)]">
+ <FileIcon className="h-3.5 w-3.5 flex-shrink-0 text-muted" />
+ <Typography.Text className="truncate font-mono text-[11px] leading-4 tracking-[0.11px] text-muted">
{fileName}
</Typography.Text>
</div>
diff --git a/src/components/features/chat/typing-indicator.tsx b/src/components/features/chat/typing-indicator.tsx
index 8aaf0486df..e5ea1837ed 100644
--- a/src/components/features/chat/typing-indicator.tsx
+++ b/src/components/features/chat/typing-indicator.tsx
@@ -132,14 +132,14 @@ export function TypingIndicator({ events }: TypingIndicatorProps) {
return (
<div
- className="flex min-w-0 max-w-full items-center gap-2 rounded-full border border-[var(--oh-border)] bg-[var(--oh-surface)] px-3 py-1.5 text-xs text-[var(--oh-text-secondary)]"
+ className="flex min-w-0 max-w-full items-center gap-2 rounded-full border border-border bg-surface px-3 py-1.5 text-xs text-text-secondary"
data-testid="live-activity-chip"
role="status"
aria-live="polite"
>
<span
aria-hidden="true"
- className="size-1.5 shrink-0 animate-pulse rounded-full bg-[var(--oh-status-success)] motion-reduce:animate-none"
+ className="size-1.5 shrink-0 animate-pulse rounded-full bg-status-success motion-reduce:animate-none"
/>
<span className="min-w-0 truncate">
{activity.kind === "text" ? (
diff --git a/src/components/features/chat/uploaded-file.tsx b/src/components/features/chat/uploaded-file.tsx
index 59d8930001..ea5b5e1528 100644
--- a/src/components/features/chat/uploaded-file.tsx
+++ b/src/components/features/chat/uploaded-file.tsx
@@ -17,14 +17,14 @@ export function UploadedFile({
const fileExtension = getFileExtension(file.name);
return (
- <div className="group flex gap-2 rounded-lg bg-[var(--oh-interactive-hover)] max-w-[160px] px-3 py-1 relative">
+ <div className="group flex gap-2 rounded-lg bg-interactive-hover max-w-40 px-3 py-1 relative">
<div className="flex flex-col justify-center gap-0.25">
<RemoveFileButton onClick={onRemove} />
<div className="flex items-center gap-2 w-full">
<span
className={cn(
- "text-sm font-normal leading-5 flex-1 max-w-[136px] truncate",
- isLoading ? "max-w-[108px] text-[var(--oh-muted)]" : "text-white",
+ "text-sm font-normal leading-5 flex-1 max-w-34 truncate",
+ isLoading ? "max-w-27 text-muted" : "text-white",
)}
>
{file.name}
@@ -32,7 +32,7 @@ export function UploadedFile({
</div>
<div className="flex items-center gap-2">
<FileIcon width={12} height={12} color="var(--oh-muted)" />
- <span className="text-[9px] font-normal leading-5 text-[var(--oh-muted)]">
+ <span className="text-[9px] font-normal leading-5 text-muted">
{fileExtension}
</span>
</div>
diff --git a/src/components/features/chat/uploaded-image.tsx b/src/components/features/chat/uploaded-image.tsx
index 8601a5342e..d7547331e7 100644
--- a/src/components/features/chat/uploaded-image.tsx
+++ b/src/components/features/chat/uploaded-image.tsx
@@ -34,7 +34,7 @@ export function UploadedImage({
}, [image]);
return (
- <div className="group relative flex h-[49px] w-[51px] min-h-[49px] min-w-[51px] items-center justify-center rounded-lg bg-[var(--oh-interactive-hover)]">
+ <div className="group relative flex h-12.25 w-12.75 min-h-12.25 min-w-12.75 items-center justify-center rounded-lg bg-interactive-hover">
{isLoading ? (
<LoaderCircle className="animate-spin w-5 h-5" color="white" />
) : (
diff --git a/src/components/features/chat/user-message-body.tsx b/src/components/features/chat/user-message-body.tsx
index 29f023e34d..eea81030a4 100644
--- a/src/components/features/chat/user-message-body.tsx
+++ b/src/components/features/chat/user-message-body.tsx
@@ -102,7 +102,7 @@ export function UserMessageBody({
<span
data-testid="chat-message-view-more"
className={cn(
- "pointer-events-none absolute bottom-1 left-1/2 z-10 inline-flex -translate-x-1/2 items-center rounded-full border border-[var(--oh-border-subtle)] bg-[var(--oh-surface-raised)] px-2.5 py-0.5 text-xs font-normal text-[var(--oh-foreground)] transition-opacity duration-150",
+ "pointer-events-none absolute bottom-1 left-1/2 z-10 inline-flex -translate-x-1/2 items-center rounded-full border border-border-subtle bg-surface-raised px-2.5 py-0.5 text-xs font-normal text-foreground transition-opacity duration-150",
isHovering ? "opacity-100" : "opacity-0",
)}
>
diff --git a/src/components/features/chat/workspace-mode-selector.tsx b/src/components/features/chat/workspace-mode-selector.tsx
index 694ccf1cc2..0106dc5e1f 100644
--- a/src/components/features/chat/workspace-mode-selector.tsx
+++ b/src/components/features/chat/workspace-mode-selector.tsx
@@ -76,7 +76,7 @@ export function WorkspaceModeSelector({
"border border-[rgba(71,74,84,0.50)] bg-transparent text-white",
disabled
? "cursor-not-allowed opacity-50"
- : "cursor-pointer hover:border-[var(--oh-border-subtle)]",
+ : "cursor-pointer hover:border-border-subtle",
)}
>
<span className="flex size-3 shrink-0 items-center justify-center">
@@ -93,7 +93,7 @@ export function WorkspaceModeSelector({
role="menu"
data-testid={`${testId}-menu`}
className={cn(
- "absolute left-0 top-full z-50 mt-1 min-w-[180px] rounded-lg border border-[var(--oh-border)] bg-[var(--oh-surface)] p-1 shadow-lg",
+ "absolute left-0 top-full z-50 mt-1 min-w-45 rounded-lg border border-border bg-surface p-1 shadow-lg",
dropdownMenuListClassName,
)}
>
diff --git a/src/components/features/command-menu/command-menu-trigger.tsx b/src/components/features/command-menu/command-menu-trigger.tsx
index de7c4b67c2..5c260fae0c 100644
--- a/src/components/features/command-menu/command-menu-trigger.tsx
+++ b/src/components/features/command-menu/command-menu-trigger.tsx
@@ -34,7 +34,7 @@ export function CommandMenuTrigger({ collapsed }: CommandMenuTriggerProps) {
sidebarNavRowClassName({ collapsed }),
collapsed
? "cursor-pointer"
- : "group justify-between border border-[var(--oh-border-subtle)] bg-[var(--oh-surface)]/50 hover:border-[var(--oh-border)] hover:bg-[var(--oh-surface-raised)]",
+ : "group justify-between border border-border-subtle bg-surface/50 hover:border-border hover:bg-surface-raised",
)}
>
<span className="flex min-w-0 items-center gap-2">
@@ -49,7 +49,7 @@ export function CommandMenuTrigger({ collapsed }: CommandMenuTriggerProps) {
<span
className={cn(
SIDEBAR_ICON_SLOT_CLASS,
- "text-[var(--oh-muted)] group-hover:text-white",
+ "text-muted group-hover:text-white",
)}
aria-hidden="true"
>
@@ -62,7 +62,7 @@ export function CommandMenuTrigger({ collapsed }: CommandMenuTriggerProps) {
<span className={sidebarNavLabelClassName(collapsed)}>{label}</span>
</span>
{!collapsed ? (
- <kbd className="rounded-md border border-[var(--oh-border)] bg-black/20 px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-[0.12em] text-[var(--oh-text-dim)]">
+ <kbd className="rounded-md border border-border bg-black/20 px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-[0.12em] text-text-dim">
{t(I18nKey.COMMAND_MENU$SHORTCUT)}
</kbd>
) : null}
diff --git a/src/components/features/command-menu/command-menu.tsx b/src/components/features/command-menu/command-menu.tsx
index ec36a8e609..3b48db2963 100644
--- a/src/components/features/command-menu/command-menu.tsx
+++ b/src/components/features/command-menu/command-menu.tsx
@@ -204,16 +204,16 @@ export function CommandMenu() {
<div
className={cn(
"relative flex max-h-[min(720px,78vh)] w-full max-w-2xl flex-col overflow-hidden rounded-2xl",
- "border border-[var(--oh-border)] bg-[var(--oh-surface)]",
+ "border border-border bg-surface",
"shadow-[0_24px_90px_rgba(0,0,0,0.52),0_0_0_1px_rgba(255,255,255,0.03)_inset]",
)}
>
- <div className="relative flex items-center gap-3 border-b border-[var(--oh-border)] px-4 py-3">
- <Search className="size-5 shrink-0 text-[var(--oh-text-dim)]" />
+ <div className="relative flex items-center gap-3 border-b border-border px-4 py-3">
+ <Search className="size-5 shrink-0 text-text-dim" />
<input
ref={inputRef}
id={COMMAND_MENU_SEARCH_INPUT_ID}
- className="h-11 min-w-0 flex-1 bg-transparent text-base text-white outline-none placeholder:text-[var(--oh-text-dim)]"
+ className="h-11 min-w-0 flex-1 bg-transparent text-base text-white outline-none placeholder:text-text-dim"
placeholder={t(I18nKey.COMMAND_MENU$PLACEHOLDER)}
aria-label={t(I18nKey.COMMAND_MENU$SEARCH_LABEL)}
role="combobox"
@@ -229,7 +229,7 @@ export function CommandMenu() {
{query ? (
<button
type="button"
- className="inline-flex size-8 items-center justify-center rounded-lg text-[var(--oh-muted)] hover:bg-[var(--oh-surface-raised)] hover:text-white"
+ className="inline-flex size-8 items-center justify-center rounded-lg text-muted hover:bg-surface-raised hover:text-white"
aria-label={t(I18nKey.COMMAND_MENU$CLEAR_SEARCH_LABEL)}
onClick={() => {
setQuery(EMPTY_QUERY);
@@ -239,7 +239,7 @@ export function CommandMenu() {
<X className="size-4" />
</button>
) : null}
- <kbd className="hidden rounded-md border border-[var(--oh-border)] bg-black/25 px-2 py-1 text-[11px] font-semibold uppercase tracking-[0.18em] text-[var(--oh-text-dim)] sm:inline-flex">
+ <kbd className="hidden rounded-md border border-border bg-black/25 px-2 py-1 text-[11px] font-semibold uppercase tracking-[0.18em] text-text-dim sm:inline-flex">
{t(I18nKey.COMMAND_MENU$SHORTCUT)}
</kbd>
</div>
@@ -251,13 +251,13 @@ export function CommandMenu() {
>
{filteredItems.length === 0 ? (
<div className="flex flex-col items-center justify-center gap-2 px-6 py-16 text-center">
- <div className="flex size-11 items-center justify-center rounded-2xl border border-dashed border-[var(--oh-border)] text-[var(--oh-text-dim)]">
+ <div className="flex size-11 items-center justify-center rounded-2xl border border-dashed border-border text-text-dim">
<Search className="size-5" />
</div>
<p className="text-sm font-medium text-white">
{t(I18nKey.COMMAND_MENU$NO_RESULTS_TITLE)}
</p>
- <p className="max-w-sm text-xs leading-5 text-[var(--oh-muted)]">
+ <p className="max-w-sm text-xs leading-5 text-muted">
{t(I18nKey.COMMAND_MENU$NO_RESULTS_DESCRIPTION)}
</p>
</div>
@@ -273,7 +273,7 @@ export function CommandMenu() {
return (
<section key={groupId} className="py-1">
- <div className="px-3 pb-1 pt-2 text-[11px] font-semibold uppercase tracking-[0.18em] text-[var(--oh-text-dim)]">
+ <div className="px-3 pb-1 pt-2 text-[11px] font-semibold uppercase tracking-[0.18em] text-text-dim">
{t(COMMAND_MENU_GROUP_LABELS[groupId])}
</div>
<div className="space-y-1">
@@ -294,7 +294,7 @@ export function CommandMenu() {
"group flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left transition-colors duration-150",
isActive
? "bg-white/[0.09] text-white shadow-[0_0_0_1px_rgba(255,255,255,0.08)_inset]"
- : "text-[var(--oh-muted)] hover:bg-white/[0.05] hover:text-white",
+ : "text-muted hover:bg-white/[0.05] hover:text-white",
);
const content = (
@@ -303,8 +303,8 @@ export function CommandMenu() {
className={cn(
"flex size-9 shrink-0 items-center justify-center rounded-lg border transition-colors duration-150",
isActive
- ? "border-[var(--oh-accent)] bg-[var(--oh-accent)]/15 text-white"
- : "border-[var(--oh-border)] bg-black/15 text-[var(--oh-text-dim)] group-hover:text-white",
+ ? "border-accent bg-accent/15 text-white"
+ : "border-border bg-black/15 text-text-dim group-hover:text-white",
)}
aria-hidden="true"
>
@@ -318,7 +318,7 @@ export function CommandMenu() {
t,
)}
</span>
- <span className="mt-0.5 block truncate text-xs text-[var(--oh-text-dim)]">
+ <span className="mt-0.5 block truncate text-xs text-text-dim">
{commandMenuItemCopy(
item.description,
item.descriptionKey,
@@ -326,7 +326,7 @@ export function CommandMenu() {
)}
</span>
</span>
- <span className="hidden shrink-0 rounded-md border border-[var(--oh-border)] px-2 py-1 text-[10px] font-semibold uppercase tracking-[0.14em] text-[var(--oh-text-dim)] sm:inline-flex">
+ <span className="hidden shrink-0 rounded-md border border-border px-2 py-1 text-[10px] font-semibold uppercase tracking-[0.14em] text-text-dim sm:inline-flex">
{to
? t(I18nKey.COMMAND_MENU$GO_HINT)
: t(I18nKey.COMMAND_MENU$RUN_HINT)}
@@ -386,7 +386,7 @@ export function CommandMenu() {
)}
</div>
- <div className="border-t border-[var(--oh-border)] px-4 py-2.5 text-[11px] text-[var(--oh-text-dim)]">
+ <div className="border-t border-border px-4 py-2.5 text-[11px] text-text-dim">
{t(I18nKey.COMMAND_MENU$FOOTER_HINT)}
</div>
</div>
diff --git a/src/components/features/context-menu/context-menu-icon-text-with-description.tsx b/src/components/features/context-menu/context-menu-icon-text-with-description.tsx
index 5962ad5d53..010498c2f0 100644
--- a/src/components/features/context-menu/context-menu-icon-text-with-description.tsx
+++ b/src/components/features/context-menu/context-menu-icon-text-with-description.tsx
@@ -34,7 +34,7 @@ export function ContextMenuIconTextWithDescription({
iconClassName={iconClassName}
isActive={isActive}
/>
- <Typography.Text className="text-[var(--oh-muted)] text-[10px] font-normal whitespace-pre-wrap break-words">
+ <Typography.Text className="text-muted text-[10px] font-normal whitespace-pre-wrap break-words">
{description}
</Typography.Text>
</div>
diff --git a/src/components/features/controls/agent-status.tsx b/src/components/features/controls/agent-status.tsx
index 241407d5ce..691fcb7a13 100644
--- a/src/components/features/controls/agent-status.tsx
+++ b/src/components/features/controls/agent-status.tsx
@@ -134,14 +134,14 @@ export function AgentStatus({
)}
>
<span
- className="text-[11px] text-[var(--oh-muted)] font-normal leading-5 min-w-0 max-w-full truncate"
+ className="text-[11px] text-muted font-normal leading-5 min-w-0 max-w-full truncate"
title={t(statusCode)}
>
{t(statusCode)}
</span>
<div
className={cn(
- "box-border content-stretch flex flex-row gap-[3px] items-center justify-center overflow-clip px-0.5 py-1 relative rounded-[100px] shrink-0 size-6 transition-all duration-200 active:scale-95 bg-transparent text-[var(--oh-muted)] hover:bg-white/10 hover:text-white",
+ "box-border content-stretch flex flex-row gap-0.75 items-center justify-center overflow-clip px-0.5 py-1 relative rounded-[100px] shrink-0 size-6 transition-all duration-200 active:scale-95 bg-transparent text-muted hover:bg-white/10 hover:text-white",
isInteractive ? "cursor-pointer" : "cursor-default",
)}
>
diff --git a/src/components/features/controls/tools-context-menu.tsx b/src/components/features/controls/tools-context-menu.tsx
index e149ee6dbd..523a366122 100644
--- a/src/components/features/controls/tools-context-menu.tsx
+++ b/src/components/features/controls/tools-context-menu.tsx
@@ -93,7 +93,7 @@ export function ToolsContextMenu({
testId="tools-context-menu"
position="top"
alignment="left"
- className="left-[-16px] mb-2 bottom-full overflow-visible min-w-[200px]"
+ className="left-[-16px] mb-2 bottom-full overflow-visible min-w-50"
>
{/* Switch agent profile β€” only while starting a new conversation; the
profile is locked once the conversation starts (OSS-5735). Selecting
@@ -114,7 +114,7 @@ export function ToolsContextMenu({
</ContextMenuListItem>
<div
className={cn(
- "absolute left-full top-[-4px] z-60 opacity-0 invisible pointer-events-none transition-all duration-200 ml-[1px]",
+ "absolute left-full top-[-4px] z-60 opacity-0 invisible pointer-events-none transition-all duration-200 ml-px",
"group-hover/agent-profile:opacity-100 group-hover/agent-profile:visible group-hover/agent-profile:pointer-events-auto",
"hover:opacity-100 hover:visible hover:pointer-events-auto",
activeSubmenu === "agent-profile" &&
@@ -126,7 +126,7 @@ export function ToolsContextMenu({
flat profile list + Manage link. */}
<ContextMenu
testId="agent-profile-submenu"
- className="min-w-[220px] max-w-[320px] max-h-[60vh] overflow-y-auto gap-0"
+ className="min-w-55 max-w-80 max-h-[60vh] overflow-y-auto gap-0"
>
<ChatInputProfileMenuContent
onClose={handleClose}
@@ -156,7 +156,7 @@ export function ToolsContextMenu({
{!isArchivedConversation && (
<div
className={cn(
- "absolute left-full top-[-6px] z-60 opacity-0 invisible pointer-events-none transition-all duration-200 ml-[1px]",
+ "absolute left-full top-[-6px] z-60 opacity-0 invisible pointer-events-none transition-all duration-200 ml-px",
"group-hover/git:opacity-100 group-hover/git:visible group-hover/git:pointer-events-auto",
"hover:opacity-100 hover:visible hover:pointer-events-auto",
activeSubmenu === "git" &&
@@ -187,7 +187,7 @@ export function ToolsContextMenu({
{!isArchivedConversation && (
<div
className={cn(
- "absolute left-full top-[-4px] z-60 opacity-0 invisible pointer-events-none transition-all duration-200 ml-[1px]",
+ "absolute left-full top-[-4px] z-60 opacity-0 invisible pointer-events-none transition-all duration-200 ml-px",
"group-hover/macros:opacity-100 group-hover/macros:visible group-hover/macros:pointer-events-auto",
"hover:opacity-100 hover:visible hover:pointer-events-auto",
activeSubmenu === "macros" &&
diff --git a/src/components/features/conversation-panel/advanced-conversation-options-modal.tsx b/src/components/features/conversation-panel/advanced-conversation-options-modal.tsx
index c96b5f1743..d645433215 100644
--- a/src/components/features/conversation-panel/advanced-conversation-options-modal.tsx
+++ b/src/components/features/conversation-panel/advanced-conversation-options-modal.tsx
@@ -110,7 +110,7 @@ export function AdvancedConversationOptionsModal({
<ModalBody
width="md"
className={cn(
- "relative items-start overflow-hidden border border-[var(--oh-border)]",
+ "relative items-start overflow-hidden border border-border",
MODAL_MAX_WIDTH_VIEWPORT,
)}
testID="advanced-conversation-options-modal"
@@ -134,7 +134,7 @@ export function AdvancedConversationOptionsModal({
data-testid="advanced-options-scroll-edge-top"
data-visible={scrollEdges.top ? "true" : "false"}
className={cn(
- "pointer-events-none absolute inset-x-0 top-0 z-10 h-px bg-[var(--oh-border)]",
+ "pointer-events-none absolute inset-x-0 top-0 z-10 h-px bg-border",
scrollEdges.top ? "opacity-100" : "opacity-0",
)}
/>
@@ -304,7 +304,7 @@ export function AdvancedConversationOptionsModal({
data-testid="advanced-options-scroll-edge-bottom"
data-visible={scrollEdges.bottom ? "true" : "false"}
className={cn(
- "pointer-events-none absolute inset-x-0 bottom-0 z-10 h-px bg-[var(--oh-border)]",
+ "pointer-events-none absolute inset-x-0 bottom-0 z-10 h-px bg-border",
scrollEdges.bottom ? "opacity-100" : "opacity-0",
)}
/>
diff --git a/src/components/features/conversation-panel/budget-usage-text.tsx b/src/components/features/conversation-panel/budget-usage-text.tsx
index 4fd2c716a4..e76c3b4ddf 100644
--- a/src/components/features/conversation-panel/budget-usage-text.tsx
+++ b/src/components/features/conversation-panel/budget-usage-text.tsx
@@ -16,7 +16,7 @@ export function BudgetUsageText({
return (
<div className="flex justify-end">
- <span className="text-xs text-[var(--oh-muted)]">
+ <span className="text-xs text-muted">
{t(I18nKey.CONVERSATION$BUDGET_USAGE_FORMAT, {
currentCost: `$${currentCost.toFixed(4)}`,
maxBudget: `$${maxBudget.toFixed(4)}`,
diff --git a/src/components/features/conversation-panel/cloud-new-conversation-menu.tsx b/src/components/features/conversation-panel/cloud-new-conversation-menu.tsx
index 1bc84eaa7d..7defce179f 100644
--- a/src/components/features/conversation-panel/cloud-new-conversation-menu.tsx
+++ b/src/components/features/conversation-panel/cloud-new-conversation-menu.tsx
@@ -267,8 +267,8 @@ export function CloudNewConversationMenu({
"flex items-center gap-1 rounded border px-2 py-1 text-xs",
dropdownInstantColorClassName,
isActive
- ? "border-[var(--oh-border-subtle)] bg-[var(--oh-interactive-hover)] text-white"
- : "border-transparent text-[var(--oh-text-secondary)] hover:text-white",
+ ? "border-border-subtle bg-interactive-hover text-white"
+ : "border-transparent text-text-secondary hover:text-white",
)}
>
<GitProviderIcon gitProvider={provider} />
@@ -285,7 +285,7 @@ export function CloudNewConversationMenu({
width={16}
height={16}
aria-hidden
- className="pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 text-[var(--oh-muted)]"
+ className="pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 text-muted"
/>
<input
type="text"
@@ -296,7 +296,7 @@ export function CloudNewConversationMenu({
disabled={!selectedProvider}
className={cn(
"w-full border-0 bg-transparent py-1.5 pl-6 pr-0 text-sm text-white",
- "outline-none placeholder:text-[var(--oh-muted)]",
+ "outline-none placeholder:text-muted",
"focus:outline-none focus:ring-0",
"disabled:cursor-not-allowed disabled:opacity-60",
)}
@@ -308,13 +308,13 @@ export function CloudNewConversationMenu({
<ul
className={cn(
- "max-h-[40vh] overflow-y-auto custom-scrollbar-always sm:max-h-[280px]",
+ "max-h-[40vh] overflow-y-auto custom-scrollbar-always sm:max-h-70",
dropdownMenuListClassName,
)}
>
{isListLoading && repositories.length === 0 && (
<li
- className="px-2 py-2 text-sm text-[var(--oh-muted)] italic"
+ className="px-2 py-2 text-sm text-muted italic"
data-testid="cloud-repo-loading"
>
{t(I18nKey.HOME$LOADING_REPOSITORIES)}
@@ -333,7 +333,7 @@ export function CloudNewConversationMenu({
repositories.length === 0 &&
!!selectedProvider && (
<li
- className="px-2 py-2 text-sm text-[var(--oh-muted)] italic"
+ className="px-2 py-2 text-sm text-muted italic"
data-testid="cloud-repo-empty"
>
{t(I18nKey.GITHUB$NO_RESULTS)}
@@ -357,7 +357,7 @@ export function CloudNewConversationMenu({
onClick={() => fetchNextPage()}
className={itemClass}
>
- <span className="text-[var(--oh-text-secondary)]">
+ <span className="text-text-secondary">
{isFetchingNextPage
? t(I18nKey.HOME$LOADING_MORE_REPOSITORIES)
: t(I18nKey.CONVERSATION$LOAD_MORE)}
diff --git a/src/components/features/conversation-panel/compact-conversation-row.tsx b/src/components/features/conversation-panel/compact-conversation-row.tsx
index b856175380..e6f131f364 100644
--- a/src/components/features/conversation-panel/compact-conversation-row.tsx
+++ b/src/components/features/conversation-panel/compact-conversation-row.tsx
@@ -60,7 +60,7 @@ export function CompactConversationRow({
const disableAnimation = import.meta.env.MODE === "test";
const preview = (
- <div className="w-[260px] p-3">
+ <div className="w-65 p-3">
<div className="flex items-center gap-2 mb-1">
<ConversationStatusDot
executionStatus={executionStatus}
@@ -93,7 +93,7 @@ export function CompactConversationRow({
content={preview}
placement="right"
closeDelay={100}
- className="bg-[var(--oh-surface)] text-white border border-[var(--oh-border-subtle)] shadow-xl p-0"
+ className="bg-surface text-white border border-border-subtle shadow-xl p-0"
disableAnimation={disableAnimation}
>
<NavigationLink
@@ -106,9 +106,7 @@ export function CompactConversationRow({
cn(
"flex items-center justify-center w-10 h-9 mx-auto rounded-md",
"transition-colors cursor-pointer",
- navActive || isActive
- ? "bg-tertiary"
- : "hover:bg-[var(--oh-surface-raised)]",
+ navActive || isActive ? "bg-tertiary" : "hover:bg-surface-raised",
)
}
>
diff --git a/src/components/features/conversation-panel/confirm-archive-modal.tsx b/src/components/features/conversation-panel/confirm-archive-modal.tsx
index 639cb45c6b..ecbecd11cf 100644
--- a/src/components/features/conversation-panel/confirm-archive-modal.tsx
+++ b/src/components/features/conversation-panel/confirm-archive-modal.tsx
@@ -36,7 +36,7 @@ export function ConfirmArchiveModal({
return (
<ModalBackdrop onClose={onCancel}>
- <ModalBody className="items-start border border-[var(--oh-border)]">
+ <ModalBody className="items-start border border-border">
<div className="flex flex-col gap-2">
<BaseModalTitle title={t(I18nKey.CONVERSATION$CONFIRM_ARCHIVE)} />
<BaseModalDescription>{confirmationMessage}</BaseModalDescription>
diff --git a/src/components/features/conversation-panel/confirm-delete-modal.tsx b/src/components/features/conversation-panel/confirm-delete-modal.tsx
index 127fc75aed..dfd90ec3e8 100644
--- a/src/components/features/conversation-panel/confirm-delete-modal.tsx
+++ b/src/components/features/conversation-panel/confirm-delete-modal.tsx
@@ -44,7 +44,7 @@ export function ConfirmDeleteModal({
return (
<ModalBackdrop onClose={onCancel}>
- <ModalBody className="items-start border border-[var(--oh-border)]">
+ <ModalBody className="items-start border border-border">
<div className="flex flex-col gap-2">
<BaseModalTitle
title={title ?? t(I18nKey.CONVERSATION$CONFIRM_DELETE)}
diff --git a/src/components/features/conversation-panel/confirm-stop-modal.tsx b/src/components/features/conversation-panel/confirm-stop-modal.tsx
index f536fd532f..178fe9a7ae 100644
--- a/src/components/features/conversation-panel/confirm-stop-modal.tsx
+++ b/src/components/features/conversation-panel/confirm-stop-modal.tsx
@@ -21,7 +21,7 @@ export function ConfirmStopModal({
return (
<ModalBackdrop onClose={onCancel}>
- <ModalBody className="items-start border border-[var(--oh-border)]">
+ <ModalBody className="items-start border border-border">
<div className="flex flex-col gap-2">
<BaseModalTitle
title={t(I18nKey.CONVERSATION$CONFIRM_CLOSE_CONVERSATION)}
diff --git a/src/components/features/conversation-panel/conversation-active-tag-filters.tsx b/src/components/features/conversation-panel/conversation-active-tag-filters.tsx
index c892b05ff2..061878d7dd 100644
--- a/src/components/features/conversation-panel/conversation-active-tag-filters.tsx
+++ b/src/components/features/conversation-panel/conversation-active-tag-filters.tsx
@@ -47,17 +47,14 @@ export function ConversationActiveTagFilters({
}
const chipClassName =
- "flex min-w-0 max-w-full cursor-pointer items-center gap-1 rounded-full bg-[var(--oh-surface)] px-2 py-0.5 text-[10px] leading-4 text-white hover:bg-white/10";
+ "flex min-w-0 max-w-full cursor-pointer items-center gap-1 rounded-full bg-surface px-2 py-0.5 text-[10px] leading-4 text-white hover:bg-white/10";
return (
<div
data-testid="conversation-active-tag-filters"
- className="flex min-w-0 items-start gap-1.5 border-b border-[var(--oh-border)] px-4 py-1.5"
+ className="flex min-w-0 items-start gap-1.5 border-b border-border px-4 py-1.5"
>
- <Tag
- className="mt-1 h-3 w-3 shrink-0 text-[var(--oh-muted)]"
- aria-hidden
- />
+ <Tag className="mt-1 h-3 w-3 shrink-0 text-muted" aria-hidden />
<div className="flex min-w-0 flex-1 flex-wrap items-center gap-1">
{selectedFacets.map((facet) => (
@@ -96,7 +93,7 @@ export function ConversationActiveTagFilters({
type="button"
data-testid="clear-tag-filters"
onClick={onClearAll}
- className="shrink-0 cursor-pointer text-[10px] leading-5 text-[var(--oh-muted)] hover:text-white"
+ className="shrink-0 cursor-pointer text-[10px] leading-5 text-muted hover:text-white"
>
{t(I18nKey.CONVERSATION_PANEL$CLEAR_FILTERS)}
</button>
diff --git a/src/components/features/conversation-panel/conversation-card/conversation-card-context-menu.tsx b/src/components/features/conversation-panel/conversation-card/conversation-card-context-menu.tsx
index d36182329c..e067fd01ad 100644
--- a/src/components/features/conversation-panel/conversation-card/conversation-card-context-menu.tsx
+++ b/src/components/features/conversation-panel/conversation-card/conversation-card-context-menu.tsx
@@ -98,7 +98,7 @@ export function ConversationCardContextMenu({
spacing={isPortaled ? "none" : "default"}
className={
isPortaled
- ? "mt-0 min-w-[200px] w-max max-w-[min(280px,100vw-16px)]"
+ ? "mt-0 min-w-50 w-max max-w-[min(280px,100vw-16px)]"
: "z-[200] mt-0"
}
>
diff --git a/src/components/features/conversation-panel/conversation-card/conversation-card-footer.tsx b/src/components/features/conversation-panel/conversation-card/conversation-card-footer.tsx
index f1bb2d5689..829340b2ff 100644
--- a/src/components/features/conversation-panel/conversation-card/conversation-card-footer.tsx
+++ b/src/components/features/conversation-panel/conversation-card/conversation-card-footer.tsx
@@ -131,7 +131,7 @@ export function ConversationCardFooter({
// Match title text start: 18px status column + gap-2 (8px).
const metadataIndentClass =
- executionStatus !== undefined ? "pl-[26px]" : undefined;
+ executionStatus !== undefined ? "pl-6.5" : undefined;
const displayTags = showTags ? getDisplayConversationTags(tags) : [];
@@ -156,7 +156,7 @@ export function ConversationCardFooter({
))}
<div className="flex items-center gap-2 shrink-0 ml-auto">
{showTimestamp && (createdAt ?? lastUpdatedAt) && (
- <p className="text-xs text-[var(--oh-muted)] text-right">
+ <p className="text-xs text-muted text-right">
<time>
{`${formatTimeDelta(lastUpdatedAt ?? createdAt)} ${t(I18nKey.CONVERSATION$AGO)}`}
</time>
diff --git a/src/components/features/conversation-panel/conversation-card/conversation-card-header.tsx b/src/components/features/conversation-panel/conversation-card/conversation-card-header.tsx
index 1113367967..00999b82eb 100644
--- a/src/components/features/conversation-panel/conversation-card/conversation-card-header.tsx
+++ b/src/components/features/conversation-panel/conversation-card/conversation-card-header.tsx
@@ -23,7 +23,7 @@ export function ConversationCardHeader({
return (
<div className="flex items-center gap-2 flex-1 min-w-0 overflow-hidden">
{executionStatus !== undefined && (
- <div className="flex w-[18px] shrink-0 items-center justify-center">
+ <div className="flex w-4.5 shrink-0 items-center justify-center">
<ConversationStatusDot
executionStatus={executionStatus}
sandboxStatus={sandboxStatus}
diff --git a/src/components/features/conversation-panel/conversation-card/conversation-card-meta-chip.ts b/src/components/features/conversation-panel/conversation-card/conversation-card-meta-chip.ts
index c8674fe7ec..7e6c96ca58 100644
--- a/src/components/features/conversation-panel/conversation-card/conversation-card-meta-chip.ts
+++ b/src/components/features/conversation-panel/conversation-card/conversation-card-meta-chip.ts
@@ -4,7 +4,7 @@
* footer reads as one chip system.
*/
export const CONVERSATION_CARD_META_CHIP_CLASSNAME =
- "inline-flex max-w-full min-w-0 shrink-0 items-center gap-0.5 rounded-sm bg-[var(--oh-surface-raised)] px-1 py-px text-[10px] leading-4 text-[var(--oh-muted)]";
+ "inline-flex max-w-full min-w-0 shrink-0 items-center gap-0.5 rounded-sm bg-surface-raised px-1 py-px text-[10px] leading-4 text-muted";
/**
* Fixed line-height icon slot matching ``leading-4`` chip text so Lucide /
diff --git a/src/components/features/conversation-panel/conversation-card/conversation-card-preview.tsx b/src/components/features/conversation-panel/conversation-card/conversation-card-preview.tsx
index 315283065a..6ed6ccab07 100644
--- a/src/components/features/conversation-panel/conversation-card/conversation-card-preview.tsx
+++ b/src/components/features/conversation-panel/conversation-card/conversation-card-preview.tsx
@@ -57,10 +57,10 @@ interface PreviewRowProps {
function PreviewRow({ label, children }: PreviewRowProps) {
return (
<div className="flex items-start gap-2 text-xs leading-4">
- <span className="w-20 shrink-0 whitespace-normal break-words text-[var(--oh-muted)]">
+ <span className="w-20 shrink-0 whitespace-normal break-words text-muted">
{label}
</span>
- <span className="min-w-0 flex-1 overflow-visible whitespace-normal break-words text-[var(--oh-foreground)]">
+ <span className="min-w-0 flex-1 overflow-visible whitespace-normal break-words text-foreground">
{children}
</span>
</div>
@@ -134,7 +134,7 @@ export function ConversationCardPreview({
return (
<div
data-testid="conversation-card-preview"
- className="flex w-[280px] max-w-[min(280px,90vw)] flex-col gap-3 overflow-visible p-3"
+ className="flex w-70 max-w-[min(280px,90vw)] flex-col gap-3 overflow-visible p-3"
>
<div className="flex items-start gap-2">
{executionStatus !== undefined ? (
diff --git a/src/components/features/conversation-panel/conversation-card/conversation-card.tsx b/src/components/features/conversation-panel/conversation-card/conversation-card.tsx
index 275e7af170..792ed86070 100644
--- a/src/components/features/conversation-panel/conversation-card/conversation-card.tsx
+++ b/src/components/features/conversation-panel/conversation-card/conversation-card.tsx
@@ -219,7 +219,7 @@ export function ConversationCard({
onClick={handleTogglePin}
className={cn(
"flex shrink-0 cursor-pointer items-center justify-center rounded-md p-1",
- "text-[var(--oh-muted)] hover:bg-white/10 hover:text-white",
+ "text-muted hover:bg-white/10 hover:text-white",
)}
>
<Pin
@@ -253,8 +253,8 @@ export function ConversationCard({
onClick={onClick}
className={cn(
"group relative h-auto w-full cursor-pointer rounded-md py-1 pl-2 pr-1 transition-colors",
- !contextMenuOpen && "hover:bg-[var(--oh-surface)]",
- (isActive || contextMenuOpen) && "bg-[var(--oh-surface)]",
+ !contextMenuOpen && "hover:bg-surface",
+ (isActive || contextMenuOpen) && "bg-surface",
)}
>
<div className="flex items-center w-full min-w-0">
@@ -287,7 +287,7 @@ export function ConversationCard({
{!showPersistentPinIcon && (createdAt ?? lastUpdatedAt) && (
<p
className={cn(
- "text-xs text-[var(--oh-muted)] text-right whitespace-nowrap transition-opacity -translate-x-1.5",
+ "text-xs text-muted text-right whitespace-nowrap transition-opacity -translate-x-1.5",
hasHoverActions && hoverRevealYieldClassName(contextMenuOpen),
)}
>
@@ -330,7 +330,7 @@ export function ConversationCard({
<p
className={cn(
"pointer-events-none absolute inset-0 items-center justify-end",
- "text-xs text-[var(--oh-muted)] whitespace-nowrap -translate-x-1.5",
+ "text-xs text-muted whitespace-nowrap -translate-x-1.5",
hoverRevealPinnedTimestampClassName(contextMenuOpen),
)}
>
diff --git a/src/components/features/conversation-panel/conversation-card/conversation-status-badges.tsx b/src/components/features/conversation-panel/conversation-card/conversation-status-badges.tsx
index 9e0c837556..c3e05c0cc5 100644
--- a/src/components/features/conversation-panel/conversation-card/conversation-status-badges.tsx
+++ b/src/components/features/conversation-panel/conversation-card/conversation-status-badges.tsx
@@ -9,7 +9,7 @@ export function ConversationStatusBadges() {
return (
<span
data-testid="error-badge"
- className="flex items-center gap-1 px-1.5 py-0.5 bg-[var(--oh-status-error)] text-white text-xs font-medium rounded-full"
+ className="flex items-center gap-1 px-1.5 py-0.5 bg-status-error text-white text-xs font-medium rounded-full"
>
<CircleErrorIcon className="text-white w-3 h-3" />
<span>{t(I18nKey.COMMON$ERROR)}</span>
diff --git a/src/components/features/conversation-panel/conversation-card/conversation-tag-chips.tsx b/src/components/features/conversation-panel/conversation-card/conversation-tag-chips.tsx
index b1a006f5ef..9621e98db0 100644
--- a/src/components/features/conversation-panel/conversation-card/conversation-tag-chips.tsx
+++ b/src/components/features/conversation-panel/conversation-card/conversation-tag-chips.tsx
@@ -228,7 +228,7 @@ export function ConversationTagChips({ tags }: ConversationTagChipsProps) {
<div
ref={measureRef}
aria-hidden
- className="pointer-events-none fixed top-0 -left-[10000px] z-[-1] flex flex-nowrap items-center gap-1 opacity-0"
+ className="pointer-events-none fixed top-0 -left-2500 z-[-1] flex flex-nowrap items-center gap-1 opacity-0"
>
{tags.map(([key, value]) => (
<span key={key} className={CONVERSATION_CARD_META_CHIP_CLASSNAME}>
@@ -275,7 +275,7 @@ export function ConversationTagChips({ tags }: ConversationTagChipsProps) {
onClick={activateOverflow}
className={cn(
CONVERSATION_CARD_META_CHIP_CLASSNAME,
- "shrink-0 self-center hover:bg-[var(--oh-interactive-hover)] hover:text-[var(--foreground)]",
+ "shrink-0 self-center hover:bg-interactive-hover hover:text-foreground",
)}
>
{/* Match chip height (icon slot + label) so +N shares the same centerline. */}
@@ -297,8 +297,8 @@ export function ConversationTagChips({ tags }: ConversationTagChipsProps) {
data-testid="conversation-card-tag-overflow-popover"
className={cn(
"z-[9999] min-w-[10rem] max-w-[16rem]",
- "rounded-md border border-[var(--oh-border-subtle)]",
- "bg-[var(--oh-surface)] p-2 shadow-lg",
+ "rounded-md border border-border-subtle",
+ "bg-surface p-2 shadow-lg",
)}
style={{
position: "fixed",
@@ -318,14 +318,14 @@ export function ConversationTagChips({ tags }: ConversationTagChipsProps) {
data-testid="conversation-card-tag-overflow-row"
className="grid grid-cols-[minmax(0,auto)_minmax(0,1fr)] gap-x-2 text-[10px] leading-4"
>
- <dt className="m-0 inline-flex min-w-0 items-center gap-1 whitespace-normal break-words text-[var(--oh-muted)]">
+ <dt className="m-0 inline-flex min-w-0 items-center gap-1 whitespace-normal break-words text-muted">
<TagIconSlot icon={getConversationTagIcon(key, value)} />
<span className="min-w-0 whitespace-normal break-words leading-4">
{getConversationTagLabel(key, t)}
</span>
</dt>
<dd
- className="m-0 whitespace-normal break-words text-left leading-4 text-[var(--foreground)]"
+ className="m-0 whitespace-normal break-words text-left leading-4 text-foreground"
title={value}
>
{value}
diff --git a/src/components/features/conversation-panel/conversation-group-folder-row.tsx b/src/components/features/conversation-panel/conversation-group-folder-row.tsx
index db72f939ae..4a153ede7a 100644
--- a/src/components/features/conversation-panel/conversation-group-folder-row.tsx
+++ b/src/components/features/conversation-panel/conversation-group-folder-row.tsx
@@ -87,7 +87,7 @@ export function ConversationGroupFolderRow({
aria-hidden
data-testid={`thread-folder-drop-indicator-${groupTestIdSuffix}`}
className={cn(
- "pointer-events-none absolute inset-x-0 z-10 h-0.5 rounded-full bg-[var(--oh-accent)]",
+ "pointer-events-none absolute inset-x-0 z-10 h-0.5 rounded-full bg-accent",
dropIndicatorPosition === "before" ? "-top-0.5" : "-bottom-0.5",
)}
/>
@@ -100,7 +100,7 @@ export function ConversationGroupFolderRow({
<div
className={cn(
"flex h-8 w-full min-w-0 items-center gap-0.5 rounded-md pl-2 pr-1 text-sm font-normal",
- "text-[var(--oh-muted)] transition-colors hover:bg-[var(--oh-surface-raised)] hover:text-white",
+ "text-muted transition-colors hover:bg-surface-raised hover:text-white",
)}
>
<button
@@ -161,7 +161,7 @@ export function ConversationGroupFolderRow({
}}
className={cn(
"group/folder flex min-h-8 min-w-0 flex-1 cursor-grab items-center gap-2 rounded-md py-1 text-left text-inherit outline-none active:cursor-grabbing",
- "focus-visible:ring-1 focus-visible:ring-[var(--oh-border)]",
+ "focus-visible:ring-1 focus-visible:ring-border",
)}
>
<Folder
@@ -190,7 +190,7 @@ export function ConversationGroupFolderRow({
"inline-flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded-md",
"text-inherit transition-colors",
"hover:bg-white/10 hover:text-white",
- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--oh-border)]",
+ "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-border",
"disabled:cursor-not-allowed disabled:opacity-50",
)}
disabled={isCreatingConversationFlow}
@@ -226,7 +226,7 @@ export function ConversationGroupFolderRow({
type="button"
data-testid={`thread-folder-view-more-${groupTestIdSuffix}`}
onClick={onTogglePreviewExpanded}
- className="cursor-pointer text-xs text-[var(--oh-text-dim)] hover:text-white"
+ className="cursor-pointer text-xs text-text-dim hover:text-white"
>
{isShowingAll
? t(I18nKey.CONVERSATION_PANEL$LESS)
diff --git a/src/components/features/conversation-panel/conversation-layouts-menu.tsx b/src/components/features/conversation-panel/conversation-layouts-menu.tsx
index df231e8388..2750a154d8 100644
--- a/src/components/features/conversation-panel/conversation-layouts-menu.tsx
+++ b/src/components/features/conversation-panel/conversation-layouts-menu.tsx
@@ -190,7 +190,7 @@ export function ConversationLayoutsMenu({
aria-expanded={menuOpen}
onClick={() => setMenuOpen(!menuOpen)}
className={cn(
- "relative inline-flex h-7 w-7 items-center justify-center rounded-md text-[var(--oh-muted)] hover:text-white hover:bg-[var(--oh-surface-raised)]",
+ "relative inline-flex h-7 w-7 items-center justify-center rounded-md text-muted hover:text-white hover:bg-surface-raised",
dropdownInstantColorClassName,
)}
>
@@ -212,7 +212,7 @@ export function ConversationLayoutsMenu({
data-testid="conversation-layouts-menu"
onKeyDown={handleMenuKeyDown}
className={cn(
- "absolute right-0 top-full z-50 mt-0 w-64 rounded-md border border-[var(--oh-border-subtle)] bg-tertiary px-1 py-1 text-[var(--oh-foreground)] shadow-lg",
+ "absolute right-0 top-full z-50 mt-0 w-64 rounded-md border border-border-subtle bg-tertiary px-1 py-1 text-foreground shadow-lg",
dropdownMenuListClassName,
dropdownMenuViewportScrollClassName,
)}
@@ -256,7 +256,7 @@ export function ConversationLayoutsMenu({
) : (
<p
data-testid="tag-filters-empty"
- className="px-2 py-1 text-[11px] text-[var(--oh-muted)]/70"
+ className="px-2 py-1 text-[11px] text-muted/70"
>
{t(I18nKey.CONVERSATION_PANEL$NO_VISIBLE_TAGS)}
</p>
diff --git a/src/components/features/conversation-panel/conversation-panel-new-thread-picker.tsx b/src/components/features/conversation-panel/conversation-panel-new-thread-picker.tsx
index c575c67031..78f8e9dc52 100644
--- a/src/components/features/conversation-panel/conversation-panel-new-thread-picker.tsx
+++ b/src/components/features/conversation-panel/conversation-panel-new-thread-picker.tsx
@@ -8,9 +8,9 @@ import { CloudNewConversationMenu } from "./cloud-new-conversation-menu";
const triggerClassName = cn(
"inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md",
- "text-[var(--oh-muted)] transition-colors",
- "hover:bg-[var(--oh-surface-raised)] hover:text-white",
- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--oh-border)]",
+ "text-muted transition-colors",
+ "hover:bg-surface-raised hover:text-white",
+ "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-border",
"disabled:cursor-not-allowed disabled:opacity-50",
);
diff --git a/src/components/features/conversation-panel/conversation-panel-pinned-section.tsx b/src/components/features/conversation-panel/conversation-panel-pinned-section.tsx
index fac8302693..093f35e4bd 100644
--- a/src/components/features/conversation-panel/conversation-panel-pinned-section.tsx
+++ b/src/components/features/conversation-panel/conversation-panel-pinned-section.tsx
@@ -40,12 +40,10 @@ export function ConversationPanelPinnedSection({
data-testid="conversation-panel-pinned-section"
className={cn(
"pt-1",
- showDivider
- ? "mb-2 border-b border-[var(--oh-border-subtle)] pb-2"
- : "pb-2",
+ showDivider ? "mb-2 border-b border-border-subtle pb-2" : "pb-2",
)}
>
- <h3 className="flex items-center gap-1.5 py-1.5 pl-2 text-sm font-normal text-[var(--oh-muted)]">
+ <h3 className="flex items-center gap-1.5 py-1.5 pl-2 text-sm font-normal text-muted">
<Pin className="h-3.5 w-3.5 shrink-0" aria-hidden />
{t(I18nKey.CONVERSATION_PANEL$PINNED)}
</h3>
@@ -58,7 +56,7 @@ export function ConversationPanelPinnedSection({
type="button"
data-testid="conversation-panel-pinned-view-more"
onClick={onTogglePreviewExpanded}
- className="cursor-pointer text-xs text-[var(--oh-text-dim)] hover:text-white"
+ className="cursor-pointer text-xs text-text-dim hover:text-white"
>
{isShowingAll
? t(I18nKey.CONVERSATION_PANEL$LESS)
diff --git a/src/components/features/conversation-panel/conversation-panel.tsx b/src/components/features/conversation-panel/conversation-panel.tsx
index 70759260f0..24d5d7c152 100644
--- a/src/components/features/conversation-panel/conversation-panel.tsx
+++ b/src/components/features/conversation-panel/conversation-panel.tsx
@@ -903,7 +903,7 @@ export function ConversationPanel({
!showHoverMetadata || openContextMenuId === conversation.id
}
disableAnimation={import.meta.env.MODE === "test"}
- className="max-w-none overflow-visible rounded-xl border border-[var(--oh-border)] bg-base-secondary p-0 text-white shadow-xl"
+ className="max-w-none overflow-visible rounded-xl border border-border bg-base-secondary p-0 text-white shadow-xl"
content={
<ConversationCardPreview
title={conversation.title ?? ""}
@@ -931,11 +931,10 @@ export function ConversationPanel({
onClick={onClose}
className={cn(
"block rounded-md transition-colors",
- openContextMenuId !== conversation.id &&
- "hover:bg-[var(--oh-surface)]",
+ openContextMenuId !== conversation.id && "hover:bg-surface",
(conversation.id === currentConversationId ||
openContextMenuId === conversation.id) &&
- "bg-[var(--oh-surface)]",
+ "bg-surface",
)}
>
<ConversationCard
@@ -1064,14 +1063,14 @@ export function ConversationPanel({
// Pull flush to the sidebar edges: `-ml-2.5` matches aside `pl-2.5`;
// width extends by that inset on the right now that aside is `pr-0`.
"-ml-2.5 w-[calc(100%+0.625rem)] max-w-none box-border border-b",
- isListScrolled ? "border-[var(--oh-border)]" : "border-transparent",
+ isListScrolled ? "border-border" : "border-transparent",
)}
>
<div
data-testid="older-conversations-summary"
- className="flex min-w-0 flex-nowrap items-center gap-x-2 py-2 pl-4 pr-2.5 text-[var(--oh-muted)]"
+ className="flex min-w-0 flex-nowrap items-center gap-x-2 py-2 pl-4 pr-2.5 text-muted"
>
- <span className="min-w-0 truncate text-sm font-medium text-[var(--oh-muted)]">
+ <span className="min-w-0 truncate text-sm font-medium text-muted">
{t(I18nKey.SIDEBAR$CONVERSATIONS)}
</span>
<div className="ml-auto flex shrink-0 items-center gap-0.5">
@@ -1123,7 +1122,7 @@ export function ConversationPanel({
data-testid="conversation-panel-empty-state"
className="flex min-h-0 flex-1 flex-col items-center justify-center px-4 py-8"
>
- <p className="text-xs text-[var(--oh-muted)]">
+ <p className="text-xs text-muted">
{t(
emptyDueToAutomationFilter
? I18nKey.CONVERSATION_PANEL$NO_AUTOMATION_MATCHES
@@ -1219,7 +1218,7 @@ export function ConversationPanel({
type="button"
data-testid="load-more-conversations"
onClick={requestLoadMore}
- className="text-xs text-[var(--oh-muted)] hover:text-white"
+ className="text-xs text-muted hover:text-white"
>
{t(I18nKey.CONVERSATION$LOAD_MORE)}
</button>
diff --git a/src/components/features/conversation-panel/conversation-status-dot.tsx b/src/components/features/conversation-panel/conversation-status-dot.tsx
index 0899128678..c4c25c83d5 100644
--- a/src/components/features/conversation-panel/conversation-status-dot.tsx
+++ b/src/components/features/conversation-panel/conversation-status-dot.tsx
@@ -66,7 +66,7 @@ function renderIndicator(visual: Visual) {
<svg
data-testid="conversation-status-check"
viewBox="0 0 12 12"
- className="w-2.5 h-2.5 stroke-[var(--oh-status-success)]"
+ className="w-2.5 h-2.5 stroke-status-success"
fill="none"
strokeWidth={2.25}
strokeLinecap="round"
@@ -80,35 +80,35 @@ function renderIndicator(visual: Visual) {
return (
<span
data-testid="conversation-status-working"
- className="w-1.5 h-1.5 rounded-full animate-pulse bg-[var(--oh-status-success)]"
+ className="w-1.5 h-1.5 rounded-full animate-pulse bg-status-success"
/>
);
case "active":
return (
<span
data-testid="conversation-status-active"
- className="w-1.5 h-1.5 rounded-full bg-[var(--oh-status-success)]"
+ className="w-1.5 h-1.5 rounded-full bg-status-success"
/>
);
case "paused":
return (
<span
data-testid="conversation-status-paused"
- className="w-1.5 h-1.5 rounded-full bg-[var(--oh-muted)]"
+ className="w-1.5 h-1.5 rounded-full bg-muted"
/>
);
case "error":
return (
<span
data-testid="conversation-status-error"
- className="w-1.5 h-1.5 rounded-full bg-[var(--oh-status-error)]"
+ className="w-1.5 h-1.5 rounded-full bg-status-error"
/>
);
default:
return (
<span
data-testid="conversation-status-unknown"
- className="w-1.5 h-1.5 rounded-full bg-[var(--oh-color-tertiary)]"
+ className="w-1.5 h-1.5 rounded-full bg-tertiary"
/>
);
}
@@ -138,7 +138,7 @@ export function ConversationStatusDot({
<FaArchive
data-testid="conversation-status-archived"
size={10}
- className="shrink-0 text-[var(--oh-muted)] opacity-60"
+ className="shrink-0 text-muted opacity-60"
aria-hidden
/>
) : (
diff --git a/src/components/features/conversation-panel/edit-conversation-tags-modal.tsx b/src/components/features/conversation-panel/edit-conversation-tags-modal.tsx
index 660a6ba963..7485c2787f 100644
--- a/src/components/features/conversation-panel/edit-conversation-tags-modal.tsx
+++ b/src/components/features/conversation-panel/edit-conversation-tags-modal.tsx
@@ -154,7 +154,7 @@ export function EditConversationTagsModal({
return (
<ModalBackdrop onClose={onCancel}>
<ModalBody
- className="items-start border border-[var(--oh-border)]"
+ className="items-start border border-border"
testID="edit-conversation-tags-modal"
>
<div className="flex flex-col gap-2">
@@ -176,7 +176,7 @@ export function EditConversationTagsModal({
{rows.map((row) => (
<li
key={row.key}
- className="flex items-center gap-2 rounded-md border border-[var(--oh-border)] px-2 py-1"
+ className="flex items-center gap-2 rounded-md border border-border px-2 py-1"
data-testid={`edit-tag-row-${row.key}`}
>
<span className="min-w-0 flex-1 truncate text-xs text-white">
@@ -187,7 +187,7 @@ export function EditConversationTagsModal({
aria-label={t(I18nKey.CONVERSATION$REMOVE_TAG)}
data-testid={`remove-tag-${row.key}`}
onClick={() => handleRemove(row.key)}
- className="shrink-0 text-[var(--oh-muted)] hover:text-white"
+ className="shrink-0 text-muted hover:text-white"
>
<X className="h-3.5 w-3.5" aria-hidden />
</button>
@@ -206,7 +206,7 @@ export function EditConversationTagsModal({
ref={keyInputRef}
onChange={(event) => setNewKey(event.target.value)}
onKeyDown={handleInputKeyDown}
- className="w-28 shrink-0 rounded-md border border-[var(--oh-border)] bg-base-secondary px-2 py-1 text-xs text-white placeholder:text-[var(--oh-muted)]"
+ className="w-28 shrink-0 rounded-md border border-border bg-base-secondary px-2 py-1 text-xs text-white placeholder:text-muted"
/>
<input
type="text"
@@ -216,7 +216,7 @@ export function EditConversationTagsModal({
data-testid="new-tag-value-input"
onChange={(event) => setNewValue(event.target.value)}
onKeyDown={handleInputKeyDown}
- className="min-w-0 flex-1 rounded-md border border-[var(--oh-border)] bg-base-secondary px-2 py-1 text-xs text-white placeholder:text-[var(--oh-muted)]"
+ className="min-w-0 flex-1 rounded-md border border-border bg-base-secondary px-2 py-1 text-xs text-white placeholder:text-muted"
/>
<BrandButton
type="button"
diff --git a/src/components/features/conversation-panel/ellipsis-button.tsx b/src/components/features/conversation-panel/ellipsis-button.tsx
index 8e8e381f5b..c3b835d29a 100644
--- a/src/components/features/conversation-panel/ellipsis-button.tsx
+++ b/src/components/features/conversation-panel/ellipsis-button.tsx
@@ -55,7 +55,7 @@ export const EllipsisButton = React.forwardRef<
className={cn(
"p-1 rounded-md cursor-pointer",
formControlTransitionClassName,
- "text-[var(--oh-muted)]",
+ "text-muted",
formControlMutedHoverClassName,
"flex items-center justify-center",
className,
diff --git a/src/components/features/conversation-panel/hide-older-conversations-row.tsx b/src/components/features/conversation-panel/hide-older-conversations-row.tsx
index d17ff91550..f68fbb431f 100644
--- a/src/components/features/conversation-panel/hide-older-conversations-row.tsx
+++ b/src/components/features/conversation-panel/hide-older-conversations-row.tsx
@@ -60,11 +60,7 @@ export function HideOlderConversationsRow() {
toggleShowOlderConversations();
}
}}
- className={cn(
- "group",
- dropdownMenuRowClassName,
- "text-[var(--oh-foreground)]",
- )}
+ className={cn("group", dropdownMenuRowClassName, "text-foreground")}
>
<EyeOff
className={cn("h-3.5 w-3.5", dropdownMenuRowIconClassName)}
@@ -88,7 +84,7 @@ export function HideOlderConversationsRow() {
emphasizeNonDefault={false}
triggerClassName={cn(
"h-7 gap-1 rounded py-0 pl-2 pr-1.5 font-normal",
- "text-[var(--oh-foreground)] [&_svg]:h-3 [&_svg]:w-3 [&_svg]:text-[var(--oh-muted)]",
+ "text-foreground [&_svg]:h-3 [&_svg]:w-3 [&_svg]:text-muted",
)}
/>
</div>
diff --git a/src/components/features/conversation-panel/hook-event-item.tsx b/src/components/features/conversation-panel/hook-event-item.tsx
index 82a4c4228f..144a7a2215 100644
--- a/src/components/features/conversation-panel/hook-event-item.tsx
+++ b/src/components/features/conversation-panel/hook-event-item.tsx
@@ -21,7 +21,7 @@ const EVENT_TYPE_I18N_KEYS: Record<string, I18nKey> = {
};
const HOOK_PILL_CLASS =
- "inline-flex shrink-0 items-center rounded-full px-2 py-0.5 text-[11px] font-medium leading-4 border border-[var(--oh-border)] bg-[var(--oh-surface)] text-tertiary-light";
+ "inline-flex shrink-0 items-center rounded-full px-2 py-0.5 text-[11px] font-medium leading-4 border border-border bg-surface text-tertiary-light";
const HOOK_COUNT_I18N_KEY = "HOOKS_MODAL$HOOK_COUNT";
@@ -55,7 +55,7 @@ export function HookEventItem({
<span className={HOOK_PILL_CLASS}>
{t(HOOK_COUNT_I18N_KEY, { count: totalHooks })}
</span>
- <Typography.Text className="text-[var(--oh-text-tertiary)]">
+ <Typography.Text className="text-text-tertiary">
{isExpanded ? (
<ChevronDown size={18} />
) : (
@@ -66,8 +66,8 @@ export function HookEventItem({
</button>
{isExpanded && (
- <div className="border-t border-[var(--oh-border)] px-3 pt-3 pb-3">
- <div className="divide-y divide-[var(--oh-border)]">
+ <div className="border-t border-border px-3 pt-3 pb-3">
+ <div className="divide-y divide-border">
{hookEvent.matchers.map((matcher, index) => (
<HookMatcherContent
key={`${hookEvent.event_type}-${matcher.matcher}-${index}`}
diff --git a/src/components/features/conversation-panel/hook-matcher-content.tsx b/src/components/features/conversation-panel/hook-matcher-content.tsx
index 8a6b7f3063..3c95f3d630 100644
--- a/src/components/features/conversation-panel/hook-matcher-content.tsx
+++ b/src/components/features/conversation-panel/hook-matcher-content.tsx
@@ -9,7 +9,7 @@ interface HookMatcherContentProps {
}
const HOOK_PILL_CLASS =
- "inline-flex items-center rounded-full px-2 py-0.5 text-[11px] font-medium leading-4 border border-[var(--oh-border)] bg-[var(--oh-surface)] text-tertiary-light";
+ "inline-flex items-center rounded-full px-2 py-0.5 text-[11px] font-medium leading-4 border border-border bg-surface text-tertiary-light";
export function HookMatcherContent({ matcher }: HookMatcherContentProps) {
const { t } = useTranslation("openhands");
@@ -17,14 +17,14 @@ export function HookMatcherContent({ matcher }: HookMatcherContentProps) {
return (
<div className="py-3">
<div className="mb-2">
- <Typography.Text className="text-sm font-semibold text-[var(--oh-text-tertiary)]">
+ <Typography.Text className="text-sm font-semibold text-text-tertiary">
{t(I18nKey.HOOKS_MODAL$MATCHER)}
</Typography.Text>
<span className={`ml-2 ${HOOK_PILL_CLASS}`}>{matcher.matcher}</span>
</div>
<div className="mt-2">
- <Typography.Text className="text-sm font-semibold text-[var(--oh-text-tertiary)] mb-2">
+ <Typography.Text className="text-sm font-semibold text-text-tertiary mb-2">
{t(I18nKey.HOOKS_MODAL$COMMANDS)}
</Typography.Text>
{(matcher.hooks ?? []).map((hook, index) => (
@@ -37,11 +37,11 @@ export function HookMatcherContent({ matcher }: HookMatcherContentProps) {
borderRadius="medium"
maxHeight="small"
overflow="auto"
- className="border border-[var(--oh-border)] bg-base text-[var(--oh-text-tertiary)]"
+ className="border border-border bg-base text-text-tertiary"
>
{hook.command}
</Pre>
- <div className="mt-2 flex flex-wrap gap-2 text-xs text-[var(--oh-muted)]">
+ <div className="mt-2 flex flex-wrap gap-2 text-xs text-muted">
<span className={HOOK_PILL_CLASS}>
{t(I18nKey.HOOKS_MODAL$TYPE, { type: hook.type })}
</span>
diff --git a/src/components/features/conversation-panel/hooks-empty-state.tsx b/src/components/features/conversation-panel/hooks-empty-state.tsx
index bc14c25641..735c7c5d7c 100644
--- a/src/components/features/conversation-panel/hooks-empty-state.tsx
+++ b/src/components/features/conversation-panel/hooks-empty-state.tsx
@@ -11,7 +11,7 @@ export function HooksEmptyState({ isError }: HooksEmptyStateProps) {
return (
<div className="flex items-center justify-center h-full p-4">
- <Typography.Text className="text-[var(--oh-muted)]">
+ <Typography.Text className="text-muted">
{isError
? t(I18nKey.COMMON$FETCH_ERROR)
: t(I18nKey.CONVERSATION$NO_HOOKS)}
diff --git a/src/components/features/conversation-panel/hooks-modal-header.tsx b/src/components/features/conversation-panel/hooks-modal-header.tsx
index 949727e136..74390a90f2 100644
--- a/src/components/features/conversation-panel/hooks-modal-header.tsx
+++ b/src/components/features/conversation-panel/hooks-modal-header.tsx
@@ -32,7 +32,7 @@ export function HooksModalHeader({
<div className="flex w-full items-start justify-between gap-4 pr-10">
<div className="flex min-w-0 flex-1 flex-col gap-2">
<BaseModalTitle title={t(I18nKey.HOOKS_MODAL$TITLE)} />
- <Typography.Text className="text-sm text-[var(--oh-muted)]">
+ <Typography.Text className="text-sm text-muted">
{t(I18nKey.HOOKS_MODAL$WARNING)}
</Typography.Text>
</div>
diff --git a/src/components/features/conversation-panel/hooks-modal.tsx b/src/components/features/conversation-panel/hooks-modal.tsx
index 33926799fd..1566b27362 100644
--- a/src/components/features/conversation-panel/hooks-modal.tsx
+++ b/src/components/features/conversation-panel/hooks-modal.tsx
@@ -42,7 +42,7 @@ export function HooksModal({ onClose }: HooksModalProps) {
<ModalBackdrop onClose={onClose}>
<ModalBody
width="lg"
- className="relative max-h-[80vh] flex flex-col items-start border border-[var(--oh-border)]"
+ className="relative max-h-[80vh] flex flex-col items-start border border-border"
testID="hooks-modal"
>
<HooksModalHeader
@@ -52,7 +52,7 @@ export function HooksModal({ onClose }: HooksModalProps) {
onClose={onClose}
/>
- <div className="w-full h-[60vh] overflow-auto rounded-md border border-[var(--oh-border)] bg-surface-raised custom-scrollbar-always">
+ <div className="w-full h-[60vh] overflow-auto rounded-md border border-border bg-surface-raised custom-scrollbar-always">
{!isAgentReady ? (
<RuntimeWaitingState testId="hooks-runtime-waiting" />
) : isLoading ? (
@@ -60,7 +60,7 @@ export function HooksModal({ onClose }: HooksModalProps) {
) : isError || !hooks || hooks.length === 0 ? (
<HooksEmptyState isError={isError} />
) : (
- <div className="divide-y divide-[var(--oh-border)]">
+ <div className="divide-y divide-border">
{hooks.map((hookEvent) => {
const isExpanded =
expandedEvents[hookEvent.event_type] || false;
diff --git a/src/components/features/conversation-panel/local-new-conversation-menu.tsx b/src/components/features/conversation-panel/local-new-conversation-menu.tsx
index 349bd0b829..64f6e32eb9 100644
--- a/src/components/features/conversation-panel/local-new-conversation-menu.tsx
+++ b/src/components/features/conversation-panel/local-new-conversation-menu.tsx
@@ -210,7 +210,7 @@ export function LocalNewConversationMenu({
>
<ul
className={cn(
- "max-h-[40vh] overflow-y-auto sm:max-h-[280px]",
+ "max-h-[40vh] overflow-y-auto sm:max-h-70",
dropdownMenuListClassName,
)}
>
@@ -222,7 +222,7 @@ export function LocalNewConversationMenu({
onClick={() => launch()}
className={itemClass}
>
- <span className="text-[var(--oh-muted)]">
+ <span className="text-muted">
{t(I18nKey.HOME$NO_WORKSPACE_OPTION)}
</span>
</button>
diff --git a/src/components/features/conversation-panel/menu-heading.tsx b/src/components/features/conversation-panel/menu-heading.tsx
index 31d067da33..5893c47d51 100644
--- a/src/components/features/conversation-panel/menu-heading.tsx
+++ b/src/components/features/conversation-panel/menu-heading.tsx
@@ -3,7 +3,7 @@ import { cn } from "#/utils/utils";
const MENU_SECTION_HEADING_PADDING = "px-2 pb-1 pt-1";
const MENU_SECTION_HEADING_TEXT =
- "text-[11px] font-semibold uppercase tracking-wide text-[var(--oh-muted)]";
+ "text-[11px] font-semibold uppercase tracking-wide text-muted";
export function MenuHeading({
children,
diff --git a/src/components/features/conversation-panel/menu-row.tsx b/src/components/features/conversation-panel/menu-row.tsx
index 95c3971898..b8f9fcae1c 100644
--- a/src/components/features/conversation-panel/menu-row.tsx
+++ b/src/components/features/conversation-panel/menu-row.tsx
@@ -53,7 +53,7 @@ export function MenuRow({
"group",
dropdownMenuRowClassName,
"disabled:opacity-50",
- destructive ? "text-danger" : "text-[var(--oh-foreground)]",
+ destructive ? "text-danger" : "text-foreground",
)}
>
<Icon
@@ -68,7 +68,7 @@ export function MenuRow({
<span className="min-w-0 flex-1">
<span className="block truncate">{label}</span>
{sublabel ? (
- <span className="block truncate text-[10px] text-[var(--oh-muted)]/70">
+ <span className="block truncate text-[10px] text-muted/70">
{sublabel}
</span>
) : null}
diff --git a/src/components/features/conversation-panel/new-conversation-dropdown-styles.ts b/src/components/features/conversation-panel/new-conversation-dropdown-styles.ts
index 5e4bb3b371..8b2c6eaef7 100644
--- a/src/components/features/conversation-panel/new-conversation-dropdown-styles.ts
+++ b/src/components/features/conversation-panel/new-conversation-dropdown-styles.ts
@@ -3,6 +3,6 @@ import { dropdownMenuListGapClassName } from "#/utils/dropdown-classes";
/** Match conversation panel filter and other sidebar menus */
export const NEW_CONVERSATION_DROPDOWN_SURFACE = cn(
- "z-50 flex flex-col rounded-md border border-[var(--oh-border-subtle)] bg-tertiary px-1 py-1 text-white shadow-lg",
+ "z-50 flex flex-col rounded-md border border-border-subtle bg-tertiary px-1 py-1 text-white shadow-lg",
dropdownMenuListGapClassName,
);
diff --git a/src/components/features/conversation-panel/plugins-modal.tsx b/src/components/features/conversation-panel/plugins-modal.tsx
index 8c23198591..caf752bb06 100644
--- a/src/components/features/conversation-panel/plugins-modal.tsx
+++ b/src/components/features/conversation-panel/plugins-modal.tsx
@@ -32,26 +32,26 @@ export function PluginsModal({ onClose }: PluginsModalProps) {
<ModalBackdrop onClose={onClose}>
<ModalBody
width="lg"
- className="relative flex max-h-[80vh] flex-col items-start border border-[var(--oh-border)]"
+ className="relative flex max-h-[80vh] flex-col items-start border border-border"
testID="plugins-modal"
>
<ModalCloseButton onClose={onClose} testId="close-plugins-modal" />
<div className="flex w-full flex-col gap-2 pr-10">
<BaseModalTitle title={t(I18nKey.PLUGINS_MODAL$TITLE)} />
- <Typography.Text className="text-sm text-[var(--oh-muted)]">
+ <Typography.Text className="text-sm text-muted">
{t(I18nKey.PLUGINS_MODAL$DESCRIPTION)}
</Typography.Text>
</div>
- <div className="w-full overflow-auto rounded-md border border-[var(--oh-border)] bg-surface-raised custom-scrollbar-always">
+ <div className="w-full overflow-auto rounded-md border border-border bg-surface-raised custom-scrollbar-always">
{plugins.length === 0 ? (
<div className="flex items-center justify-center p-6">
- <Typography.Text className="text-[var(--oh-muted)]">
+ <Typography.Text className="text-muted">
{t(I18nKey.PLUGINS_MODAL$EMPTY)}
</Typography.Text>
</div>
) : (
- <ul className="divide-y divide-[var(--oh-border)]">
+ <ul className="divide-y divide-border">
{plugins.map((plugin) => (
<li
key={pluginReferenceKey(plugin)}
diff --git a/src/components/features/conversation-panel/runtime-waiting-state.tsx b/src/components/features/conversation-panel/runtime-waiting-state.tsx
index 4aca9735c0..ea596b5583 100644
--- a/src/components/features/conversation-panel/runtime-waiting-state.tsx
+++ b/src/components/features/conversation-panel/runtime-waiting-state.tsx
@@ -26,7 +26,7 @@ export function RuntimeWaitingState({
)}
>
<LoadingSpinner size="small" />
- <Typography.Text className="text-sm text-[var(--oh-muted)]">
+ <Typography.Text className="text-sm text-muted">
{t(messageKey)}
</Typography.Text>
</div>
diff --git a/src/components/features/conversation-panel/skill-content.tsx b/src/components/features/conversation-panel/skill-content.tsx
index 0883f5287c..57ecb4ca48 100644
--- a/src/components/features/conversation-panel/skill-content.tsx
+++ b/src/components/features/conversation-panel/skill-content.tsx
@@ -12,7 +12,7 @@ export function SkillContent({ content }: SkillContentProps) {
return (
<div className="mt-2">
- <Typography.Text className="text-sm font-semibold text-[var(--oh-text-tertiary)] mb-2">
+ <Typography.Text className="text-sm font-semibold text-text-tertiary mb-2">
{t(I18nKey.COMMON$CONTENT)}
</Typography.Text>
<Pre
@@ -23,7 +23,7 @@ export function SkillContent({ content }: SkillContentProps) {
borderRadius="medium"
maxHeight="small"
overflow="auto"
- className="mt-2 border border-[var(--oh-border)] bg-base text-[var(--oh-text-tertiary)]"
+ className="mt-2 border border-border bg-base text-text-tertiary"
>
{content || t(I18nKey.SKILLS_MODAL$NO_CONTENT)}
</Pre>
diff --git a/src/components/features/conversation-panel/skill-item.tsx b/src/components/features/conversation-panel/skill-item.tsx
index e088fcd787..edc80b93af 100644
--- a/src/components/features/conversation-panel/skill-item.tsx
+++ b/src/components/features/conversation-panel/skill-item.tsx
@@ -17,7 +17,7 @@ const SKILL_TYPE_LABEL: Record<SkillInfo["type"], string> = {
};
const SKILL_PILL_CLASS =
- "inline-flex shrink-0 items-center rounded-full px-2 py-0.5 text-[11px] font-medium leading-4 border border-[var(--oh-border)] bg-[var(--oh-surface)] text-tertiary-light";
+ "inline-flex shrink-0 items-center rounded-full px-2 py-0.5 text-[11px] font-medium leading-4 border border-border bg-surface text-tertiary-light";
export function SkillItem({ skill, isExpanded, onToggle }: SkillItemProps) {
return (
@@ -36,7 +36,7 @@ export function SkillItem({ skill, isExpanded, onToggle }: SkillItemProps) {
<span className={SKILL_PILL_CLASS}>
{SKILL_TYPE_LABEL[skill.type]}
</span>
- <Typography.Text className="text-[var(--oh-text-tertiary)]">
+ <Typography.Text className="text-text-tertiary">
{isExpanded ? (
<ChevronDown size={18} />
) : (
@@ -47,7 +47,7 @@ export function SkillItem({ skill, isExpanded, onToggle }: SkillItemProps) {
</button>
{isExpanded && (
- <div className="px-3 pb-3 pt-1 border-t border-[var(--oh-border)]">
+ <div className="px-3 pb-3 pt-1 border-t border-border">
<SkillTriggers triggers={skill.triggers ?? []} />
<SkillContent content={skill.content ?? ""} />
</div>
diff --git a/src/components/features/conversation-panel/skill-triggers.tsx b/src/components/features/conversation-panel/skill-triggers.tsx
index cf04d35d35..209717a804 100644
--- a/src/components/features/conversation-panel/skill-triggers.tsx
+++ b/src/components/features/conversation-panel/skill-triggers.tsx
@@ -15,14 +15,14 @@ export function SkillTriggers({ triggers }: SkillTriggersProps) {
return (
<div className="mt-2 mb-3">
- <Typography.Text className="text-sm font-semibold text-[var(--oh-text-tertiary)] mb-2">
+ <Typography.Text className="text-sm font-semibold text-text-tertiary mb-2">
{t(I18nKey.COMMON$TRIGGERS)}
</Typography.Text>
<div className="mt-2 flex flex-wrap gap-1">
{triggers.map((trigger) => (
<span
key={trigger}
- className="inline-flex items-center rounded-full px-2 py-0.5 text-[11px] font-medium leading-4 border border-[var(--oh-border)] bg-[var(--oh-surface)] text-tertiary-light"
+ className="inline-flex items-center rounded-full px-2 py-0.5 text-[11px] font-medium leading-4 border border-border bg-surface text-tertiary-light"
>
{trigger}
</span>
diff --git a/src/components/features/conversation-panel/skills-empty-state.tsx b/src/components/features/conversation-panel/skills-empty-state.tsx
index 79b3dbec90..28b36e7e42 100644
--- a/src/components/features/conversation-panel/skills-empty-state.tsx
+++ b/src/components/features/conversation-panel/skills-empty-state.tsx
@@ -11,7 +11,7 @@ export function SkillsEmptyState({ isError }: SkillsEmptyStateProps) {
return (
<div className="flex items-center justify-center h-full p-4">
- <Typography.Text className="text-[var(--oh-muted)]">
+ <Typography.Text className="text-muted">
{isError
? t(I18nKey.COMMON$FETCH_ERROR)
: t(I18nKey.CONVERSATION$NO_SKILLS)}
diff --git a/src/components/features/conversation-panel/skills-modal-header.tsx b/src/components/features/conversation-panel/skills-modal-header.tsx
index ace489e8db..8af2ed003c 100644
--- a/src/components/features/conversation-panel/skills-modal-header.tsx
+++ b/src/components/features/conversation-panel/skills-modal-header.tsx
@@ -32,7 +32,7 @@ export function SkillsModalHeader({
<div className="flex w-full items-start justify-between gap-4 pr-10">
<div className="flex min-w-0 flex-1 flex-col gap-2">
<BaseModalTitle title={t(I18nKey.SKILLS_MODAL$TITLE)} />
- <Typography.Text className="text-sm text-[var(--oh-muted)]">
+ <Typography.Text className="text-sm text-muted">
{t(I18nKey.SKILLS_MODAL$WARNING)}
</Typography.Text>
</div>
diff --git a/src/components/features/conversation-panel/skills-modal-section.tsx b/src/components/features/conversation-panel/skills-modal-section.tsx
index f88d10e7ae..8819943a4d 100644
--- a/src/components/features/conversation-panel/skills-modal-section.tsx
+++ b/src/components/features/conversation-panel/skills-modal-section.tsx
@@ -14,17 +14,17 @@ export function SkillsModalSection({
}: SkillsModalSectionProps) {
return (
<section className="w-full">
- <div className="sticky top-0 z-10 border-b border-[var(--oh-border)] bg-surface-raised px-3 py-2">
+ <div className="sticky top-0 z-10 border-b border-border bg-surface-raised px-3 py-2">
<div className="flex items-center justify-between gap-2">
<Typography.Text className="text-xs font-medium tracking-[0.01em] text-tertiary-light">
{title}
</Typography.Text>
- <span className="inline-flex shrink-0 items-center rounded-full px-2 py-0.5 text-[11px] font-medium leading-4 border border-[var(--oh-border)] bg-[var(--oh-surface)] text-tertiary-light">
+ <span className="inline-flex shrink-0 items-center rounded-full px-2 py-0.5 text-[11px] font-medium leading-4 border border-border bg-surface text-tertiary-light">
{count}
</span>
</div>
</div>
- <div className="divide-y divide-[var(--oh-border)]">{children}</div>
+ <div className="divide-y divide-border">{children}</div>
</section>
);
}
diff --git a/src/components/features/conversation-panel/skills-modal.tsx b/src/components/features/conversation-panel/skills-modal.tsx
index 2dee4f6130..07f9d66605 100644
--- a/src/components/features/conversation-panel/skills-modal.tsx
+++ b/src/components/features/conversation-panel/skills-modal.tsx
@@ -67,7 +67,7 @@ export function SkillsModal({ onClose }: SkillsModalProps) {
<ModalBackdrop onClose={onClose}>
<ModalBody
width="lg"
- className="relative max-h-[80vh] flex flex-col items-start border border-[var(--oh-border)]"
+ className="relative max-h-[80vh] flex flex-col items-start border border-border"
testID="skills-modal"
>
<SkillsModalHeader
@@ -77,14 +77,14 @@ export function SkillsModal({ onClose }: SkillsModalProps) {
onClose={onClose}
/>
- <div className="w-full h-[60vh] overflow-auto rounded-md border border-[var(--oh-border)] bg-surface-raised custom-scrollbar-always">
+ <div className="w-full h-[60vh] overflow-auto rounded-md border border-border bg-surface-raised custom-scrollbar-always">
{isLoading ? (
<SkillsLoadingState />
) : isError || !skills || visibleSkills.length === 0 ? (
<SkillsEmptyState isError={isError} />
) : (
groupedSkills && (
- <div className="divide-y divide-[var(--oh-border)]">
+ <div className="divide-y divide-border">
{SKILL_SCOPE_ORDER.map((scope) => {
const scopedSkills = groupedSkills[scope];
if (scopedSkills.length === 0) {
diff --git a/src/components/features/conversation-panel/start-task-card/start-task-card-footer.tsx b/src/components/features/conversation-panel/start-task-card/start-task-card-footer.tsx
index dabd2d173c..06ef04dce7 100644
--- a/src/components/features/conversation-panel/start-task-card/start-task-card-footer.tsx
+++ b/src/components/features/conversation-panel/start-task-card/start-task-card-footer.tsx
@@ -29,7 +29,7 @@ export function StartTaskCardFooter({
<NoRepository />
)}
{createdAt && (
- <p className="text-xs text-[var(--oh-muted)] flex-1 text-right">
+ <p className="text-xs text-muted flex-1 text-right">
<time>
{`${formatTimeDelta(createdAt)} ${t(I18nKey.CONVERSATION$AGO)}`}
</time>
@@ -39,9 +39,7 @@ export function StartTaskCardFooter({
{/* Task Detail */}
{detail && (
- <div className="text-xs text-[var(--oh-text-subtle)] truncate">
- {detail}
- </div>
+ <div className="text-xs text-text-subtle truncate">{detail}</div>
)}
</div>
);
diff --git a/src/components/features/conversation-panel/start-task-card/start-task-card.tsx b/src/components/features/conversation-panel/start-task-card/start-task-card.tsx
index a956471a04..b9a0da110a 100644
--- a/src/components/features/conversation-panel/start-task-card/start-task-card.tsx
+++ b/src/components/features/conversation-panel/start-task-card/start-task-card.tsx
@@ -30,7 +30,7 @@ export function StartTaskCard({ task, onClick }: StartTaskCardProps) {
data-testid="start-task-card"
onClick={onClick}
className={cn(
- "relative h-auto w-full p-3.5 border-b border-[var(--oh-border)] cursor-pointer",
+ "relative h-auto w-full p-3.5 border-b border-border cursor-pointer",
"hover:bg-tertiary",
)}
>
diff --git a/src/components/features/conversation-panel/start-task-card/start-task-status-indicator.tsx b/src/components/features/conversation-panel/start-task-card/start-task-status-indicator.tsx
index c260e2cd33..b6d1ebb4d9 100644
--- a/src/components/features/conversation-panel/start-task-card/start-task-status-indicator.tsx
+++ b/src/components/features/conversation-panel/start-task-card/start-task-status-indicator.tsx
@@ -23,7 +23,7 @@ export function StartTaskStatusIndicator({
case "STARTING_CONVERSATION":
return "bg-yellow-500 animate-pulse";
default:
- return "bg-[var(--oh-interactive-selected)]";
+ return "bg-interactive-selected";
}
};
diff --git a/src/components/features/conversation-panel/system-message-modal.tsx b/src/components/features/conversation-panel/system-message-modal.tsx
index c4a87b7e0d..5ba500ba3f 100644
--- a/src/components/features/conversation-panel/system-message-modal.tsx
+++ b/src/components/features/conversation-panel/system-message-modal.tsx
@@ -38,7 +38,7 @@ export function SystemMessageModal({
<ModalBackdrop onClose={onClose}>
<ModalBody
width="lg"
- className="relative max-h-[80vh] flex flex-col items-start border border-[var(--oh-border)]"
+ className="relative max-h-[80vh] flex flex-col items-start border border-border"
testID="system-message-modal"
>
<SystemMessageHeader
@@ -56,7 +56,7 @@ export function SystemMessageModal({
}
/>
- <div className="h-[60vh] overflow-auto rounded-md border border-[var(--oh-border)] bg-surface-raised custom-scrollbar-always">
+ <div className="h-[60vh] overflow-auto rounded-md border border-border bg-surface-raised custom-scrollbar-always">
<TabContent
activeTab={activeTab}
systemMessage={systemMessage}
diff --git a/src/components/features/conversation-panel/system-message-modal/empty-tools-state.tsx b/src/components/features/conversation-panel/system-message-modal/empty-tools-state.tsx
index f0177a9000..32e2f41f51 100644
--- a/src/components/features/conversation-panel/system-message-modal/empty-tools-state.tsx
+++ b/src/components/features/conversation-panel/system-message-modal/empty-tools-state.tsx
@@ -7,7 +7,7 @@ export function EmptyToolsState() {
return (
<div className="flex items-center justify-center h-full p-4">
- <Typography.Text className="text-[var(--oh-muted)]">
+ <Typography.Text className="text-muted">
{t(I18nKey.SYSTEM_MESSAGE_MODAL$NO_TOOLS)}
</Typography.Text>
</div>
diff --git a/src/components/features/conversation-panel/system-message-modal/system-message-content.tsx b/src/components/features/conversation-panel/system-message-modal/system-message-content.tsx
index f10330c2ff..8b7678a18b 100644
--- a/src/components/features/conversation-panel/system-message-modal/system-message-content.tsx
+++ b/src/components/features/conversation-panel/system-message-modal/system-message-content.tsx
@@ -11,7 +11,7 @@ export function SystemMessageContent({ content }: SystemMessageContentProps) {
font="mono"
lineHeight="relaxed"
padding="medium"
- className="text-[var(--oh-text-tertiary)]"
+ className="text-text-tertiary"
>
{content}
</Pre>
diff --git a/src/components/features/conversation-panel/system-message-modal/system-message-header.tsx b/src/components/features/conversation-panel/system-message-modal/system-message-header.tsx
index 57706aaf24..533cf30c1b 100644
--- a/src/components/features/conversation-panel/system-message-modal/system-message-header.tsx
+++ b/src/components/features/conversation-panel/system-message-modal/system-message-header.tsx
@@ -26,7 +26,7 @@ export function SystemMessageHeader({
<div className="flex flex-col gap-2">
{agentClass && (
<div className="text-sm">
- <Typography.Text className="font-semibold text-[var(--oh-text-tertiary)]">
+ <Typography.Text className="font-semibold text-text-tertiary">
{t(I18nKey.SYSTEM_MESSAGE_MODAL$AGENT_CLASS)}
</Typography.Text>{" "}
<Typography.Text className="font-medium text-content-2">
@@ -36,7 +36,7 @@ export function SystemMessageHeader({
)}
{openhandsVersion && (
<div className="text-sm">
- <Typography.Text className="font-semibold text-[var(--oh-text-tertiary)]">
+ <Typography.Text className="font-semibold text-text-tertiary">
{t(I18nKey.SYSTEM_MESSAGE_MODAL$OPENHANDS_VERSION)}
</Typography.Text>{" "}
<Typography.Text className="text-content-2">
diff --git a/src/components/features/conversation-panel/system-message-modal/tab-button.tsx b/src/components/features/conversation-panel/system-message-modal/tab-button.tsx
index 649cd77b08..f3d7ed5cd3 100644
--- a/src/components/features/conversation-panel/system-message-modal/tab-button.tsx
+++ b/src/components/features/conversation-panel/system-message-modal/tab-button.tsx
@@ -23,7 +23,7 @@ export function TabButton({
"px-4 py-2 font-normal border-b-2 transition-colors",
isActive
? "border-foreground text-foreground"
- : "border-transparent text-[var(--oh-muted)] hover:text-[var(--oh-foreground)]",
+ : "border-transparent text-muted hover:text-foreground",
disabled && "opacity-50 cursor-not-allowed",
className,
)}
diff --git a/src/components/features/conversation-panel/system-message-modal/tab-navigation.tsx b/src/components/features/conversation-panel/system-message-modal/tab-navigation.tsx
index d2820298f4..4c2de87817 100644
--- a/src/components/features/conversation-panel/system-message-modal/tab-navigation.tsx
+++ b/src/components/features/conversation-panel/system-message-modal/tab-navigation.tsx
@@ -16,10 +16,7 @@ export function TabNavigation({
const { t } = useTranslation("openhands");
return (
- <div
- className="mb-2 flex border-b border-[var(--oh-border)]"
- role="tablist"
- >
+ <div className="mb-2 flex border-b border-border" role="tablist">
<TabButton
isActive={activeTab === "system"}
onClick={() => onTabChange("system")}
diff --git a/src/components/features/conversation-panel/system-message-modal/toggle-button.tsx b/src/components/features/conversation-panel/system-message-modal/toggle-button.tsx
index 83e0fed901..bb3123d97f 100644
--- a/src/components/features/conversation-panel/system-message-modal/toggle-button.tsx
+++ b/src/components/features/conversation-panel/system-message-modal/toggle-button.tsx
@@ -30,7 +30,7 @@ export function ToggleButton({
{title}
</Typography.Text>
</div>
- <Typography.Text className="text-[var(--oh-text-tertiary)]">
+ <Typography.Text className="text-text-tertiary">
{isExpanded ? <ChevronDown size={18} /> : <ChevronRight size={18} />}
</Typography.Text>
</button>
diff --git a/src/components/features/conversation-panel/system-message-modal/tool-item.tsx b/src/components/features/conversation-panel/system-message-modal/tool-item.tsx
index 6749088229..3fcc1a6068 100644
--- a/src/components/features/conversation-panel/system-message-modal/tool-item.tsx
+++ b/src/components/features/conversation-panel/system-message-modal/tool-item.tsx
@@ -73,8 +73,8 @@ export function ToolItem({ tool, index, isExpanded, onToggle }: ToolItemProps) {
/>
{isExpanded && (
- <div className="px-3 pb-3 pt-1 border-t border-[var(--oh-border)]">
- <div className="mt-2 mb-3 text-sm text-[var(--oh-text-tertiary)] leading-relaxed">
+ <div className="px-3 pb-3 pt-1 border-t border-border">
+ <div className="mt-2 mb-3 text-sm text-text-tertiary leading-relaxed">
<MarkdownRenderer>{String(description)}</MarkdownRenderer>
</div>
diff --git a/src/components/features/conversation-panel/system-message-modal/tool-parameters.tsx b/src/components/features/conversation-panel/system-message-modal/tool-parameters.tsx
index 9bb4081632..a732361dfd 100644
--- a/src/components/features/conversation-panel/system-message-modal/tool-parameters.tsx
+++ b/src/components/features/conversation-panel/system-message-modal/tool-parameters.tsx
@@ -13,10 +13,10 @@ export function ToolParameters({ parameters }: ToolParametersProps) {
return (
<div className="mt-2" data-testid="tool-parameters">
- <Typography.Text className="text-sm font-semibold text-[var(--oh-text-tertiary)]">
+ <Typography.Text className="text-sm font-semibold text-text-tertiary">
{t(I18nKey.SYSTEM_MESSAGE_MODAL$PARAMETERS)}
</Typography.Text>
- <div className="text-sm mt-2 p-3 bg-base rounded-md overflow-auto text-[var(--oh-text-tertiary)] max-h-[400px] border border-[var(--oh-border)]">
+ <div className="text-sm mt-2 p-3 bg-base rounded-md overflow-auto text-text-tertiary max-h-100 border border-border">
<ReactJsonView name={false} src={parameters} theme={JSON_VIEW_THEME} />
</div>
</div>
diff --git a/src/components/features/conversation-panel/system-message-modal/tools-list.tsx b/src/components/features/conversation-panel/system-message-modal/tools-list.tsx
index e94b686543..8a86047a32 100644
--- a/src/components/features/conversation-panel/system-message-modal/tools-list.tsx
+++ b/src/components/features/conversation-panel/system-message-modal/tools-list.tsx
@@ -13,7 +13,7 @@ export function ToolsList({
onToggleTool,
}: ToolsListProps) {
return (
- <div className="divide-y divide-[var(--oh-border)]">
+ <div className="divide-y divide-border">
{tools.map((tool, index) => (
<ToolItem
key={index}
diff --git a/src/components/features/conversation/conversation-git-actions-toggle.tsx b/src/components/features/conversation/conversation-git-actions-toggle.tsx
index 04e2f4033f..9120e615f6 100644
--- a/src/components/features/conversation/conversation-git-actions-toggle.tsx
+++ b/src/components/features/conversation/conversation-git-actions-toggle.tsx
@@ -20,7 +20,7 @@ const GIT_ACTIONS_BUTTON_CLASSNAME = cn(
"rounded-md text-xs font-normal leading-none",
formControlBorderClassName,
formControlTransitionClassName,
- "text-[var(--oh-muted)]",
+ "text-muted",
formControlMutedHoverClassName,
"disabled:cursor-not-allowed disabled:opacity-30",
);
@@ -75,9 +75,9 @@ export function ConversationGitActionsToggle({
disabled={isArchivedConversation}
className={cn(
GIT_ACTIONS_BUTTON_CLASSNAME,
- isGitMenuOpen && "bg-white/10 text-[var(--oh-foreground)]",
+ isGitMenuOpen && "bg-white/10 text-foreground",
isArchivedConversation &&
- "cursor-not-allowed opacity-50 hover:bg-transparent hover:text-[var(--oh-muted)]",
+ "cursor-not-allowed opacity-50 hover:bg-transparent hover:text-muted",
className,
)}
aria-expanded={isGitMenuOpen}
diff --git a/src/components/features/conversation/conversation-loading.tsx b/src/components/features/conversation/conversation-loading.tsx
index 8466a58cec..cd7a8fb79d 100644
--- a/src/components/features/conversation/conversation-loading.tsx
+++ b/src/components/features/conversation/conversation-loading.tsx
@@ -14,7 +14,7 @@ export function ConversationLoading({ className }: ConversationLoadingProps) {
return (
<div
className={cn(
- "bg-[var(--oh-surface)] flex h-full w-full flex-col items-center justify-center gap-3",
+ "bg-surface flex h-full w-full flex-col items-center justify-center gap-3",
className,
)}
>
diff --git a/src/components/features/conversation/conversation-main/chat-interface-wrapper.tsx b/src/components/features/conversation/conversation-main/chat-interface-wrapper.tsx
index f1e2c96888..2c82de4e13 100644
--- a/src/components/features/conversation/conversation-main/chat-interface-wrapper.tsx
+++ b/src/components/features/conversation/conversation-main/chat-interface-wrapper.tsx
@@ -15,7 +15,7 @@ interface ChatInterfaceWrapperProps {
}
const THREAD_CLASSNAME =
- "w-full min-w-0 max-w-[800px] h-full flex flex-col min-h-0";
+ "w-full min-w-0 max-w-200 h-full flex flex-col min-h-0";
export function ChatInterfaceWrapper({
isRightPanelShown: _isRightPanelShown,
diff --git a/src/components/features/conversation/conversation-main/conversation-main.tsx b/src/components/features/conversation/conversation-main/conversation-main.tsx
index 0b0999e692..24562a6a2a 100644
--- a/src/components/features/conversation/conversation-main/conversation-main.tsx
+++ b/src/components/features/conversation/conversation-main/conversation-main.tsx
@@ -118,10 +118,10 @@ export function ConversationMain() {
}}
>
<div className="flex h-full w-full flex-col">
- <div className="flex flex-col flex-1 min-h-0 bg-[var(--oh-surface)] border-l border-[var(--oh-border)] overflow-hidden">
+ <div className="flex flex-col flex-1 min-h-0 bg-surface border-l border-border overflow-hidden">
<div
data-testid="tabs-pane-header"
- className="flex shrink-0 flex-col border-b border-[var(--oh-border)]"
+ className="flex shrink-0 flex-col border-b border-border"
>
<ConversationTabs isPanelResizing={isDragging} />
</div>
diff --git a/src/components/features/conversation/conversation-main/conversation-mobile-panel-page.tsx b/src/components/features/conversation/conversation-main/conversation-mobile-panel-page.tsx
index e13705ed97..f003e89511 100644
--- a/src/components/features/conversation/conversation-main/conversation-mobile-panel-page.tsx
+++ b/src/components/features/conversation/conversation-main/conversation-mobile-panel-page.tsx
@@ -37,10 +37,10 @@ export function ConversationMobilePanelPage({
};
return (
- <div className="flex h-full min-h-0 flex-col bg-[var(--oh-surface)]">
+ <div className="flex h-full min-h-0 flex-col bg-surface">
<div
data-testid="conversation-mobile-panel-top"
- className="flex h-10 min-h-10 shrink-0 items-center gap-1.5 border-b border-[var(--oh-border)] pl-2.5"
+ className="flex h-10 min-h-10 shrink-0 items-center gap-1.5 border-b border-border pl-2.5"
>
<button
type="button"
@@ -65,7 +65,7 @@ export function ConversationMobilePanelPage({
</div>
</div>
</div>
- <div className="flex min-h-0 flex-1 flex-col bg-[var(--oh-surface)]">
+ <div className="flex min-h-0 flex-1 flex-col bg-surface">
<ConversationTabContent />
</div>
</div>
diff --git a/src/components/features/conversation/conversation-name-context-menu.tsx b/src/components/features/conversation/conversation-name-context-menu.tsx
index e834c06839..ef3accbfdc 100644
--- a/src/components/features/conversation/conversation-name-context-menu.tsx
+++ b/src/components/features/conversation/conversation-name-context-menu.tsx
@@ -273,11 +273,8 @@ export function ConversationNameContextMenu({
)}
{shouldShowPublicSharing && onTogglePublic && (
- <li className="flex w-full items-center gap-2 rounded px-2 py-2 hover:bg-[var(--oh-interactive-hover)]">
- <span
- className="flex shrink-0 items-center text-[var(--oh-muted)]"
- aria-hidden
- >
+ <li className="flex w-full items-center gap-2 rounded px-2 py-2 hover:bg-interactive-hover">
+ <span className="flex shrink-0 items-center text-muted" aria-hidden>
<Share2 size={16} />
</span>
<span className="min-w-0 flex-1 truncate text-sm">
@@ -290,7 +287,7 @@ export function ConversationNameContextMenu({
type="button"
data-testid="copy-share-link-button"
onClick={onCopyShareLink}
- className="rounded p-0.5 text-[var(--oh-muted)] hover:bg-[var(--oh-interactive-selected)] hover:text-[var(--oh-foreground)] cursor-pointer [&_svg]:text-current"
+ className="rounded p-0.5 text-muted hover:bg-interactive-selected hover:text-foreground cursor-pointer [&_svg]:text-current"
title={t(I18nKey.BUTTON$COPY_TO_CLIPBOARD)}
>
<CopyIcon width={14} height={14} />
@@ -301,7 +298,7 @@ export function ConversationNameContextMenu({
target="_blank"
rel="noopener noreferrer"
onClick={(event) => event.stopPropagation()}
- className="rounded p-0.5 text-[var(--oh-muted)] no-underline visited:text-[var(--oh-muted)] hover:bg-[var(--oh-interactive-selected)] hover:text-[var(--oh-foreground)] cursor-pointer [&_svg]:text-current"
+ className="rounded p-0.5 text-muted no-underline visited:text-muted hover:bg-interactive-selected hover:text-foreground cursor-pointer [&_svg]:text-current"
title={t(I18nKey.BUTTON$OPEN_IN_NEW_TAB)}
>
<ExternalLink size={14} aria-hidden />
diff --git a/src/components/features/conversation/conversation-name-with-status.tsx b/src/components/features/conversation/conversation-name-with-status.tsx
index 2ae6c9beeb..12b97a6f98 100644
--- a/src/components/features/conversation/conversation-name-with-status.tsx
+++ b/src/components/features/conversation/conversation-name-with-status.tsx
@@ -114,7 +114,7 @@ export function ConversationNameWithStatus() {
onClick={handleStatusClick}
className={cn(
"flex items-center justify-center rounded-md",
- "text-[var(--oh-muted)] hover:bg-white/10",
+ "text-muted hover:bg-white/10",
)}
>
<DebugStackframeDot
diff --git a/src/components/features/conversation/conversation-name.tsx b/src/components/features/conversation/conversation-name.tsx
index 9705d8f27b..2fbfafeb77 100644
--- a/src/components/features/conversation/conversation-name.tsx
+++ b/src/components/features/conversation/conversation-name.tsx
@@ -143,7 +143,7 @@ export function ConversationName() {
return (
<>
<div
- className="flex items-center gap-2 h-[22px] text-base font-normal text-left pl-0 lg:pl-1 min-w-0"
+ className="flex items-center gap-2 h-5.5 text-base font-normal text-left pl-0 lg:pl-1 min-w-0"
data-testid="conversation-name"
>
{titleMode === "edit" ? (
diff --git a/src/components/features/conversation/conversation-overview-context-menu.tsx b/src/components/features/conversation/conversation-overview-context-menu.tsx
index dc927c0260..06a4ec1c1c 100644
--- a/src/components/features/conversation/conversation-overview-context-menu.tsx
+++ b/src/components/features/conversation/conversation-overview-context-menu.tsx
@@ -294,7 +294,7 @@ export function ConversationOverviewContextMenu({
<li key={key} className="list-none">
<div
className={cn(
- "group flex h-[30px] w-full min-w-0 items-stretch rounded hover:bg-[var(--oh-interactive-hover)]",
+ "group flex h-7.5 w-full min-w-0 items-stretch rounded hover:bg-interactive-hover",
indent && "pl-4",
)}
>
diff --git a/src/components/features/conversation/conversation-overview-diffs-row.tsx b/src/components/features/conversation/conversation-overview-diffs-row.tsx
index 3183268853..625f6e6d8b 100644
--- a/src/components/features/conversation/conversation-overview-diffs-row.tsx
+++ b/src/components/features/conversation/conversation-overview-diffs-row.tsx
@@ -20,7 +20,7 @@ const CHANGES_BUTTON_CLASSNAME = cn(
"cursor-pointer border-0 bg-transparent text-left",
);
-const ROW_ICON_CLASSNAME = "size-4 shrink-0 text-[var(--oh-muted)]";
+const ROW_ICON_CLASSNAME = "size-4 shrink-0 text-muted";
const GIT_ACTION_HOVER_TARGET_CLASSNAME =
"conversation-overview-diffs-git-action";
@@ -28,8 +28,8 @@ const GIT_ACTION_HOVER_TARGET_CLASSNAME =
const GIT_ACTION_BUTTON_CLASSNAME = cn(
GIT_ACTION_HOVER_TARGET_CLASSNAME,
"absolute inset-0 inline-flex items-center justify-center",
- "rounded-md text-[var(--oh-muted)] transition-opacity",
- "hover:bg-white/10 hover:text-[var(--oh-foreground)]",
+ "rounded-md text-muted transition-opacity",
+ "hover:bg-white/10 hover:text-foreground",
);
/** Full-row hover, cleared while the git commit control itself is hovered. */
@@ -87,14 +87,14 @@ export function ConversationOverviewDiffsRow() {
className={CHANGES_BUTTON_CLASSNAME}
>
<LuFileDiff className={ROW_ICON_CLASSNAME} aria-hidden />
- <span className="min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]">
+ <span className="min-w-0 flex-1 truncate text-sm text-foreground">
{t(I18nKey.COMMON$CHANGES)}
</span>
</button>
<div className="group/diffstats relative mr-2 flex h-6 min-w-6 shrink-0 items-center justify-center">
{isLoading ? (
- <span className="text-sm tabular-nums text-[var(--oh-muted)]">…</span>
+ <span className="text-sm tabular-nums text-muted">…</span>
) : (
<>
<span
@@ -137,7 +137,7 @@ export function ConversationOverviewDiffsRow() {
GIT_ACTION_BUTTON_CLASSNAME,
!isGitMenuOpen && GIT_ACTION_OVERLAY_CLASSNAME,
isGitMenuOpen &&
- "pointer-events-auto visible opacity-100 text-[var(--oh-foreground)]",
+ "pointer-events-auto visible opacity-100 text-foreground",
)}
>
<GitCommitHorizontal className="size-4" aria-hidden />
diff --git a/src/components/features/conversation/conversation-overview-drawer.tsx b/src/components/features/conversation/conversation-overview-drawer.tsx
index be7152fa54..57fe959794 100644
--- a/src/components/features/conversation/conversation-overview-drawer.tsx
+++ b/src/components/features/conversation/conversation-overview-drawer.tsx
@@ -50,7 +50,7 @@ export function ConversationOverviewDrawer({
}
return (
- <ConversationOverviewDrawerContent className="max-h-[min(50vh,420px)] w-full border-t border-[var(--oh-border)]" />
+ <ConversationOverviewDrawerContent className="max-h-[min(50vh,420px)] w-full border-t border-border" />
);
}
@@ -79,7 +79,7 @@ export function ConversationOverviewDrawer({
}}
>
<div
- className="flex h-full flex-col overflow-hidden border-l border-[var(--oh-border)] bg-base-secondary"
+ className="flex h-full flex-col overflow-hidden border-l border-border bg-base-secondary"
style={{ width: `${drawerWidth}px` }}
>
{isOpen ? (
diff --git a/src/components/features/conversation/conversation-overview-git-items-panel.tsx b/src/components/features/conversation/conversation-overview-git-items-panel.tsx
index 43f9e354d3..04c1362b70 100644
--- a/src/components/features/conversation/conversation-overview-git-items-panel.tsx
+++ b/src/components/features/conversation/conversation-overview-git-items-panel.tsx
@@ -17,7 +17,7 @@ interface ConversationOverviewGitItemsPanelProps {
}
const EXTERNAL_LINK_ICON_CLASSNAME = cn(
- "size-3.5 shrink-0 text-[var(--oh-muted)]",
+ "size-3.5 shrink-0 text-muted",
"opacity-0 transition-opacity group-hover:opacity-100 group-focus-visible:opacity-100",
);
@@ -52,8 +52,8 @@ export function ConversationOverviewGitItemsHeaderLink({
data-testid={`conversation-overview-${kind}-open-external`}
className={cn(
"inline-flex h-7 min-h-7 shrink-0 items-center gap-1.5 whitespace-nowrap",
- "px-1 text-xs text-[var(--oh-muted)] transition-colors",
- "hover:text-[var(--oh-foreground)]",
+ "px-1 text-xs text-muted transition-colors",
+ "hover:text-foreground",
)}
>
{t(I18nKey.CONVERSATION$OVERVIEW_VIEW_ON_PROVIDER, {
@@ -99,7 +99,7 @@ export function ConversationOverviewGitItemsPanel({
className="min-h-0 flex-1 overflow-y-auto px-2 py-2"
>
{query.isLoading ? (
- <p className="px-2 py-4 text-sm text-[var(--oh-muted)]">
+ <p className="px-2 py-4 text-sm text-muted">
{t(I18nKey.HOME$LOADING)}
</p>
) : query.isError ? (
@@ -126,10 +126,10 @@ export function ConversationOverviewGitItemsPanel({
"transition-colors hover:bg-white/5",
)}
>
- <span className="shrink-0 text-sm tabular-nums text-[var(--oh-muted)]">
+ <span className="shrink-0 text-sm tabular-nums text-muted">
#{item.number}
</span>
- <span className="min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]">
+ <span className="min-w-0 flex-1 truncate text-sm text-foreground">
{item.title}
</span>
<ExternalLink
diff --git a/src/components/features/conversation/conversation-overview-git-section.tsx b/src/components/features/conversation/conversation-overview-git-section.tsx
index 1f688626d5..36c23005a9 100644
--- a/src/components/features/conversation/conversation-overview-git-section.tsx
+++ b/src/components/features/conversation/conversation-overview-git-section.tsx
@@ -20,9 +20,9 @@ import {
isOverviewGitPartPinned,
} from "./conversation-overview-sections";
-const ROW_ICON_CLASSNAME = "size-4 shrink-0 text-[var(--oh-muted)]";
+const ROW_ICON_CLASSNAME = "size-4 shrink-0 text-muted";
const EXTERNAL_LINK_ICON_CLASSNAME = cn(
- "size-3.5 shrink-0 text-[var(--oh-muted)]",
+ "size-3.5 shrink-0 text-muted",
"opacity-0 transition-opacity group-hover:opacity-100 group-focus-visible:opacity-100",
);
// Non-localizable empty-count glyph (zero PRs).
@@ -125,7 +125,7 @@ export function ConversationOverviewGitSection() {
gitProvider={provider}
className={ROW_ICON_CLASSNAME}
/>
- <span className="min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]">
+ <span className="min-w-0 flex-1 truncate text-sm text-foreground">
{repository}
</span>
<ExternalLink
@@ -148,10 +148,10 @@ export function ConversationOverviewGitSection() {
>
<FaCodeBranch
size={14}
- className="shrink-0 text-[var(--oh-muted)]"
+ className="shrink-0 text-muted"
aria-hidden
/>
- <span className="min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]">
+ <span className="min-w-0 flex-1 truncate text-sm text-foreground">
{branch}
</span>
<ExternalLink
@@ -165,15 +165,13 @@ export function ConversationOverviewGitSection() {
className="flex min-w-0 items-center gap-2 px-2 py-1.5"
>
<GitBranch
- className="size-3.5 shrink-0 text-[var(--oh-muted)]"
+ className="size-3.5 shrink-0 text-muted"
aria-hidden
/>
<span
className={cn(
"text-sm",
- branch
- ? "text-[var(--oh-foreground)]"
- : "text-[var(--oh-muted)]",
+ branch ? "text-foreground" : "text-muted",
)}
>
{branch || t(I18nKey.CONVERSATION$OVERVIEW_NONE)}
@@ -201,17 +199,15 @@ export function ConversationOverviewGitSection() {
className={ROW_ICON_CLASSNAME}
aria-hidden
/>
- <span className="min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]">
+ <span className="min-w-0 flex-1 truncate text-sm text-foreground">
{t(I18nKey.DIFF_VIEWER$COMMITS)}
</span>
{commitsQuery.isLoading ? (
- <span className="text-sm tabular-nums text-[var(--oh-muted)]">
- …
- </span>
+ <span className="text-sm tabular-nums text-muted">…</span>
) : (
<span
data-testid="conversation-overview-commits-count"
- className="text-sm tabular-nums text-[var(--oh-muted)]"
+ className="text-sm tabular-nums text-muted"
>
{commitsCountLabel}
</span>
@@ -231,17 +227,15 @@ export function ConversationOverviewGitSection() {
)}
>
<PrIcon className={ROW_ICON_CLASSNAME} aria-hidden />
- <span className="min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]">
+ <span className="min-w-0 flex-1 truncate text-sm text-foreground">
{t(I18nKey.CONVERSATION$OVERVIEW_PULL_REQUESTS)}
</span>
{pullRequestsQuery.isLoading ? (
- <span className="text-sm tabular-nums text-[var(--oh-muted)]">
- …
- </span>
+ <span className="text-sm tabular-nums text-muted">…</span>
) : (
<span
data-testid="conversation-overview-pull-requests-count"
- className="text-sm tabular-nums text-[var(--oh-muted)]"
+ className="text-sm tabular-nums text-muted"
>
{pullRequestsCount !== null && pullRequestsCount > 0
? pullRequestsCount
diff --git a/src/components/features/conversation/conversation-overview-panel.tsx b/src/components/features/conversation/conversation-overview-panel.tsx
index 56e7e5d85a..569943033e 100644
--- a/src/components/features/conversation/conversation-overview-panel.tsx
+++ b/src/components/features/conversation/conversation-overview-panel.tsx
@@ -22,8 +22,8 @@ import {
} from "./conversation-overview-sections";
const PANEL_CLASSNAME = cn(
- "w-full max-w-[240px] rounded-xl border border-[var(--oh-border)]",
- "bg-[var(--oh-surface)] pb-1",
+ "w-full max-w-60 rounded-xl border border-border",
+ "bg-surface pb-1",
);
const ROW_CLASSNAME = cn(
@@ -31,7 +31,7 @@ const ROW_CLASSNAME = cn(
"transition-colors hover:bg-white/5",
);
-const ROW_ICON_CLASSNAME = "size-4 shrink-0 text-[var(--oh-muted)]";
+const ROW_ICON_CLASSNAME = "size-4 shrink-0 text-muted";
interface OverviewRowProps {
icon: React.ReactNode;
@@ -44,10 +44,10 @@ function OverviewRow({ icon, label, value, testId }: OverviewRowProps) {
return (
<li data-testid={testId} className={ROW_CLASSNAME}>
{icon}
- <span className="min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]">
+ <span className="min-w-0 flex-1 truncate text-sm text-foreground">
{label}
</span>
- <span className="max-w-[45%] shrink-0 truncate text-right text-sm text-[var(--oh-muted)]">
+ <span className="max-w-[45%] shrink-0 truncate text-right text-sm text-muted">
{value}
</span>
</li>
@@ -139,7 +139,7 @@ export function ConversationOverviewPanel() {
className={PANEL_CLASSNAME}
>
<div className="flex items-center justify-between px-4 pb-0.5 pt-2.5">
- <span className="text-xs font-medium text-[var(--oh-muted)]">
+ <span className="text-xs font-medium text-muted">
{t(I18nKey.CONVERSATION$OVERVIEW)}
</span>
<div className="relative shrink-0">
diff --git a/src/components/features/conversation/conversation-overview-secrets-panel.tsx b/src/components/features/conversation/conversation-overview-secrets-panel.tsx
index 3fbc629cd4..ce3f907b80 100644
--- a/src/components/features/conversation/conversation-overview-secrets-panel.tsx
+++ b/src/components/features/conversation/conversation-overview-secrets-panel.tsx
@@ -70,7 +70,7 @@ export function ConversationOverviewSecretsPanel({
>
<div className="min-h-0 flex-1 overflow-y-auto px-2 py-2">
{isLoading ? (
- <p className="px-2 py-4 text-sm text-[var(--oh-muted)]">
+ <p className="px-2 py-4 text-sm text-muted">
{t(I18nKey.HOME$LOADING)}
</p>
) : secrets && secrets.length > 0 ? (
@@ -82,11 +82,11 @@ export function ConversationOverviewSecretsPanel({
className="group flex items-center gap-2 rounded-md px-2 py-2 hover:bg-white/5"
>
<div className="min-w-0 flex-1">
- <p className="truncate text-sm text-[var(--oh-foreground)]">
+ <p className="truncate text-sm text-foreground">
{secret.name}
</p>
{secret.description ? (
- <p className="truncate text-xs text-[var(--oh-muted)]">
+ <p className="truncate text-xs text-muted">
{secret.description}
</p>
) : null}
@@ -97,9 +97,9 @@ export function ConversationOverviewSecretsPanel({
aria-label={t(I18nKey.BUTTON$DELETE)}
onClick={() => setSecretToDelete(secret.name)}
className={cn(
- "shrink-0 rounded-md p-1 text-[var(--oh-muted)]",
+ "shrink-0 rounded-md p-1 text-muted",
"opacity-0 transition-opacity group-hover:opacity-100",
- "hover:bg-white/10 hover:text-[var(--oh-foreground)]",
+ "hover:bg-white/10 hover:text-foreground",
)}
>
<Trash2 className="size-3.5" aria-hidden />
diff --git a/src/components/features/conversation/conversation-overview-toggle.tsx b/src/components/features/conversation/conversation-overview-toggle.tsx
index a350ebccb0..34b287238b 100644
--- a/src/components/features/conversation/conversation-overview-toggle.tsx
+++ b/src/components/features/conversation/conversation-overview-toggle.tsx
@@ -163,9 +163,9 @@ export function ConversationOverviewToggle({
// keeping the smaller Info glyph.
mobileTopBarIconButtonClassName,
"size-7",
- isOverviewVisible && "bg-white/10 text-[var(--oh-foreground)]",
+ isOverviewVisible && "bg-white/10 text-foreground",
isArchivedConversation &&
- "cursor-not-allowed opacity-50 hover:bg-transparent hover:text-[var(--oh-muted)]",
+ "cursor-not-allowed opacity-50 hover:bg-transparent hover:text-muted",
className,
)}
aria-label={tooltipText}
diff --git a/src/components/features/conversation/conversation-secondary-drawer.classes.ts b/src/components/features/conversation/conversation-secondary-drawer.classes.ts
index c61267496c..b8c03b4c0f 100644
--- a/src/components/features/conversation/conversation-secondary-drawer.classes.ts
+++ b/src/components/features/conversation/conversation-secondary-drawer.classes.ts
@@ -3,7 +3,7 @@ import { cn } from "#/utils/utils";
/** Matches conversation tabs chrome height; right inset aligns with drawer body `px-4`. */
export const CONVERSATION_SECONDARY_DRAWER_HEADER_CLASSNAME = cn(
"flex h-10 min-h-10 shrink-0 items-center gap-1.5",
- "border-b border-[var(--oh-border)] py-1 pl-1 pr-4",
+ "border-b border-border py-1 pl-1 pr-4",
);
export const CONVERSATION_SECONDARY_DRAWER_HEADER_ACTION_CLASSNAME = cn(
diff --git a/src/components/features/conversation/conversation-tab-empty-state.tsx b/src/components/features/conversation/conversation-tab-empty-state.tsx
index 198d7a1c82..3cce5054a1 100644
--- a/src/components/features/conversation/conversation-tab-empty-state.tsx
+++ b/src/components/features/conversation/conversation-tab-empty-state.tsx
@@ -26,12 +26,12 @@ export function ConversationTabEmptyState({
)}
>
<div
- className="shrink-0 text-[var(--oh-muted)] [&_svg]:size-10 [&_svg]:max-h-10 [&_svg]:max-w-10 [&_svg]:shrink-0"
+ className="shrink-0 text-muted [&_svg]:size-10 [&_svg]:max-h-10 [&_svg]:max-w-10 [&_svg]:shrink-0"
aria-hidden
>
{icon}
</div>
- <p className="max-w-sm text-center text-sm font-normal leading-5 text-[var(--oh-muted)]">
+ <p className="max-w-sm text-center text-sm font-normal leading-5 text-muted">
{children}
</p>
{action ? <div className="flex justify-center pt-1">{action}</div> : null}
diff --git a/src/components/features/conversation/conversation-tabs/conversation-tab-nav.tsx b/src/components/features/conversation/conversation-tabs/conversation-tab-nav.tsx
index be8369c240..d5677c6564 100644
--- a/src/components/features/conversation/conversation-tabs/conversation-tab-nav.tsx
+++ b/src/components/features/conversation/conversation-tabs/conversation-tab-nav.tsx
@@ -40,14 +40,12 @@ export function ConversationTabNav({
const buttonClassName = cn(
"flex items-center rounded-md cursor-pointer",
"pl-1.5 pr-2 py-1 lg:py-1.5",
- "text-[var(--oh-muted)] bg-transparent",
- isActive && "bg-[var(--oh-interactive-active)] text-white",
+ "text-muted bg-transparent",
+ isActive && "bg-interactive-active text-white",
isActive
- ? "hover:text-white hover:bg-[var(--oh-interactive-hover)]"
+ ? "hover:text-white hover:bg-interactive-hover"
: "hover:text-white hover:bg-white/5",
- isActive
- ? "focus-within:text-white"
- : "focus-within:text-[var(--oh-muted)]",
+ isActive ? "focus-within:text-white" : "focus-within:text-muted",
className,
);
diff --git a/src/components/features/conversation/conversation-tabs/conversation-tabs-context-menu.tsx b/src/components/features/conversation/conversation-tabs/conversation-tabs-context-menu.tsx
index a309aa0471..0a256cc713 100644
--- a/src/components/features/conversation/conversation-tabs/conversation-tabs-context-menu.tsx
+++ b/src/components/features/conversation/conversation-tabs/conversation-tabs-context-menu.tsx
@@ -173,9 +173,8 @@ export function ConversationTabsContextMenu({
<ArchivedDisabledTooltip isDisabled={isArchivedConversation}>
<div
className={cn(
- "group flex h-[30px] w-full min-w-0 items-stretch rounded",
- !isArchivedConversation &&
- "hover:bg-[var(--oh-interactive-hover)]",
+ "group flex h-7.5 w-full min-w-0 items-stretch rounded",
+ !isArchivedConversation && "hover:bg-interactive-hover",
isArchivedConversation && "opacity-50",
)}
>
@@ -222,7 +221,7 @@ export function ConversationTabsContextMenu({
{pinned ? (
<span
className={cn(
- "-mr-[5px] ml-auto",
+ "-mr-1.25 ml-auto",
dropdownMenuRowIconWrapperClassName,
)}
aria-hidden
diff --git a/src/components/features/conversation/conversation-tabs/conversation-tabs.tsx b/src/components/features/conversation/conversation-tabs/conversation-tabs.tsx
index 2279437e19..59da13a4b4 100644
--- a/src/components/features/conversation/conversation-tabs/conversation-tabs.tsx
+++ b/src/components/features/conversation/conversation-tabs/conversation-tabs.tsx
@@ -371,7 +371,7 @@ export function ConversationTabs({
{isTabActive("planner") && (
<div
className={cn(
- "flex h-10 min-h-10 shrink-0 items-center border-t border-[var(--oh-border)] pl-[10px] pr-1",
+ "flex h-10 min-h-10 shrink-0 items-center border-t border-border pl-2.5 pr-1",
)}
>
<button
diff --git a/src/components/features/conversation/conversation-tabs/drawer-vscode-link.tsx b/src/components/features/conversation/conversation-tabs/drawer-vscode-link.tsx
index ba68b6f512..05058f951f 100644
--- a/src/components/features/conversation/conversation-tabs/drawer-vscode-link.tsx
+++ b/src/components/features/conversation/conversation-tabs/drawer-vscode-link.tsx
@@ -42,12 +42,12 @@ export function DrawerVSCodeLink() {
title={t(I18nKey.VSCODE$OPEN)}
data-testid="drawer-vscode-link"
className={cn(
- "inline-flex items-center gap-1.5 rounded-[7px] border border-[var(--oh-border)] bg-base-secondary px-2 py-1 text-xs",
- "text-[var(--oh-muted)] transition-colors hover:enabled:bg-surface-raised hover:enabled:text-white",
+ "inline-flex items-center gap-1.5 rounded-[7px] border border-border bg-base-secondary px-2 py-1 text-xs",
+ "text-muted transition-colors hover:enabled:bg-surface-raised hover:enabled:text-white",
"cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",
)}
>
- <VSCodeIcon className="h-[15px] w-[15px] shrink-0" aria-hidden />
+ <VSCodeIcon className="h-3.75 w-3.75 shrink-0" aria-hidden />
<span>{t(I18nKey.FILES$VSCODE)}</span>
<ExternalLink
className="h-3.5 w-3.5 shrink-0"
diff --git a/src/components/features/conversation/metrics-modal/cost-section.tsx b/src/components/features/conversation/metrics-modal/cost-section.tsx
index a1cbec5b62..f0b2f13775 100644
--- a/src/components/features/conversation/metrics-modal/cost-section.tsx
+++ b/src/components/features/conversation/metrics-modal/cost-section.tsx
@@ -17,7 +17,7 @@ export function CostSection({ cost, maxBudgetPerTask }: CostSectionProps) {
return (
<>
<BudgetDisplay cost={cost} maxBudgetPerTask={maxBudgetPerTask} />
- <div className="flex justify-between items-center border-t border-[var(--oh-border-subtle)] pt-2">
+ <div className="flex justify-between items-center border-t border-border-subtle pt-2">
<span className="font-semibold">
{t(I18nKey.CONVERSATION$TOTAL_COST)}
</span>
diff --git a/src/components/features/conversation/metrics-modal/metric-row.tsx b/src/components/features/conversation/metrics-modal/metric-row.tsx
index b1072521e2..04b0055865 100644
--- a/src/components/features/conversation/metrics-modal/metric-row.tsx
+++ b/src/components/features/conversation/metrics-modal/metric-row.tsx
@@ -20,7 +20,7 @@ export function MetricRow({
<div
className={cn(
"flex justify-between items-center pb-2",
- showBorder && "border-b border-[var(--oh-border-subtle)]",
+ showBorder && "border-b border-border-subtle",
)}
>
<span className={labelClassName}>{label}</span>
diff --git a/src/components/features/conversation/metrics-modal/usage-section.tsx b/src/components/features/conversation/metrics-modal/usage-section.tsx
index 9ddf92a5bc..8587b7dea0 100644
--- a/src/components/features/conversation/metrics-modal/usage-section.tsx
+++ b/src/components/features/conversation/metrics-modal/usage-section.tsx
@@ -22,13 +22,11 @@ export function UsageSection({ usage }: UsageSectionProps) {
/>
<div className="grid grid-cols-2 gap-2 pl-4 text-sm">
- <span className="text-[var(--oh-muted)]">
- {t(I18nKey.CONVERSATION$CACHE_HIT)}
- </span>
+ <span className="text-muted">{t(I18nKey.CONVERSATION$CACHE_HIT)}</span>
<span className="text-right">
{usage.cache_read_tokens.toLocaleString()}
</span>
- <span className="text-[var(--oh-muted)]">
+ <span className="text-muted">
{t(I18nKey.CONVERSATION$CACHE_WRITE)}
</span>
<span className="text-right">
diff --git a/src/components/features/conversation/right-panel-toggle.tsx b/src/components/features/conversation/right-panel-toggle.tsx
index 2c0e2f0744..1f80e958c1 100644
--- a/src/components/features/conversation/right-panel-toggle.tsx
+++ b/src/components/features/conversation/right-panel-toggle.tsx
@@ -90,7 +90,7 @@ export function RightPanelToggle({ className }: RightPanelToggleProps) {
mobileTopBarIconButtonClassName,
"size-7 self-center",
isArchivedConversation &&
- "cursor-not-allowed opacity-50 hover:bg-transparent hover:text-[var(--oh-muted)]",
+ "cursor-not-allowed opacity-50 hover:bg-transparent hover:text-muted",
className,
)}
aria-label={tooltipText}
diff --git a/src/components/features/conversation/transcript-export-modal.tsx b/src/components/features/conversation/transcript-export-modal.tsx
index 4555660156..2b3dc96eda 100644
--- a/src/components/features/conversation/transcript-export-modal.tsx
+++ b/src/components/features/conversation/transcript-export-modal.tsx
@@ -137,7 +137,7 @@ export function TranscriptExportModal({
>
<ModalBody
testID="transcript-export-modal"
- className="relative items-start border border-[var(--oh-border)]"
+ className="relative items-start border border-border"
>
<ModalCloseButton
onClose={handleClose}
@@ -155,7 +155,7 @@ export function TranscriptExportModal({
<legend className="mb-2 text-sm font-medium text-white">
{t(I18nKey.TRANSCRIPT_EXPORT$FORMAT)}
</legend>
- <label className="flex cursor-pointer items-center gap-3 rounded-md border border-[var(--oh-border)] px-3 py-2 text-sm text-white">
+ <label className="flex cursor-pointer items-center gap-3 rounded-md border border-border px-3 py-2 text-sm text-white">
<input
type="radio"
name={TRANSCRIPT_FORMAT_RADIO_NAME}
@@ -166,7 +166,7 @@ export function TranscriptExportModal({
/>
{t(I18nKey.TRANSCRIPT_EXPORT$MARKDOWN)}
</label>
- <label className="flex cursor-pointer items-center gap-3 rounded-md border border-[var(--oh-border)] px-3 py-2 text-sm text-white">
+ <label className="flex cursor-pointer items-center gap-3 rounded-md border border-border px-3 py-2 text-sm text-white">
<input
type="radio"
name={TRANSCRIPT_FORMAT_RADIO_NAME}
diff --git a/src/components/features/conversation/usage-panel/compact-context-button.tsx b/src/components/features/conversation/usage-panel/compact-context-button.tsx
index d499305d97..bc0847f4ab 100644
--- a/src/components/features/conversation/usage-panel/compact-context-button.tsx
+++ b/src/components/features/conversation/usage-panel/compact-context-button.tsx
@@ -33,7 +33,7 @@ export function CompactContextButton({
return (
<div
data-testid="compact-context-section"
- className="flex flex-col gap-2 border-t border-[var(--oh-border-subtle)] pt-3"
+ className="flex flex-col gap-2 border-t border-border-subtle pt-3"
>
{isHighFill && (
<span className="text-xs text-amber-500">
@@ -62,13 +62,13 @@ export function CompactContextButton({
<StyledTooltip
content={description}
placement="top"
- tooltipClassName="max-w-[220px] text-xs font-normal leading-relaxed whitespace-normal"
+ tooltipClassName="max-w-55 text-xs font-normal leading-relaxed whitespace-normal"
>
<button
type="button"
data-testid="compact-context-info"
aria-label={description}
- className="flex size-5 shrink-0 items-center justify-center rounded-full text-[var(--oh-muted)] hover:text-[var(--oh-foreground)] transition-colors cursor-help"
+ className="flex size-5 shrink-0 items-center justify-center rounded-full text-muted hover:text-foreground transition-colors cursor-help"
>
<Info className="size-3.5" aria-hidden />
</button>
diff --git a/src/components/features/conversation/usage-panel/context-meter.tsx b/src/components/features/conversation/usage-panel/context-meter.tsx
index dabecf0dcc..a030a9f121 100644
--- a/src/components/features/conversation/usage-panel/context-meter.tsx
+++ b/src/components/features/conversation/usage-panel/context-meter.tsx
@@ -70,7 +70,7 @@ export function ContextMeter({
? "text-red-500"
: isWarning
? "text-amber-500"
- : "text-[var(--oh-muted)]",
+ : "text-muted",
)}
>
{usagePercentLabel}
@@ -92,7 +92,7 @@ export function ContextMeter({
/>
</div>
<div className="flex justify-end">
- <span className="text-xs text-[var(--oh-muted)]">
+ <span className="text-xs text-muted">
{isWindowUnknown
? perTurnToken.toLocaleString()
: `${perTurnToken.toLocaleString()} / ${contextWindow.toLocaleString()}`}
diff --git a/src/components/features/conversation/usage-panel/provider-balance-card.tsx b/src/components/features/conversation/usage-panel/provider-balance-card.tsx
index 2f5f8cee0e..3cb80b2ed5 100644
--- a/src/components/features/conversation/usage-panel/provider-balance-card.tsx
+++ b/src/components/features/conversation/usage-panel/provider-balance-card.tsx
@@ -33,14 +33,14 @@ export function ProviderBalanceCard() {
return (
<div
data-testid="provider-balance-card"
- className="rounded-md border border-[var(--oh-border)] bg-surface-raised p-3"
+ className="rounded-md border border-border bg-surface-raised p-3"
>
<div className="flex items-center justify-between pb-2">
<span className="font-semibold">
{t(I18nKey.CONVERSATION$PROVIDER_BALANCE)}
</span>
<div className="flex items-center gap-2">
- <span className="text-xs text-[var(--oh-muted)]">
+ <span className="text-xs text-muted">
{balance.provider}
{balance.isFreeTier
? ` Β· ${t(I18nKey.CONVERSATION$FREE_TIER)}`
@@ -52,7 +52,7 @@ export function ProviderBalanceCard() {
aria-label={t(I18nKey.BUTTON$REFRESH)}
disabled={isFetching}
onClick={() => refetch()}
- className="cursor-pointer text-[var(--oh-muted)] hover:text-[var(--oh-foreground)] disabled:cursor-default"
+ className="cursor-pointer text-muted hover:text-foreground disabled:cursor-default"
>
<RefreshCw
className={cn("h-3.5 w-3.5", isFetching && "animate-spin")}
@@ -71,7 +71,7 @@ export function ProviderBalanceCard() {
label={t(I18nKey.CONVERSATION$CREDITS_USED)}
value={formatCredits(balance.usage)}
valueClassName={hasCap ? "" : "font-semibold"}
- labelClassName={hasCap ? "text-[var(--oh-muted)]" : ""}
+ labelClassName={hasCap ? "text-muted" : ""}
/>
</div>
</div>
diff --git a/src/components/features/conversation/usage-panel/usage-panel.tsx b/src/components/features/conversation/usage-panel/usage-panel.tsx
index 41a75274a1..d88a198d24 100644
--- a/src/components/features/conversation/usage-panel/usage-panel.tsx
+++ b/src/components/features/conversation/usage-panel/usage-panel.tsx
@@ -44,7 +44,7 @@ export function UsagePanel() {
className="h-full overflow-y-auto custom-scrollbar-always flex flex-col gap-3 p-3"
>
{usage !== null && (
- <div className="rounded-md border border-[var(--oh-border)] bg-surface-raised p-3">
+ <div className="rounded-md border border-border bg-surface-raised p-3">
<div className="grid gap-3">
<ContextMeter
perTurnToken={usage.per_turn_token}
@@ -61,7 +61,7 @@ export function UsagePanel() {
</div>
)}
- <div className="rounded-md border border-[var(--oh-border)] bg-surface-raised p-3">
+ <div className="rounded-md border border-border bg-surface-raised p-3">
<div className="grid gap-3">
<div className="flex justify-between items-center pb-2">
<span className="text-lg font-semibold">
@@ -69,7 +69,7 @@ export function UsagePanel() {
</span>
</div>
{isAcp && (
- <span className="text-xs text-[var(--oh-muted)]">
+ <span className="text-xs text-muted">
{t(I18nKey.CONVERSATION$PLAN_USAGE_NOTE)}
</span>
)}
diff --git a/src/components/features/diff-viewer/commit-list.tsx b/src/components/features/diff-viewer/commit-list.tsx
index 361132965d..a50d14c82e 100644
--- a/src/components/features/diff-viewer/commit-list.tsx
+++ b/src/components/features/diff-viewer/commit-list.tsx
@@ -69,7 +69,7 @@ export function CommitList({
{hasMore && (
<div
data-testid="commit-list-cap-notice"
- className="px-3 py-2.5 text-xs text-[var(--oh-muted)]"
+ className="px-3 py-2.5 text-xs text-muted"
>
{t(I18nKey.DIFF_VIEWER$COMMITS_CAP, { count: commits.length })}
</div>
diff --git a/src/components/features/diff-viewer/commit-row.tsx b/src/components/features/diff-viewer/commit-row.tsx
index ee4712dbdd..2a1d9f0e5e 100644
--- a/src/components/features/diff-viewer/commit-row.tsx
+++ b/src/components/features/diff-viewer/commit-row.tsx
@@ -43,32 +43,26 @@ export function CommitRow({
onClick={onToggle}
aria-expanded={isExpanded}
data-testid="commit-row-toggle"
- className="w-full flex h-10 items-center gap-2 px-3 border-b border-[var(--oh-border)] text-sm text-content text-left hover:cursor-pointer"
+ className="w-full flex h-10 items-center gap-2 px-3 border-b border-border text-sm text-content text-left hover:cursor-pointer"
>
- <code className="w-[7ch] flex-shrink-0 text-center font-mono text-xs text-[var(--oh-muted)]">
+ <code className="w-[7ch] flex-shrink-0 text-center font-mono text-xs text-muted">
{commit.shortSha}
</code>
<strong className="flex-1 truncate font-medium">
{commit.subject}
</strong>
{showAuthor && (
- <span className="text-xs text-[var(--oh-muted)] truncate max-w-32 flex-shrink-0">
+ <span className="text-xs text-muted truncate max-w-32 flex-shrink-0">
{commit.author}
</span>
)}
- <span className="text-xs text-[var(--oh-muted)] flex-shrink-0">
+ <span className="text-xs text-muted flex-shrink-0">
{`${formatTimeDelta(commit.timestamp)} ${t(I18nKey.CONVERSATION$AGO)}`}
</span>
{isExpanded ? (
- <ChevronDown
- className="w-4 h-4 shrink-0 text-[var(--oh-muted)]"
- aria-hidden
- />
+ <ChevronDown className="w-4 h-4 shrink-0 text-muted" aria-hidden />
) : (
- <ChevronRight
- className="w-4 h-4 shrink-0 text-[var(--oh-muted)]"
- aria-hidden
- />
+ <ChevronRight className="w-4 h-4 shrink-0 text-muted" aria-hidden />
)}
</button>
diff --git a/src/components/features/diff-viewer/editor-container.tsx b/src/components/features/diff-viewer/editor-container.tsx
index 7cc7cba28d..b812e2057c 100644
--- a/src/components/features/diff-viewer/editor-container.tsx
+++ b/src/components/features/diff-viewer/editor-container.tsx
@@ -16,7 +16,7 @@ export function EditorContainer({
<div
data-testid="editor-container"
className={cn(
- "w-full border-b border-[var(--oh-border)] overflow-hidden h-[var(--editor-height)]",
+ "w-full border-b border-border overflow-hidden h-[var(--editor-height)]",
className,
)}
// CSS custom property plumbed through for h-[var(--editor-height)] above
diff --git a/src/components/features/diff-viewer/file-diff-viewer.tsx b/src/components/features/diff-viewer/file-diff-viewer.tsx
index 4552f25f33..e3596fdbb6 100644
--- a/src/components/features/diff-viewer/file-diff-viewer.tsx
+++ b/src/components/features/diff-viewer/file-diff-viewer.tsx
@@ -253,7 +253,7 @@ export function FileDiffViewer({
if (isMarkdownFile) {
return (
<div
- className="w-full border-b border-[var(--oh-border)] overflow-auto p-4 bg-base prose prose-invert max-w-none"
+ className="w-full border-b border-border overflow-auto p-4 bg-base prose prose-invert max-w-none"
data-testid="markdown-preview"
style={{ maxHeight: MAX_DIFF_EDITOR_HEIGHT_PX }}
>
@@ -283,7 +283,7 @@ export function FileDiffViewer({
return (
<div data-testid="file-diff-viewer-outer" className="w-full flex flex-col">
<div
- className="flex h-10 items-center px-3 border-b border-[var(--oh-border)] hover:cursor-pointer"
+ className="flex h-10 items-center px-3 border-b border-border hover:cursor-pointer"
onClick={handleToggle}
>
<span className="text-sm w-full text-content flex items-center gap-2 min-w-0">
@@ -317,8 +317,8 @@ export function FileDiffViewer({
className={cn(
"p-1 rounded transition-colors cursor-pointer",
viewMode === mode
- ? "bg-[var(--oh-interactive-hover)] text-white"
- : "text-[var(--oh-muted)] hover:bg-[var(--oh-interactive-hover)] hover:text-white",
+ ? "bg-interactive-hover text-white"
+ : "text-muted hover:bg-interactive-hover hover:text-white",
)}
>
<Icon className="w-4 h-4" />
@@ -329,7 +329,7 @@ export function FileDiffViewer({
<button
data-testid="collapse"
type="button"
- className="shrink-0 text-[var(--oh-muted)]"
+ className="shrink-0 text-muted"
>
{isCollapsed ? (
<ChevronRight className="w-4 h-4" aria-hidden />
@@ -344,7 +344,7 @@ export function FileDiffViewer({
{isDeleted && !commit ? (
<div
data-testid="file-deleted-message"
- className="w-full border-b border-[var(--oh-border)] p-4 bg-base text-[var(--oh-text-dim)] text-sm"
+ className="w-full border-b border-border p-4 bg-base text-text-dim text-sm"
>
{t(I18nKey.DIFF_VIEWER$FILE_DELETED)}
</div>
diff --git a/src/components/features/diff-viewer/uncommitted-changes-row.tsx b/src/components/features/diff-viewer/uncommitted-changes-row.tsx
index adadc37a9c..e07460a48e 100644
--- a/src/components/features/diff-viewer/uncommitted-changes-row.tsx
+++ b/src/components/features/diff-viewer/uncommitted-changes-row.tsx
@@ -33,9 +33,9 @@ export function UncommittedChangesRow({
onClick={onToggle}
aria-expanded={isExpanded}
data-testid="uncommitted-changes-row-toggle"
- className="w-full flex h-10 items-center gap-2 px-3 border-b border-[var(--oh-border)] text-sm text-content text-left hover:cursor-pointer"
+ className="w-full flex h-10 items-center gap-2 px-3 border-b border-border text-sm text-content text-left hover:cursor-pointer"
>
- <code className="w-[7ch] flex-shrink-0 text-center font-mono text-xs text-[var(--oh-muted)]">
+ <code className="w-[7ch] flex-shrink-0 text-center font-mono text-xs text-muted">
{EMPTY_COMMIT_SHA_PLACEHOLDER}
</code>
<strong className="flex-1 truncate font-medium">
@@ -44,21 +44,15 @@ export function UncommittedChangesRow({
{changes.length > 0 ? (
<span
data-testid="uncommitted-changes-count"
- className="text-xs text-[var(--oh-muted)] tabular-nums flex-shrink-0"
+ className="text-xs text-muted tabular-nums flex-shrink-0"
>
{t(UNCOMMITTED_FILE_COUNT_I18N_KEY, { count: changes.length })}
</span>
) : null}
{isExpanded ? (
- <ChevronDown
- className="w-4 h-4 shrink-0 text-[var(--oh-muted)]"
- aria-hidden
- />
+ <ChevronDown className="w-4 h-4 shrink-0 text-muted" aria-hidden />
) : (
- <ChevronRight
- className="w-4 h-4 shrink-0 text-[var(--oh-muted)]"
- aria-hidden
- />
+ <ChevronRight className="w-4 h-4 shrink-0 text-muted" aria-hidden />
)}
</button>
diff --git a/src/components/features/files-tab/file-content-viewer.tsx b/src/components/features/files-tab/file-content-viewer.tsx
index 2d4efa729d..3fbb420396 100644
--- a/src/components/features/files-tab/file-content-viewer.tsx
+++ b/src/components/features/files-tab/file-content-viewer.tsx
@@ -45,7 +45,7 @@ function UnpreviewableFallback({ path }: { path: string }) {
const documentLabel = OFFICE_DOCUMENT_LABELS[getExtension(path)];
return (
<div
- className="flex h-full w-full items-center justify-center text-sm text-[var(--oh-muted)]"
+ className="flex h-full w-full items-center justify-center text-sm text-muted"
data-testid={
documentLabel
? "file-content-viewer-unsupported-document"
@@ -77,7 +77,7 @@ export function FileContentViewer({ path, viewMode }: FileContentViewerProps) {
if (query.isLoading) {
return (
- <div className="flex h-full w-full items-center justify-center text-sm text-[var(--oh-muted)]">
+ <div className="flex h-full w-full items-center justify-center text-sm text-muted">
{t(I18nKey.FILES$LOADING_FILES)}
</div>
);
@@ -92,7 +92,7 @@ export function FileContentViewer({ path, viewMode }: FileContentViewerProps) {
// we have one; fall back to the generic translated string otherwise.
return (
<div
- className="flex h-full w-full items-center justify-center text-sm text-[var(--oh-muted)]"
+ className="flex h-full w-full items-center justify-center text-sm text-muted"
data-testid="file-content-viewer-error"
>
{(query.error as Error | undefined)?.message ??
@@ -125,7 +125,7 @@ export function FileContentViewer({ path, viewMode }: FileContentViewerProps) {
if (kind === "image") {
return (
<div
- className="flex h-full w-full items-center justify-center bg-[var(--oh-surface)] p-4"
+ className="flex h-full w-full items-center justify-center bg-surface p-4"
data-testid="file-content-viewer-image"
>
<img
@@ -195,7 +195,7 @@ export function FileContentViewer({ path, viewMode }: FileContentViewerProps) {
return (
<div
data-testid="file-content-viewer-markdown"
- className="h-full w-full overflow-auto bg-[var(--oh-surface)] text-white custom-scrollbar-always [--oh-scroll-fade-from:var(--oh-surface)]"
+ className="h-full w-full overflow-auto bg-surface text-white custom-scrollbar-always [--oh-scroll-fade-from:var(--oh-surface)]"
>
<div className="prose prose-sm prose-invert max-w-none p-6 [--tw-prose-body:#fff] [--tw-prose-bold:#fff] [--tw-prose-headings:#fff] [--tw-prose-lead:#fff] [--tw-prose-counters:#fff] [--tw-prose-quotes:#fff] [--tw-prose-quote-borders:var(--oh-border-subtle)] [--tw-prose-bullets:var(--oh-muted)] [--tw-prose-hr:var(--oh-border-subtle)] [--tw-prose-captions:var(--oh-muted)] [--tw-prose-kbd:#fff]">
<MarkdownRenderer
diff --git a/src/components/features/files-tab/file-quick-row.tsx b/src/components/features/files-tab/file-quick-row.tsx
index af2447f4c9..da0069ed5f 100644
--- a/src/components/features/files-tab/file-quick-row.tsx
+++ b/src/components/features/files-tab/file-quick-row.tsx
@@ -39,7 +39,7 @@ export function FileQuickRow({
return (
<div
- className="flex h-[34px] shrink-0 items-stretch gap-1.5 overflow-y-hidden border-b border-[var(--oh-border)] px-2"
+ className="flex h-8.5 shrink-0 items-stretch gap-1.5 overflow-y-hidden border-b border-border px-2"
data-testid="file-quick-row"
>
<button
@@ -59,8 +59,8 @@ export function FileQuickRow({
)}
className={cn(
"shrink-0 self-center inline-flex items-center justify-center w-6 h-6 rounded-md cursor-pointer",
- "text-[var(--oh-text-tertiary)] hover:bg-tertiary",
- isTreeVisible && "bg-[var(--oh-surface-raised)]",
+ "text-text-tertiary hover:bg-tertiary",
+ isTreeVisible && "bg-surface-raised",
)}
>
<ListTree className="w-3 h-3" aria-hidden strokeWidth={2} />
@@ -84,12 +84,12 @@ export function FileQuickRow({
className={cn(
"group/file-tab relative flex shrink-0 items-stretch",
// Vertical edges on every tab (left on the first, right on all).
- "border-r border-r-[var(--oh-border)]",
- index === 0 && "border-l border-l-[var(--oh-border)]",
+ "border-r border-r-border",
+ index === 0 && "border-l border-l-border",
"border-b-2 -mb-px transition-colors",
isSelected
? "border-b-white text-white"
- : "border-b-transparent text-[var(--oh-muted)] hover:text-white hover:border-b-white/25",
+ : "border-b-transparent text-muted hover:text-white hover:border-b-white/25",
)}
>
<button
@@ -99,7 +99,7 @@ export function FileQuickRow({
onClick={() => onSelectFile(path)}
title={path}
data-testid={`file-quick-row-item-${path}`}
- className="flex min-w-0 max-w-[160px] items-center pl-2.5 pr-1 text-xs cursor-pointer text-inherit"
+ className="flex min-w-0 max-w-40 items-center pl-2.5 pr-1 text-xs cursor-pointer text-inherit"
>
<span className="truncate">{fileName}</span>
</button>
diff --git a/src/components/features/files-tab/file-tree-view.tsx b/src/components/features/files-tab/file-tree-view.tsx
index ad823808d0..70df470497 100644
--- a/src/components/features/files-tab/file-tree-view.tsx
+++ b/src/components/features/files-tab/file-tree-view.tsx
@@ -21,7 +21,7 @@ export function FileTreeView({
if (root.children.length === 0) {
return (
- <div className="px-3 py-4 text-sm text-[var(--oh-muted)]">
+ <div className="px-3 py-4 text-sm text-muted">
{t(I18nKey.FILES$NO_FILES)}
</div>
);
diff --git a/src/components/features/files-tab/highlighted-source-view.tsx b/src/components/features/files-tab/highlighted-source-view.tsx
index 310978d38b..2ce8ecb7d8 100644
--- a/src/components/features/files-tab/highlighted-source-view.tsx
+++ b/src/components/features/files-tab/highlighted-source-view.tsx
@@ -34,7 +34,7 @@ export function HighlightedSourceView({
return (
<pre
data-testid="file-content-viewer-plain"
- className="h-full w-full overflow-auto whitespace-pre-wrap break-words bg-[var(--oh-surface)] p-4 text-xs leading-5 text-white custom-scrollbar-always"
+ className="h-full w-full overflow-auto whitespace-pre-wrap break-words bg-surface p-4 text-xs leading-5 text-white custom-scrollbar-always"
>
{text}
</pre>
@@ -45,7 +45,7 @@ export function HighlightedSourceView({
<div
data-testid="file-content-viewer-highlighted"
data-language={language}
- className="h-full w-full overflow-auto bg-[var(--oh-surface)] custom-scrollbar-always"
+ className="h-full w-full overflow-auto bg-surface custom-scrollbar-always"
>
<SyntaxHighlighter
language={language}
diff --git a/src/components/features/files-tab/segmented-toggle.tsx b/src/components/features/files-tab/segmented-toggle.tsx
index 5bcced6a86..82aaf2a5da 100644
--- a/src/components/features/files-tab/segmented-toggle.tsx
+++ b/src/components/features/files-tab/segmented-toggle.tsx
@@ -38,7 +38,7 @@ export function SegmentedToggle<T extends string>({
data-testid={testId}
className={cn(
equalWidth ? "flex w-full" : "inline-flex",
- "items-center rounded-md bg-[var(--oh-surface-raised)] p-0.5 text-xs",
+ "items-center rounded-md bg-surface-raised p-0.5 text-xs",
className,
)}
>
@@ -58,8 +58,8 @@ export function SegmentedToggle<T extends string>({
"inline-flex items-center gap-1.5 px-2 py-0.5 rounded cursor-pointer transition-colors",
equalWidth && "flex-1 justify-center text-center",
isActive
- ? "bg-[var(--oh-interactive-hover)] text-white"
- : "text-[var(--oh-muted)] hover:text-white",
+ ? "bg-interactive-hover text-white"
+ : "text-muted hover:text-white",
)}
>
{option.icon}
diff --git a/src/components/features/files-tab/tree-node.tsx b/src/components/features/files-tab/tree-node.tsx
index 881c77778d..6004549510 100644
--- a/src/components/features/files-tab/tree-node.tsx
+++ b/src/components/features/files-tab/tree-node.tsx
@@ -39,7 +39,7 @@ export function TreeNode({
>
<span
aria-hidden
- className="inline-flex w-3.5 shrink-0 items-center justify-center text-[var(--oh-muted)]"
+ className="inline-flex w-3.5 shrink-0 items-center justify-center text-muted"
>
{isOpen ? (
<ChevronDown className="w-3.5 h-3.5" />
@@ -77,9 +77,7 @@ export function TreeNode({
className={cn(
"flex w-full items-center gap-1.5 py-1 pr-2 text-left text-sm",
"hover:bg-tertiary cursor-pointer",
- isSelected
- ? "bg-[var(--oh-interactive-hover)] text-white"
- : "text-[var(--oh-text-tertiary)]",
+ isSelected ? "bg-interactive-hover text-white" : "text-text-tertiary",
)}
// per-row indentation computed from tree depth at runtime
style={{ paddingLeft: `${indentPx + 16}px` }}
diff --git a/src/components/features/files-tab/workspace-path.tsx b/src/components/features/files-tab/workspace-path.tsx
index 6f6508e60d..d35b4b25a4 100644
--- a/src/components/features/files-tab/workspace-path.tsx
+++ b/src/components/features/files-tab/workspace-path.tsx
@@ -29,12 +29,10 @@ export function WorkspacePath({ path }: WorkspacePathProps) {
return (
<div
- className="flex min-w-0 items-center gap-2 border-b border-[var(--oh-border)] px-3 py-1.5 text-xs"
+ className="flex min-w-0 items-center gap-2 border-b border-border px-3 py-1.5 text-xs"
data-testid="files-tab-workspace-path"
>
- <span className="shrink-0 text-[var(--oh-muted)]">
- {t(I18nKey.WORKSPACE$TITLE)}:
- </span>
+ <span className="shrink-0 text-muted">{t(I18nKey.WORKSPACE$TITLE)}:</span>
<span
className="min-w-0 flex-1 truncate font-mono"
data-testid="files-tab-workspace-path-value"
diff --git a/src/components/features/home/featured-automations/automation-health-indicator.tsx b/src/components/features/home/featured-automations/automation-health-indicator.tsx
index 24411b040a..c2c1778528 100644
--- a/src/components/features/home/featured-automations/automation-health-indicator.tsx
+++ b/src/components/features/home/featured-automations/automation-health-indicator.tsx
@@ -17,7 +17,7 @@ export function AutomationHealthIndicator({
return (
<svg
viewBox="0 0 12 12"
- className="h-2.5 w-2.5 shrink-0 stroke-[var(--oh-status-success)]"
+ className="h-2.5 w-2.5 shrink-0 stroke-status-success"
fill="none"
strokeWidth={2.25}
strokeLinecap="round"
@@ -34,11 +34,11 @@ export function AutomationHealthIndicator({
aria-hidden="true"
className={cn(
"h-1.5 w-1.5 shrink-0 rounded-full",
- health === "failed" && "bg-[var(--oh-status-error)]",
- health === "warning" && "bg-[var(--oh-warning)]",
+ health === "failed" && "bg-status-error",
+ health === "warning" && "bg-warning",
health === "in_progress" &&
- "animate-pulse bg-[var(--oh-status-success)] motion-reduce:animate-none",
- (health === "none" || health === "unknown") && "bg-[var(--oh-border)]",
+ "animate-pulse bg-status-success motion-reduce:animate-none",
+ (health === "none" || health === "unknown") && "bg-border",
)}
/>
);
diff --git a/src/components/features/home/featured-automations/automation-run-activity-metrics.ts b/src/components/features/home/featured-automations/automation-run-activity-metrics.ts
index bf4d9673dd..a6a31bc0b8 100644
--- a/src/components/features/home/featured-automations/automation-run-activity-metrics.ts
+++ b/src/components/features/home/featured-automations/automation-run-activity-metrics.ts
@@ -73,23 +73,23 @@ export function barColorClassForStatus(
switch (status) {
case AutomationRunStatus.COMPLETED:
case "success":
- return "bg-[var(--oh-status-success)]";
+ return "bg-status-success";
case AutomationRunStatus.FAILED:
case "failed":
- return "bg-[var(--oh-status-error)]";
+ return "bg-status-error";
case "blocked":
case "partial_success":
case "unknown":
- return "bg-[var(--oh-warning)]";
+ return "bg-warning";
case AutomationRunStatus.RUNNING:
- return "bg-[var(--oh-status-success)] animate-pulse motion-reduce:animate-none";
+ return "bg-status-success animate-pulse motion-reduce:animate-none";
case AutomationRunStatus.PENDING:
// Grey hatch so pending reads as queued, distinct from solid cancelled/skipped.
return "bg-[repeating-linear-gradient(-45deg,var(--oh-muted)_0_1.5px,var(--oh-border)_1.5px_3px)]";
case AutomationRunStatus.CANCELLED:
- return "bg-[var(--oh-muted)]";
+ return "bg-muted";
default:
- return "bg-[var(--oh-border)]";
+ return "bg-border";
}
}
diff --git a/src/components/features/home/featured-automations/automation-run-activity-sparkline.tsx b/src/components/features/home/featured-automations/automation-run-activity-sparkline.tsx
index 0a554549ae..474e63791f 100644
--- a/src/components/features/home/featured-automations/automation-run-activity-sparkline.tsx
+++ b/src/components/features/home/featured-automations/automation-run-activity-sparkline.tsx
@@ -35,7 +35,7 @@ function TooltipRow({
}) {
return (
<div className="flex items-start gap-2 text-xs">
- <span className="w-16 shrink-0 text-[var(--oh-muted)]">{label}</span>
+ <span className="w-16 shrink-0 text-muted">{label}</span>
<span className="min-w-0 flex-1 break-words text-white">{children}</span>
</div>
);
@@ -59,7 +59,7 @@ function RunActivityBarTooltip({
const statusLabel = t(getAutomationRunStatusLabelKey(display.badgeStatus));
return (
- <div className="flex w-[220px] flex-col gap-2 p-3">
+ <div className="flex w-55 flex-col gap-2 p-3">
<div className="flex items-center gap-2">
<span
aria-hidden="true"
@@ -85,7 +85,7 @@ function RunActivityBarTooltip({
</div>
{display.summary ? (
- <p className="line-clamp-3 text-xs text-[var(--oh-text-secondary)]">
+ <p className="line-clamp-3 text-xs text-text-secondary">
{display.summary}
</p>
) : null}
@@ -116,13 +116,13 @@ function RunActivityBar({
closeDelay={80}
delay={200}
disableAnimation={disableAnimation}
- className="rounded-xl border border-[var(--oh-border)] bg-base-secondary p-0 text-white shadow-xl"
+ className="rounded-xl border border-border bg-base-secondary p-0 text-white shadow-xl"
>
{/* Wider hit target than the 4px bar so cancelled/skipped greys are easy to inspect. */}
<NavigationLink
to={href}
aria-label={statusLabel}
- className="group/spark-bar inline-flex h-full cursor-pointer items-end px-[2px] focus:outline-none focus-visible:ring-1 focus-visible:ring-[var(--oh-focus)]"
+ className="group/spark-bar inline-flex h-full cursor-pointer items-end px-0.5 focus:outline-none focus-visible:ring-1 focus-visible:ring-focus"
onMouseDown={(event) => event.stopPropagation()}
onClick={(event) => event.stopPropagation()}
>
diff --git a/src/components/features/home/featured-automations/home-automation-run-tooltip.tsx b/src/components/features/home/featured-automations/home-automation-run-tooltip.tsx
index 61c68931ca..d9ee099fda 100644
--- a/src/components/features/home/featured-automations/home-automation-run-tooltip.tsx
+++ b/src/components/features/home/featured-automations/home-automation-run-tooltip.tsx
@@ -47,8 +47,8 @@ function PreviewRow({
}) {
return (
<div className="flex items-start gap-2 text-xs">
- <span className="w-20 shrink-0 text-[var(--oh-muted)]">{label}</span>
- <span className="min-w-0 flex-1 break-words text-[var(--oh-foreground)]">
+ <span className="w-20 shrink-0 text-muted">{label}</span>
+ <span className="min-w-0 flex-1 break-words text-foreground">
{children}
</span>
</div>
@@ -108,7 +108,7 @@ export function HomeAutomationRunTooltip({
: null;
return (
- <div className="flex w-[280px] flex-col gap-3 p-3">
+ <div className="flex w-70 flex-col gap-3 p-3">
<span className="break-words text-sm font-medium text-white">
{automation.name}
</span>
@@ -137,7 +137,7 @@ export function HomeAutomationRunTooltip({
>
<span
data-testid="automation-tooltip-disabled-reason"
- className="line-clamp-3 text-[var(--oh-text-secondary)]"
+ className="line-clamp-3 text-text-secondary"
>
{disabledReason.text}
</span>
@@ -154,7 +154,7 @@ export function HomeAutomationRunTooltip({
{display?.summary ? (
<PreviewRow label={t(I18nKey.AUTOMATIONS$DETAIL$TASK_LABEL)}>
- <span className="line-clamp-3 text-[var(--oh-text-secondary)]">
+ <span className="line-clamp-3 text-text-secondary">
{display.summary}
</span>
</PreviewRow>
diff --git a/src/components/features/home/featured-automations/pinned-automation-card.tsx b/src/components/features/home/featured-automations/pinned-automation-card.tsx
index 032dd5e717..a543d56fb6 100644
--- a/src/components/features/home/featured-automations/pinned-automation-card.tsx
+++ b/src/components/features/home/featured-automations/pinned-automation-card.tsx
@@ -195,7 +195,7 @@ export function PinnedAutomationCard({
role="link"
tabIndex={0}
title={t(I18nKey.FEATURED_AUTOMATIONS$VIEW_DETAILS)}
- className="h-8 min-w-0 flex-1 cursor-pointer truncate text-sm font-semibold leading-8 text-[var(--oh-foreground)] hover:underline focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--oh-focus)]"
+ className="h-8 min-w-0 flex-1 cursor-pointer truncate text-sm font-semibold leading-8 text-foreground hover:underline focus:outline-none focus-visible:ring-2 focus-visible:ring-focus"
onClick={() => actions.viewDetails()}
onKeyDown={(event) => {
if (event.key === "Enter" || event.key === " ") {
@@ -220,7 +220,7 @@ export function PinnedAutomationCard({
</div>
</div>
{automation.prompt ? (
- <p className="line-clamp-2 text-xs leading-relaxed text-[var(--oh-text-secondary)]">
+ <p className="line-clamp-2 text-xs leading-relaxed text-text-secondary">
{automation.prompt}
</p>
) : null}
@@ -261,13 +261,13 @@ export function PinnedAutomationCard({
) : null}
{!isLoading && isError ? (
- <p className="truncate text-[var(--oh-text-secondary)]">
+ <p className="truncate text-text-secondary">
{t(I18nKey.FEATURED_AUTOMATIONS$STATUS_UNAVAILABLE)}
</p>
) : null}
{!isLoading && !isError && !latestRun ? (
- <p className="truncate text-[var(--oh-text-secondary)]">
+ <p className="truncate text-text-secondary">
{t(I18nKey.AUTOMATIONS$DETAIL$NO_RUNS)}
</p>
) : null}
@@ -305,14 +305,14 @@ export function PinnedAutomationCard({
placement="top"
closeDelay={100}
disableAnimation={disableAnimation}
- className="rounded-xl border border-[var(--oh-border)] bg-base-secondary p-0 text-white shadow-xl"
+ className="rounded-xl border border-border bg-base-secondary p-0 text-white shadow-xl"
>
- <span className="min-w-0 flex-1 cursor-default truncate text-[var(--oh-text-secondary)]">
+ <span className="min-w-0 flex-1 cursor-default truncate text-text-secondary">
{shortSummary}
</span>
</Tooltip>
) : (
- <p className="min-w-0 flex-1 truncate text-[var(--oh-text-secondary)]">
+ <p className="min-w-0 flex-1 truncate text-text-secondary">
{shortSummary}
</p>
)
@@ -323,7 +323,7 @@ export function PinnedAutomationCard({
to={`/conversations/${conversationId}`}
aria-label={conversationTitle}
title={conversationTitle}
- className="group/conversation inline-flex min-w-0 items-center gap-1 text-[var(--oh-foreground)] hover:text-[var(--oh-text-secondary)] focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--oh-focus)]"
+ className="group/conversation inline-flex min-w-0 items-center gap-1 text-foreground hover:text-text-secondary focus:outline-none focus-visible:ring-2 focus-visible:ring-focus"
>
<span className="truncate">{conversationTitle}</span>
<ExternalLink
@@ -334,7 +334,7 @@ export function PinnedAutomationCard({
) : null}
{!conversationId && isTerminal ? (
- <p className="min-w-0 truncate text-[var(--oh-text-secondary)]">
+ <p className="min-w-0 truncate text-text-secondary">
{t(I18nKey.AUTOMATIONS$DETAIL$NO_CONVERSATION)}
</p>
) : null}
@@ -343,7 +343,7 @@ export function PinnedAutomationCard({
</div>
{timestamp ? (
- <span className="shrink-0 text-[var(--oh-text-secondary)]">
+ <span className="shrink-0 text-text-secondary">
{formatRelativeTime(timestamp, i18n.language, t)}
</span>
) : null}
diff --git a/src/components/features/home/featured-automations/pinned-automations-dashboard.tsx b/src/components/features/home/featured-automations/pinned-automations-dashboard.tsx
index 8b105e5974..f75c64eb64 100644
--- a/src/components/features/home/featured-automations/pinned-automations-dashboard.tsx
+++ b/src/components/features/home/featured-automations/pinned-automations-dashboard.tsx
@@ -74,7 +74,7 @@ export function PinnedAutomationsDashboard() {
aria-label={t(I18nKey.FEATURED_AUTOMATIONS$PINNED_DASHBOARD_LABEL)}
className={cn("w-full", AUTOMATION_STACK_SECTION_BOTTOM_CLASS)}
>
- <h2 className="mb-2 text-sm font-medium text-[var(--oh-foreground)]">
+ <h2 className="mb-2 text-sm font-medium text-foreground">
{t(I18nKey.FEATURED_AUTOMATIONS$PINNED_TITLE)}
</h2>
@@ -116,7 +116,7 @@ export function PinnedAutomationsDashboard() {
type="button"
data-testid="pinned-automations-view-more"
onClick={() => setIsExpanded((value) => !value)}
- className="text-xs text-[var(--oh-text-secondary)] hover:text-[var(--oh-foreground)]"
+ className="text-xs text-text-secondary hover:text-foreground"
>
{t(
isExpanded ? I18nKey.COMMON$VIEW_LESS : I18nKey.COMMON$VIEW_MORE,
diff --git a/src/components/features/home/featured-automations/running-automations-list.tsx b/src/components/features/home/featured-automations/running-automations-list.tsx
index 0634d0c762..255ae0b7a7 100644
--- a/src/components/features/home/featured-automations/running-automations-list.tsx
+++ b/src/components/features/home/featured-automations/running-automations-list.tsx
@@ -108,22 +108,22 @@ function RunningAutomationRow({
placement="top-start"
closeDelay={100}
disableAnimation={disableAnimation}
- className="rounded-xl border border-[var(--oh-border)] bg-base-secondary p-0 text-white shadow-xl"
+ className="rounded-xl border border-border bg-base-secondary p-0 text-white shadow-xl"
>
<NavigationLink
to={hrefForActivityItem(item)}
aria-label={`${item.name} ${t(statusLabelKey)}`}
- className="flex min-w-0 flex-1 items-center justify-between gap-3 px-3 py-2.5 focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--oh-focus)]"
+ className="flex min-w-0 flex-1 items-center justify-between gap-3 px-3 py-2.5 focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus"
>
<div className="grid min-w-0 flex-1 grid-cols-[auto_minmax(0,1fr)] gap-x-2">
<span className="inline-flex h-5 w-2.5 shrink-0 items-center justify-center">
<AutomationHealthIndicator health={health} />
</span>
- <span className="truncate text-sm font-medium leading-5 text-[var(--oh-foreground)]">
+ <span className="truncate text-sm font-medium leading-5 text-foreground">
{item.name}
</span>
{hasMeta ? (
- <span className="col-start-2 mt-0.5 flex min-w-0 items-center gap-1.5 text-xs leading-4 text-[var(--oh-text-secondary)]">
+ <span className="col-start-2 mt-0.5 flex min-w-0 items-center gap-1.5 text-xs leading-4 text-text-secondary">
<TriggerIcon className="size-3 shrink-0" aria-hidden="true" />
{triggerEventLabel ? (
<span className="truncate">{triggerEventLabel}</span>
@@ -135,7 +135,7 @@ function RunningAutomationRow({
<span
className={cn(
extensionModuleCardPillClassName,
- "shrink-0 px-1.5 py-0 text-[var(--oh-text-secondary)]",
+ "shrink-0 px-1.5 py-0 text-text-secondary",
)}
>
{formatTriggerSourceLabel(triggerSource)}
@@ -264,7 +264,7 @@ export function RunningAutomationsList() {
<div className="mb-2 flex items-center justify-between gap-2">
<h2
id="running-automations-heading"
- className="text-sm font-medium text-[var(--oh-foreground)]"
+ className="text-sm font-medium text-foreground"
>
{t(I18nKey.FEATURED_AUTOMATIONS$SECTION_TITLE)}
</h2>
@@ -276,7 +276,7 @@ export function RunningAutomationsList() {
to="/automations"
data-testid="home-automations-manage"
aria-label={t(I18nKey.FEATURED_AUTOMATIONS$MANAGE)}
- className="inline-flex items-center gap-1 rounded-md px-1.5 py-0.5 text-xs font-medium text-[var(--oh-text-secondary)] transition-colors hover:bg-[var(--oh-interactive-hover)] hover:text-[var(--oh-foreground)] focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--oh-focus)]"
+ className="inline-flex items-center gap-1 rounded-md px-1.5 py-0.5 text-xs font-medium text-text-secondary transition-colors hover:bg-interactive-hover hover:text-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-focus"
>
<Plus className="size-3" aria-hidden="true" />
{t(I18nKey.BUTTON$ADD)}
@@ -287,7 +287,7 @@ export function RunningAutomationsList() {
{isEmpty ? (
<p
data-testid="running-automations-empty-hint"
- className="rounded-xl border border-[var(--oh-border-subtle)] bg-[var(--oh-surface)] px-4 py-3 text-xs text-[var(--oh-text-secondary)]"
+ className="rounded-xl border border-border-subtle bg-surface px-4 py-3 text-xs text-text-secondary"
>
{t(I18nKey.FEATURED_AUTOMATIONS$EMPTY_HINT)}
</p>
@@ -317,7 +317,7 @@ export function RunningAutomationsList() {
type="button"
data-testid="home-automations-view-more"
onClick={() => setIsExpanded(true)}
- className="rounded-md px-1.5 py-0.5 text-xs font-medium text-[var(--oh-text-secondary)] transition-colors hover:bg-[var(--oh-interactive-hover)] hover:text-[var(--oh-foreground)] focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--oh-focus)]"
+ className="rounded-md px-1.5 py-0.5 text-xs font-medium text-text-secondary transition-colors hover:bg-interactive-hover hover:text-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-focus"
>
{t(I18nKey.COMMON$VIEW_MORE)}
</button>
@@ -329,7 +329,7 @@ export function RunningAutomationsList() {
<NavigationLink
to="/automations"
data-testid="home-automations-view-all"
- className="rounded-md px-1.5 py-0.5 text-xs font-medium text-[var(--oh-text-secondary)] transition-colors hover:bg-[var(--oh-interactive-hover)] hover:text-[var(--oh-foreground)] focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--oh-focus)]"
+ className="rounded-md px-1.5 py-0.5 text-xs font-medium text-text-secondary transition-colors hover:bg-interactive-hover hover:text-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-focus"
>
{t(I18nKey.FEATURED_AUTOMATIONS$VIEW_ALL)}
</NavigationLink>
diff --git a/src/components/features/home/git-branch-dropdown/git-branch-dropdown.tsx b/src/components/features/home/git-branch-dropdown/git-branch-dropdown.tsx
index 9af809bc15..122cce420d 100644
--- a/src/components/features/home/git-branch-dropdown/git-branch-dropdown.tsx
+++ b/src/components/features/home/git-branch-dropdown/git-branch-dropdown.tsx
@@ -187,7 +187,7 @@ export function GitBranchDropdown({
return (
<div className={cn("relative", className)}>
- <div className="group relative text-[var(--oh-muted)] hover:text-white">
+ <div className="group relative text-muted hover:text-white">
<div className="absolute left-2 top-1/2 transform -translate-y-1/2 z-10">
{isLoadingState ? (
<div className="animate-spin h-4 w-4 border-2 border-transparent border-t-white rounded-full" />
@@ -203,7 +203,7 @@ export function GitBranchDropdown({
className: cn(
formControlFieldClassName,
"text-inherit shadow-none pl-7 pr-16 text-sm font-normal leading-5",
- "placeholder:text-[var(--oh-muted)]",
+ "placeholder:text-muted",
"disabled:cursor-not-allowed disabled:opacity-60",
),
// Direct onChange for cursor position preservation
diff --git a/src/components/features/home/git-provider-dropdown/git-provider-dropdown.tsx b/src/components/features/home/git-provider-dropdown/git-provider-dropdown.tsx
index c22ca7ed87..49289ee358 100644
--- a/src/components/features/home/git-provider-dropdown/git-provider-dropdown.tsx
+++ b/src/components/features/home/git-provider-dropdown/git-provider-dropdown.tsx
@@ -159,13 +159,13 @@ export function GitProviderDropdown({
return (
<div className={cn("relative", className)}>
- <div className="group relative text-[var(--oh-muted)] hover:text-white">
+ <div className="group relative text-muted hover:text-white">
{/* Provider icon */}
{selectedItem && (
<div className="absolute left-2 top-1/2 transform -translate-y-1/2 z-10">
<GitProviderIcon
gitProvider={selectedItem}
- className="min-w-[14px] min-h-[14px] w-[14px] h-[14px]"
+ className="min-w-3.5 min-h-3.5 w-3.5 h-3.5"
/>
</div>
)}
@@ -177,11 +177,11 @@ export function GitProviderDropdown({
placeholder ?? t(I18nKey.COMMON$SELECT_PROVIDER_PLACEHOLDER),
readOnly: true, // Make it non-searchable like the original
className: cn(
- "w-29.5 h-6 py-0 border border-[var(--oh-border-input)] rounded shadow-none h-6 min-h-6 max-h-6 ",
- "text-inherit bg-tertiary placeholder:text-[var(--oh-muted)]",
- "focus:outline-none focus:ring-0 focus:border-[var(--oh-border-input)]",
+ "w-29.5 h-6 py-0 border border-border-input rounded shadow-none h-6 min-h-6 max-h-6 ",
+ "text-inherit bg-tertiary placeholder:text-muted",
+ "focus:outline-none focus:ring-0 focus:border-border-input",
"disabled:bg-tertiary disabled:cursor-not-allowed disabled:opacity-60",
- "pl-1.5 pr-[1px] cursor-pointer text-xs font-normal leading-5", // Space for toggle button and pointer cursor
+ "pl-1.5 pr-px cursor-pointer text-xs font-normal leading-5", // Space for toggle button and pointer cursor
selectedItem && "pl-6",
inputClassName,
),
diff --git a/src/components/features/home/git-repo-dropdown/git-repo-dropdown.tsx b/src/components/features/home/git-repo-dropdown/git-repo-dropdown.tsx
index a9061a2ef0..46495ffad9 100644
--- a/src/components/features/home/git-repo-dropdown/git-repo-dropdown.tsx
+++ b/src/components/features/home/git-repo-dropdown/git-repo-dropdown.tsx
@@ -287,7 +287,7 @@ export function GitRepoDropdown({
return (
<div className={cn("relative", className)}>
- <div className="group relative text-[var(--oh-muted)] hover:text-white">
+ <div className="group relative text-muted hover:text-white">
<div className="absolute left-2 top-1/2 transform -translate-y-1/2 z-10">
{isLoadingState ? (
<div className="animate-spin h-4 w-4 border-2 border-transparent border-t-white rounded-full" />
@@ -303,7 +303,7 @@ export function GitRepoDropdown({
className: cn(
formControlFieldClassName,
"text-inherit shadow-none pl-7 pr-16 text-sm font-normal leading-5",
- "placeholder:text-[var(--oh-muted)]",
+ "placeholder:text-muted",
"disabled:cursor-not-allowed disabled:opacity-60",
),
// Direct onChange for cursor position preservation
diff --git a/src/components/features/home/home-chat-launcher.tsx b/src/components/features/home/home-chat-launcher.tsx
index 1c7c5643df..3be6692720 100644
--- a/src/components/features/home/home-chat-launcher.tsx
+++ b/src/components/features/home/home-chat-launcher.tsx
@@ -232,7 +232,7 @@ export function HomeChatLauncher() {
data-testid="home-chat-launcher"
className="flex w-full flex-col items-center pt-[max(4rem,28vh)] pb-10"
>
- <div className="flex w-full max-w-[800px] flex-col gap-4 md:px-4">
+ <div className="flex w-full max-w-200 flex-col gap-4 md:px-4">
<div className="flex w-full justify-center">
<HomeHeaderTitle />
</div>
diff --git a/src/components/features/home/llm-not-configured-banner.tsx b/src/components/features/home/llm-not-configured-banner.tsx
index 860456e61f..b3a103ea29 100644
--- a/src/components/features/home/llm-not-configured-banner.tsx
+++ b/src/components/features/home/llm-not-configured-banner.tsx
@@ -29,7 +29,7 @@ export function LlmNotConfiguredBanner() {
<div
data-testid="home-llm-not-configured-banner"
role="alert"
- className="mt-3 flex w-full flex-col gap-3 rounded-xl border border-[var(--oh-border)] bg-[var(--oh-surface-raised)] px-4 py-3 text-[var(--oh-foreground)] sm:flex-row sm:items-center sm:justify-between sm:py-4"
+ className="mt-3 flex w-full flex-col gap-3 rounded-xl border border-border bg-surface-raised px-4 py-3 text-foreground sm:flex-row sm:items-center sm:justify-between sm:py-4"
>
<div className="flex min-w-0 items-start sm:items-center">
<div className="flex-shrink-0">
diff --git a/src/components/features/home/open-repository-dialog.tsx b/src/components/features/home/open-repository-dialog.tsx
index a297126ecd..bf93e873f0 100644
--- a/src/components/features/home/open-repository-dialog.tsx
+++ b/src/components/features/home/open-repository-dialog.tsx
@@ -33,7 +33,7 @@ export function OpenRepositoryDialog({
<ModalBackdrop onClose={onClose}>
<ModalBody
width="sm"
- className="relative items-start border border-[var(--oh-border)] !gap-4"
+ className="relative items-start border border-border !gap-4"
>
<ModalCloseButton
onClose={onClose}
diff --git a/src/components/features/home/open-workspace-dialog.tsx b/src/components/features/home/open-workspace-dialog.tsx
index ed93ddfa8c..c65c9ecf57 100644
--- a/src/components/features/home/open-workspace-dialog.tsx
+++ b/src/components/features/home/open-workspace-dialog.tsx
@@ -28,7 +28,7 @@ export function OpenWorkspaceDialog({
<ModalBackdrop onClose={onClose}>
<ModalBody
width="sm"
- className="relative items-start border border-[var(--oh-border)] !gap-4"
+ className="relative items-start border border-border !gap-4"
>
<ModalCloseButton
onClose={onClose}
diff --git a/src/components/features/home/repo-selection-form.tsx b/src/components/features/home/repo-selection-form.tsx
index a019358cbb..781eee1025 100644
--- a/src/components/features/home/repo-selection-form.tsx
+++ b/src/components/features/home/repo-selection-form.tsx
@@ -122,7 +122,7 @@ export function RepositorySelectionForm({
<GitProviderDropdown
providers={providers}
value={selectedProvider}
- className="max-w-[500px]"
+ className="max-w-125"
onChange={handleProviderSelection}
disabled={isLoadingSettings}
/>
@@ -178,7 +178,7 @@ export function RepositorySelectionForm({
already shows the same title, so this would be redundant. */}
{!onConfirm && (
<div className="flex items-center justify-between">
- <div className="flex items-center gap-[10px] pb-4">
+ <div className="flex items-center gap-2.5 pb-4">
<RepoForkedIcon width={24} height={24} />
<span className="leading-5 font-bold text-base text-white">
{t(I18nKey.COMMON$OPEN_REPOSITORY)}
@@ -187,9 +187,9 @@ export function RepositorySelectionForm({
</div>
)}
- <div className="flex flex-col gap-[10px] pb-4">
+ <div className="flex flex-col gap-2.5 pb-4">
<div className="flex items-center justify-between">
- <span className="text-sm text-white font-normal leading-[22px]">
+ <span className="text-sm text-white font-normal leading-5.5">
{t(I18nKey.HOME$SELECT_OR_INSERT_URL)}
</span>
{renderProviderSelector()}
diff --git a/src/components/features/home/shared/dropdown-item.tsx b/src/components/features/home/shared/dropdown-item.tsx
index 28e0612624..d2e2c5a3e9 100644
--- a/src/components/features/home/shared/dropdown-item.tsx
+++ b/src/components/features/home/shared/dropdown-item.tsx
@@ -47,8 +47,8 @@ export function DropdownItem<T>({
"text-white focus:outline-none font-normal",
dropdownInstantColorClassName,
{
- "bg-[var(--oh-interactive-selected)] text-white": isSelected,
- "hover:bg-[var(--oh-interactive-hover)]": !isSelected,
+ "bg-interactive-selected text-white": isSelected,
+ "hover:bg-interactive-hover": !isSelected,
},
itemClassName,
),
diff --git a/src/components/features/home/shared/empty-state.tsx b/src/components/features/home/shared/empty-state.tsx
index 86fcb57601..0f3331066d 100644
--- a/src/components/features/home/shared/empty-state.tsx
+++ b/src/components/features/home/shared/empty-state.tsx
@@ -15,7 +15,7 @@ export function EmptyState({
}: EmptyStateProps) {
return (
<li
- className="px-3 py-2 text-[var(--oh-text-secondary)] text-sm rounded-lg mx-0.5 my-0.5"
+ className="px-3 py-2 text-text-secondary text-sm rounded-lg mx-0.5 my-0.5"
data-testid={testId}
>
{inputValue ? searchMessage : emptyMessage}
diff --git a/src/components/features/home/shared/generic-dropdown-menu.tsx b/src/components/features/home/shared/generic-dropdown-menu.tsx
index a5d22882bc..6e136f0470 100644
--- a/src/components/features/home/shared/generic-dropdown-menu.tsx
+++ b/src/components/features/home/shared/generic-dropdown-menu.tsx
@@ -86,7 +86,7 @@ export function GenericDropdownMenu<T>({
<div className="relative">
<div
className={cn(
- "absolute z-10 w-full bg-tertiary border border-[var(--oh-border-input)] rounded-lg shadow-none",
+ "absolute z-10 w-full bg-tertiary border border-border-input rounded-lg shadow-none",
"focus:outline-none mt-1 z-[9999]",
stickyTopItem || stickyFooterItem ? "max-h-60" : "max-h-60",
)}
@@ -127,7 +127,7 @@ export function GenericDropdownMenu<T>({
<li
role="presentation"
aria-hidden="true"
- className="border-b border-[var(--oh-border-input)] bg-tertiary pb-1 mb-1 h-[1px]"
+ className="border-b border-border-input bg-tertiary pb-1 mb-1 h-px"
/>
)}
</React.Fragment>
@@ -137,7 +137,7 @@ export function GenericDropdownMenu<T>({
)}
</ul>
{stickyFooterItem && (
- <div className="border-t border-[var(--oh-border-input)] bg-tertiary p-1 rounded-b-lg">
+ <div className="border-t border-border-input bg-tertiary p-1 rounded-b-lg">
{stickyFooterItem}
</div>
)}
diff --git a/src/components/features/home/workspace-dropdown/folder-browser-modal.tsx b/src/components/features/home/workspace-dropdown/folder-browser-modal.tsx
index b8c1acd6d4..e51bda13ce 100644
--- a/src/components/features/home/workspace-dropdown/folder-browser-modal.tsx
+++ b/src/components/features/home/workspace-dropdown/folder-browser-modal.tsx
@@ -51,7 +51,7 @@ function SidebarSection({
if (entries.length === 0) return null;
return (
<div className="px-2 pb-3">
- <div className="px-2 pb-1 text-[11px] uppercase tracking-wide text-[var(--oh-muted)] font-semibold">
+ <div className="px-2 pb-1 text-[11px] uppercase tracking-wide text-muted font-semibold">
{label}
</div>
<ul>
@@ -67,7 +67,7 @@ function SidebarSection({
"flex items-center gap-2 w-full px-2 py-1 rounded text-sm cursor-pointer",
isActive
? "bg-tertiary text-white"
- : "text-[var(--oh-text-tertiary)] hover:bg-[var(--oh-surface-raised)]",
+ : "text-text-tertiary hover:bg-surface-raised",
)}
>
<FolderIcon width={14} height={14} className="shrink-0" />
@@ -232,14 +232,14 @@ export function FolderBrowserModal({
<div
data-testid="folder-browser-modal"
className={cn(
- "flex flex-col bg-[var(--oh-surface)] border border-[var(--oh-border-input)] rounded-xl",
+ "flex flex-col bg-surface border border-border-input rounded-xl",
modalWidthClassName("xl"),
MODAL_MAX_WIDTH_VIEWPORT,
- "h-[480px]",
+ "h-120",
)}
>
{/* Title bar */}
- <div className="flex items-center justify-between px-5 py-3 border-b border-[var(--oh-border-input)]">
+ <div className="flex items-center justify-between px-5 py-3 border-b border-border-input">
<BaseModalTitle
className={modalTitleSmClassName}
title={t(I18nKey.HOME$ADD_WORKSPACES_TITLE)}
@@ -251,7 +251,7 @@ export function FolderBrowserModal({
{/* Sidebar */}
<aside
data-testid="folder-browser-sidebar"
- className="w-[180px] shrink-0 border-r border-[var(--oh-border-input)] bg-[var(--oh-surface)] py-3 overflow-y-auto"
+ className="w-45 shrink-0 border-r border-border-input bg-surface py-3 overflow-y-auto"
>
<SidebarSection
label={t(I18nKey.HOME$FAVORITES)}
@@ -270,19 +270,19 @@ export function FolderBrowserModal({
{/* Main */}
<div className="flex-1 flex flex-col min-w-0">
{/* Nav row */}
- <div className="flex items-center gap-2 px-4 py-2 border-b border-[var(--oh-border-input)]">
+ <div className="flex items-center gap-2 px-4 py-2 border-b border-border-input">
<button
type="button"
data-testid="folder-browser-up"
onClick={() => parent && setCurrentPath(parent)}
disabled={!parent}
aria-label={t(I18nKey.COMMON$UP)}
- className="p-1 rounded hover:bg-[var(--oh-interactive-hover)] text-white disabled:opacity-40 disabled:cursor-not-allowed cursor-pointer"
+ className="p-1 rounded hover:bg-interactive-hover text-white disabled:opacity-40 disabled:cursor-not-allowed cursor-pointer"
>
<ChevronLeft width={16} height={16} />
</button>
<span
- className="text-xs text-[var(--oh-muted)] truncate"
+ className="text-xs text-muted truncate"
data-testid="folder-browser-current-path"
>
{currentPath ?? ""}
@@ -290,7 +290,7 @@ export function FolderBrowserModal({
</div>
{/* Column headers */}
- <div className="grid grid-cols-[1fr_120px] px-4 py-1 border-b border-[var(--oh-border-input)] text-xs text-[var(--oh-text-secondary)] font-semibold">
+ <div className="grid grid-cols-[1fr_120px] px-4 py-1 border-b border-border-input text-xs text-text-secondary font-semibold">
<span>{t(I18nKey.HOME$NAME)}</span>
<span>{t(I18nKey.HOME$KIND)}</span>
</div>
@@ -301,7 +301,7 @@ export function FolderBrowserModal({
data-testid="folder-browser-list"
>
{isLoading && (
- <li className="px-4 py-2 text-sm text-[var(--oh-text-secondary)]">
+ <li className="px-4 py-2 text-sm text-text-secondary">
{t(I18nKey.HOME$LOADING)}
</li>
)}
@@ -316,7 +316,7 @@ export function FolderBrowserModal({
)}
{!isLoading && !isError && subdirs.length === 0 && (
<li
- className="px-4 py-2 text-sm text-[var(--oh-text-secondary)]"
+ className="px-4 py-2 text-sm text-text-secondary"
data-testid={
showHostHomeHint
? "folder-browser-host-home-hint"
@@ -333,14 +333,14 @@ export function FolderBrowserModal({
<button
type="button"
onClick={() => setCurrentPath(entry.path)}
- className="grid grid-cols-[1fr_120px] items-center w-full text-left px-4 py-1.5 text-sm text-white hover:bg-[var(--oh-interactive-hover)] cursor-pointer"
+ className="grid grid-cols-[1fr_120px] items-center w-full text-left px-4 py-1.5 text-sm text-white hover:bg-interactive-hover cursor-pointer"
data-testid={`folder-browser-entry-${entry.name}`}
>
<span className="flex items-center gap-2 min-w-0">
<FolderIcon width={16} height={16} className="shrink-0" />
<span className="truncate">{entry.name}</span>
</span>
- <span className="text-[var(--oh-text-secondary)] text-xs">
+ <span className="text-text-secondary text-xs">
{t(I18nKey.HOME$FOLDER)}
</span>
</button>
@@ -351,7 +351,7 @@ export function FolderBrowserModal({
</div>
{/* Footer */}
- <div className="flex items-center justify-end gap-2 px-5 py-3 border-t border-[var(--oh-border-input)]">
+ <div className="flex items-center justify-end gap-2 px-5 py-3 border-t border-border-input">
<BrandButton
type="button"
variant="secondary"
diff --git a/src/components/features/home/workspace-dropdown/manage-workspaces-modal.tsx b/src/components/features/home/workspace-dropdown/manage-workspaces-modal.tsx
index d75815dd72..1c7a5f38ea 100644
--- a/src/components/features/home/workspace-dropdown/manage-workspaces-modal.tsx
+++ b/src/components/features/home/workspace-dropdown/manage-workspaces-modal.tsx
@@ -76,13 +76,13 @@ export function ManageWorkspacesModal({
<div
data-testid="manage-workspaces-modal"
className={cn(
- "flex flex-col bg-[var(--oh-surface)] border border-[var(--oh-border-input)] rounded-xl",
+ "flex flex-col bg-surface border border-border-input rounded-xl",
modalWidthClassName("lg"),
MODAL_MAX_WIDTH_VIEWPORT,
"max-h-[70vh]",
)}
>
- <div className="flex items-center justify-between px-5 py-3 border-b border-[var(--oh-border-input)]">
+ <div className="flex items-center justify-between px-5 py-3 border-b border-border-input">
<BaseModalTitle
className={modalTitleSmClassName}
title={t(I18nKey.HOME$MANAGE_WORKSPACES)}
@@ -94,7 +94,7 @@ export function ManageWorkspacesModal({
data-testid="manage-workspaces-list"
>
{!hasContent && (
- <p className="px-5 py-6 text-sm text-[var(--oh-text-secondary)] text-center">
+ <p className="px-5 py-6 text-sm text-text-secondary text-center">
{t(I18nKey.HOME$MANAGE_WORKSPACES_EMPTY)}
</p>
)}
@@ -104,7 +104,7 @@ export function ManageWorkspacesModal({
{staticWorkspaces.map((workspace) => (
<li
key={workspace.id}
- className="flex items-center gap-3 px-5 py-2 border-b border-[var(--oh-border-subtle)] last:border-b-0"
+ className="flex items-center gap-3 px-5 py-2 border-b border-border-subtle last:border-b-0"
data-testid={`manage-workspaces-row-${workspace.name}`}
>
<FolderIcon width={16} height={16} className="shrink-0" />
@@ -112,7 +112,7 @@ export function ManageWorkspacesModal({
<span className="text-sm text-white truncate">
{workspace.name}
</span>
- <span className="text-xs text-[var(--oh-muted)] truncate">
+ <span className="text-xs text-muted truncate">
{workspace.path}
</span>
</div>
@@ -129,7 +129,7 @@ export function ManageWorkspacesModal({
}
aria-label={t(I18nKey.HOME$REMOVE_WORKSPACE)}
data-testid={`manage-workspaces-remove-${workspace.name}`}
- className="flex items-center gap-1 px-2 py-1 rounded text-xs text-[var(--oh-text-tertiary)] hover:bg-[var(--oh-interactive-hover)] hover:text-white cursor-pointer"
+ className="flex items-center gap-1 px-2 py-1 rounded text-xs text-text-tertiary hover:bg-interactive-hover hover:text-white cursor-pointer"
>
<CloseIcon width={12} height={12} />
<span>{t(I18nKey.HOME$REMOVE_WORKSPACE)}</span>
@@ -141,7 +141,7 @@ export function ManageWorkspacesModal({
{workspaceParents.length > 0 && (
<div data-testid="manage-workspaces-parents-section">
- <div className="px-5 pt-3 pb-1 text-[11px] uppercase tracking-wide text-[var(--oh-muted)] font-semibold">
+ <div className="px-5 pt-3 pb-1 text-[11px] uppercase tracking-wide text-muted font-semibold">
{t(I18nKey.HOME$WORKSPACE_PARENTS)}
</div>
<ul>
@@ -151,7 +151,7 @@ export function ManageWorkspacesModal({
return (
<li
key={parent.id}
- className="border-b border-[var(--oh-border-subtle)] last:border-b-0"
+ className="border-b border-border-subtle last:border-b-0"
data-testid={`manage-workspaces-parent-row-${parent.name}`}
>
<div className="flex items-center gap-3 px-5 py-2">
@@ -164,7 +164,7 @@ export function ManageWorkspacesModal({
<span className="text-sm text-white truncate">
{parent.name}
</span>
- <span className="text-xs text-[var(--oh-muted)] truncate">
+ <span className="text-xs text-muted truncate">
{parent.path}
</span>
</div>
@@ -188,7 +188,7 @@ export function ManageWorkspacesModal({
I18nKey.HOME$REMOVE_WORKSPACE_PARENT,
)}
data-testid={`manage-workspaces-remove-parent-${parent.name}`}
- className="flex items-center gap-1 px-2 py-1 rounded text-xs text-[var(--oh-text-tertiary)] hover:bg-[var(--oh-interactive-hover)] hover:text-white cursor-pointer"
+ className="flex items-center gap-1 px-2 py-1 rounded text-xs text-text-tertiary hover:bg-interactive-hover hover:text-white cursor-pointer"
>
<CloseIcon width={12} height={12} />
<span>
@@ -202,7 +202,7 @@ export function ManageWorkspacesModal({
{children.map((child) => (
<li
key={child.id}
- className="flex items-center gap-3 px-5 pl-10 py-1 text-xs text-[var(--oh-text-secondary)]"
+ className="flex items-center gap-3 px-5 pl-10 py-1 text-xs text-text-secondary"
data-testid={`manage-workspaces-child-${child.name}`}
>
<FolderIcon
@@ -223,7 +223,7 @@ export function ManageWorkspacesModal({
)}
</div>
- <div className="flex justify-end gap-2 px-5 py-3 border-t border-[var(--oh-border-input)]">
+ <div className="flex justify-end gap-2 px-5 py-3 border-t border-border-input">
<BrandButton
type="button"
variant="primary"
diff --git a/src/components/features/home/workspace-dropdown/workspace-dropdown.tsx b/src/components/features/home/workspace-dropdown/workspace-dropdown.tsx
index 7e0c35a782..a170af1434 100644
--- a/src/components/features/home/workspace-dropdown/workspace-dropdown.tsx
+++ b/src/components/features/home/workspace-dropdown/workspace-dropdown.tsx
@@ -317,7 +317,7 @@ export function WorkspaceDropdown({
const control = (
<div className={cn("relative", className)}>
- <div className="group relative text-[var(--oh-muted)] hover:text-white">
+ <div className="group relative text-muted hover:text-white">
<div className="absolute left-2 top-1/2 transform -translate-y-1/2 z-10">
<RepoIcon width={16} height={16} />
</div>
@@ -331,7 +331,7 @@ export function WorkspaceDropdown({
className: cn(
formControlFieldClassName,
"text-inherit shadow-none pl-7 pr-16 text-sm font-normal leading-5",
- "placeholder:text-[var(--oh-muted)]",
+ "placeholder:text-muted",
"disabled:cursor-not-allowed disabled:opacity-60",
),
onChange: (e: React.ChangeEvent<HTMLInputElement>) => {
@@ -371,7 +371,7 @@ export function WorkspaceDropdown({
role="presentation"
aria-hidden="true"
data-testid="workspace-group-header"
- className="px-2 pt-2 pb-1 text-xs font-medium text-[var(--oh-muted)] select-none"
+ className="px-2 pt-2 pb-1 text-xs font-medium text-muted select-none"
>
{label}
</li>
diff --git a/src/components/features/home/workspace-selection-form.tsx b/src/components/features/home/workspace-selection-form.tsx
index 49e5dffc7b..ac31005df8 100644
--- a/src/components/features/home/workspace-selection-form.tsx
+++ b/src/components/features/home/workspace-selection-form.tsx
@@ -173,7 +173,7 @@ export function WorkspaceSelectionForm({
{/* Skip the in-form "Workspaces" header in dialog mode β€” the dialog
already shows an "Open Workspace" title, so this would be redundant. */}
{!onConfirm && (
- <div className="flex items-center gap-[10px] pb-4">
+ <div className="flex items-center gap-2.5 pb-4">
<FolderIcon width={24} height={24} />
<span className="leading-5 font-bold text-base text-white">
{t(I18nKey.HOME$WORKSPACES_TAB)}
@@ -181,7 +181,7 @@ export function WorkspaceSelectionForm({
</div>
)}
- <div className="flex flex-col gap-[10px] pb-4">
+ <div className="flex flex-col gap-2.5 pb-4">
<WorkspaceDropdown
workspaces={workspaces}
parents={resolvedParents}
@@ -205,7 +205,7 @@ export function WorkspaceSelectionForm({
{showWorkspaceStatus && workspaceStatusText && (
<p
- className="px-1 text-xs text-[var(--oh-text-secondary)]"
+ className="px-1 text-xs text-text-secondary"
data-testid="workspace-status-message"
>
{workspaceStatusText}
diff --git a/src/components/features/images/image-preview.tsx b/src/components/features/images/image-preview.tsx
index 365c4dac76..2ba021a945 100644
--- a/src/components/features/images/image-preview.tsx
+++ b/src/components/features/images/image-preview.tsx
@@ -34,7 +34,7 @@ export function ImagePreview({
<RemoveButton
onClick={onRemove}
aria-label={t(I18nKey.BUTTON$REMOVE_IMAGE)}
- className="absolute right-[3px] top-[3px] cursor-pointer"
+ className="absolute right-0.75 top-0.75 cursor-pointer"
/>
)}
{isExpanded && (
diff --git a/src/components/features/images/thumbnail.tsx b/src/components/features/images/thumbnail.tsx
index c76fce61b2..05bcf20f70 100644
--- a/src/components/features/images/thumbnail.tsx
+++ b/src/components/features/images/thumbnail.tsx
@@ -13,8 +13,8 @@ export function Thumbnail({ src, size = "small" }: ThumbnailProps) {
src={src}
className={cn(
"rounded-sm object-cover",
- size === "small" && "w-[62px] h-[62px]",
- size === "large" && "w-[100px] h-[100px]",
+ size === "small" && "w-15.5 h-15.5",
+ size === "large" && "w-25 h-25",
)}
/>
);
diff --git a/src/components/features/launch/plugin-launch-modal.tsx b/src/components/features/launch/plugin-launch-modal.tsx
index 133deabd55..7c859b4af6 100644
--- a/src/components/features/launch/plugin-launch-modal.tsx
+++ b/src/components/features/launch/plugin-launch-modal.tsx
@@ -131,7 +131,7 @@ export function PluginLaunchModal({
<div
data-testid="plugin-launch-modal"
className={cn(
- "relative bg-base-secondary p-6 rounded-xl flex flex-col gap-4 border border-[var(--oh-border)] max-h-[80vh]",
+ "relative bg-base-secondary p-6 rounded-xl flex flex-col gap-4 border border-border max-h-[80vh]",
modalWidthClassName("md"),
MODAL_MAX_WIDTH_VIEWPORT,
)}
@@ -192,7 +192,7 @@ export function PluginLaunchModal({
)}
</div>
- <div className="pt-4 border-t border-[var(--oh-border-subtle)]">
+ <div className="pt-4 border-t border-border-subtle">
<div className="flex items-start gap-3 mb-4">
<input
id="trust-checkbox"
diff --git a/src/components/features/launch/plugin-launch-plugin-section.tsx b/src/components/features/launch/plugin-launch-plugin-section.tsx
index 7dd228ae9f..5c491f1525 100644
--- a/src/components/features/launch/plugin-launch-plugin-section.tsx
+++ b/src/components/features/launch/plugin-launch-plugin-section.tsx
@@ -35,7 +35,7 @@ export function PluginLaunchPluginSection({
}
return (
- <div className="rounded-lg border border-[var(--oh-border)] bg-tertiary">
+ <div className="rounded-lg border border-border bg-tertiary">
<button
type="button"
onClick={onToggle}
@@ -53,7 +53,7 @@ export function PluginLaunchPluginSection({
</button>
{isExpanded && (
- <div className="border-t border-[var(--oh-border-subtle)] px-4 pb-3">
+ <div className="border-t border-border-subtle px-4 pb-3">
{plugin.ref && (
<div className="mb-2 text-sm text-white">
{t(I18nKey.LAUNCH$PLUGIN_REF)} {plugin.ref}
diff --git a/src/components/features/manifest/manifest-form-field.tsx b/src/components/features/manifest/manifest-form-field.tsx
index 94f344da54..97169ece3b 100644
--- a/src/components/features/manifest/manifest-form-field.tsx
+++ b/src/components/features/manifest/manifest-form-field.tsx
@@ -62,7 +62,7 @@ export function SetupFormField({
const { t } = useTranslation("openhands");
const { backend } = useActiveBackend();
const testId = `setup-field-${name}`;
- const help = <p className="text-xs text-[var(--oh-muted)]">{field.help}</p>;
+ const help = <p className="text-xs text-muted">{field.help}</p>;
// Listing a user's repositories is a cloud-backend capability: `GitService`
// answers with an empty page on any other backend, so the picker would offer
@@ -208,7 +208,7 @@ export function SetupFormField({
)}
/>
{fieldText(value) && (
- <p className="text-xs text-[var(--oh-muted)]">{fieldText(value)}</p>
+ <p className="text-xs text-muted">{fieldText(value)}</p>
)}
<FieldError testId={testId} error={error} />
{help}
diff --git a/src/components/features/manifest/manifest-overview-tiles.tsx b/src/components/features/manifest/manifest-overview-tiles.tsx
index 5629feef9e..86adf236e1 100644
--- a/src/components/features/manifest/manifest-overview-tiles.tsx
+++ b/src/components/features/manifest/manifest-overview-tiles.tsx
@@ -37,10 +37,7 @@ export function ManifestOverviewTiles({
>
<div className="flex items-center justify-between gap-2">
<span className="truncate text-xs text-muted">{tile.label}</span>
- <tile.Icon
- className="size-4 shrink-0 text-[var(--oh-muted)]"
- aria-hidden
- />
+ <tile.Icon className="size-4 shrink-0 text-muted" aria-hidden />
</div>
<div className="mt-2 text-xl font-semibold text-content">
{tile.value}
diff --git a/src/components/features/manifest/manifest-prerequisites-step.tsx b/src/components/features/manifest/manifest-prerequisites-step.tsx
index c6f95bb020..f2344e3a88 100644
--- a/src/components/features/manifest/manifest-prerequisites-step.tsx
+++ b/src/components/features/manifest/manifest-prerequisites-step.tsx
@@ -28,9 +28,7 @@ export function SetupPrerequisitesStep({
({ id, requirement, entry }) => (
<div key={id} className="flex flex-col gap-1">
<span className="text-sm">{entry?.name ?? id}</span>
- <span className="text-xs text-[var(--oh-muted)]">
- {requirement.message}
- </span>
+ <span className="text-xs text-muted">{requirement.message}</span>
</div>
),
)}
diff --git a/src/components/features/manifest/manifest-repository-list.tsx b/src/components/features/manifest/manifest-repository-list.tsx
index 189ca4ab57..3f3643bf7d 100644
--- a/src/components/features/manifest/manifest-repository-list.tsx
+++ b/src/components/features/manifest/manifest-repository-list.tsx
@@ -66,7 +66,7 @@ export function SetupRepositoryList({
{values.map((value) => (
<li
key={value}
- className="flex items-center justify-between gap-2 rounded-md border border-[var(--oh-border)] px-3 py-1.5"
+ className="flex items-center justify-between gap-2 rounded-md border border-border px-3 py-1.5"
>
<span className="truncate text-sm">{value}</span>
<BrandButton
diff --git a/src/components/features/manifest/manifest-review-step.tsx b/src/components/features/manifest/manifest-review-step.tsx
index be6e71588b..224ab8b905 100644
--- a/src/components/features/manifest/manifest-review-step.tsx
+++ b/src/components/features/manifest/manifest-review-step.tsx
@@ -35,7 +35,7 @@ export function SetupReviewStep({
{selectedAction &&
setup.actions?.[selectedAction as keyof typeof setup.actions] && (
<div className="flex flex-col gap-0.5">
- <dt className="text-xs text-[var(--oh-muted)]">
+ <dt className="text-xs text-muted">
{t(I18nKey.SETUP$ACTION_LABEL)}
</dt>
<dd className="text-sm break-words">
@@ -50,7 +50,7 @@ export function SetupReviewStep({
collectFields(setup, selectedTrigger, selectedAction),
).map(([name, field]) => (
<div key={name} className="flex flex-col gap-0.5">
- <dt className="text-xs text-[var(--oh-muted)]">{field.label}</dt>
+ <dt className="text-xs text-muted">{field.label}</dt>
<dd className="text-sm break-words">
{/* A field collecting several values reads as a list of them. */}
{fieldValues(values[name]).join(", ") ||
diff --git a/src/components/features/manifest/manifest-setup-dialog.tsx b/src/components/features/manifest/manifest-setup-dialog.tsx
index 812faf35d7..1151631d37 100644
--- a/src/components/features/manifest/manifest-setup-dialog.tsx
+++ b/src/components/features/manifest/manifest-setup-dialog.tsx
@@ -430,7 +430,7 @@ export function SetupDialog({ entry, onClose }: SetupDialogProps) {
<ModalBackdrop onClose={onClose} aria-label={entry.name}>
<div
data-testid="setup-dialog"
- className="relative flex max-h-[85vh] w-[92vw] max-w-lg flex-col rounded-xl border border-[var(--oh-border)] bg-base-secondary"
+ className="relative flex max-h-[85vh] w-[92vw] max-w-lg flex-col rounded-xl border border-border bg-base-secondary"
>
<ModalCloseButton
onClose={onClose}
@@ -450,7 +450,7 @@ export function SetupDialog({ entry, onClose }: SetupDialogProps) {
{!isLoading && isUnsupported && (
<div className="flex flex-col gap-2">
- <p className="text-sm text-[var(--oh-muted)]">
+ <p className="text-sm text-muted">
{t(I18nKey.SETUP$UNSUPPORTED_MESSAGE)}
</p>
{/* The unmet requirements are the names both sides of the
@@ -461,7 +461,7 @@ export function SetupDialog({ entry, onClose }: SetupDialogProps) {
{unmet.length > 0 && (
<p
data-testid="setup-unmet-requirements"
- className="text-sm text-[var(--oh-muted)]"
+ className="text-sm text-muted"
>
{unmet.join(", ")}
</p>
@@ -475,13 +475,9 @@ export function SetupDialog({ entry, onClose }: SetupDialogProps) {
{!isLoading && !isUnsupported && currentStep === "form" && (
<div className="flex flex-col gap-5">
- <p className="text-sm text-[var(--oh-muted)]">
- {entry.description}
- </p>
+ <p className="text-sm text-muted">{entry.description}</p>
{entry.setup.form.note && (
- <p className="text-sm text-[var(--oh-muted)]">
- {entry.setup.form.note}
- </p>
+ <p className="text-sm text-muted">{entry.setup.form.note}</p>
)}
{allActionOptions.length > 1 && actionOptions.length > 1 && (
<div className="flex w-full flex-col gap-2.5">
@@ -507,7 +503,7 @@ export function SetupDialog({ entry, onClose }: SetupDialogProps) {
entry.setup.actions?.[
selectedAction as keyof typeof entry.setup.actions
] && (
- <p className="text-xs text-[var(--oh-muted)]">
+ <p className="text-xs text-muted">
{
entry.setup.actions[
selectedAction as keyof typeof entry.setup.actions
@@ -534,7 +530,7 @@ export function SetupDialog({ entry, onClose }: SetupDialogProps) {
if (key !== null) setTriggerValue(String(key));
}}
/>
- <p className="text-xs text-[var(--oh-muted)]">
+ <p className="text-xs text-muted">
{t(I18nKey.SETUP$TRIGGER_HELP)}
</p>
</div>
diff --git a/src/components/features/manifest/manifest-subpage-layout.tsx b/src/components/features/manifest/manifest-subpage-layout.tsx
index e7907f5e85..6340575fb1 100644
--- a/src/components/features/manifest/manifest-subpage-layout.tsx
+++ b/src/components/features/manifest/manifest-subpage-layout.tsx
@@ -63,7 +63,7 @@ export function ManifestSubpageLayout({
<div className="flex h-full gap-4 md:gap-6 md:pl-8 lg:gap-10 lg:pl-10">
<aside
data-testid={`${navTestIdBase}-desktop`}
- className="hidden md:flex md:w-[260px] md:shrink-0 md:flex-col md:gap-2 md:sticky md:top-8 md:self-start"
+ className="hidden md:flex md:w-65 md:shrink-0 md:flex-col md:gap-2 md:sticky md:top-8 md:self-start"
>
<span className="px-2 text-sm font-normal text-white">{heading}</span>
<div className="flex flex-col gap-0.5 pt-0.5">
@@ -73,10 +73,10 @@ export function ManifestSubpageLayout({
</div>
</aside>
<main className={cn(settingsLikeMainScrollClassName, "h-full")}>
- <div className="mx-auto flex w-full min-w-0 max-w-[800px] flex-col gap-6">
+ <div className="mx-auto flex w-full min-w-0 max-w-200 flex-col gap-6">
<nav
data-testid={`${navTestIdBase}-mobile`}
- className="md:hidden flex gap-1 overflow-x-auto border-b border-[var(--oh-border)] pb-2"
+ className="md:hidden flex gap-1 overflow-x-auto border-b border-border pb-2"
>
{items.map((item) => (
<SubPageNavLink key={item.to} item={item} />
diff --git a/src/components/features/markdown/headings.tsx b/src/components/features/markdown/headings.tsx
index 308f2a09a8..def225400d 100644
--- a/src/components/features/markdown/headings.tsx
+++ b/src/components/features/markdown/headings.tsx
@@ -60,7 +60,7 @@ export function h5({
React.HTMLAttributes<HTMLHeadingElement> &
ExtraProps) {
return (
- <h5 className="text-sm font-normal text-[var(--oh-text-tertiary)] mb-1.5 mt-2.5 first:mt-0">
+ <h5 className="text-sm font-normal text-text-tertiary mb-1.5 mt-2.5 first:mt-0">
{children}
</h5>
);
@@ -73,7 +73,7 @@ export function h6({
React.HTMLAttributes<HTMLHeadingElement> &
ExtraProps) {
return (
- <h6 className="text-sm font-normal text-[var(--oh-text-tertiary)] mb-1.5 mt-2.5 first:mt-0">
+ <h6 className="text-sm font-normal text-text-tertiary mb-1.5 mt-2.5 first:mt-0">
{children}
</h6>
);
diff --git a/src/components/features/markdown/horizontal-rule.tsx b/src/components/features/markdown/horizontal-rule.tsx
index d4bd00ce57..efcd821fe6 100644
--- a/src/components/features/markdown/horizontal-rule.tsx
+++ b/src/components/features/markdown/horizontal-rule.tsx
@@ -7,10 +7,5 @@ export function hr({
}: React.ClassAttributes<HTMLHRElement> &
React.HTMLAttributes<HTMLHRElement> &
ExtraProps) {
- return (
- <hr
- {...props}
- className="my-4 border-0 border-t border-[var(--oh-border)]"
- />
- );
+ return <hr {...props} className="my-4 border-0 border-t border-border" />;
}
diff --git a/src/components/features/markdown/plan-components.tsx b/src/components/features/markdown/plan-components.tsx
index 9cabf722da..761c1732de 100644
--- a/src/components/features/markdown/plan-components.tsx
+++ b/src/components/features/markdown/plan-components.tsx
@@ -78,7 +78,7 @@ export function createPlanComponents(extraClassName?: string) {
h6: ({ children, className }: ElementProps) => (
<h6
className={cn(
- "text-xs font-medium text-[var(--oh-text-tertiary)] mb-0.5 mt-1.5 first:mt-0",
+ "text-xs font-medium text-text-tertiary mb-0.5 mt-1.5 first:mt-0",
className,
extraClassName,
)}
@@ -136,7 +136,7 @@ export function createPlanComponents(extraClassName?: string) {
code: ({ children, className }: ElementProps) => (
<code
className={cn(
- "bg-[var(--oh-surface-raised)] px-1.5 py-0.5 rounded text-[var(--oh-foreground)] border border-[var(--oh-border-subtle)]",
+ "bg-surface-raised px-1.5 py-0.5 rounded text-foreground border border-border-subtle",
className,
extraClassName,
)}
diff --git a/src/components/features/markdown/table.tsx b/src/components/features/markdown/table.tsx
index 389430f721..c52b1321a5 100644
--- a/src/components/features/markdown/table.tsx
+++ b/src/components/features/markdown/table.tsx
@@ -12,7 +12,7 @@ export function table({
<MarkdownTableScroll>
<table
className={[
- "my-4 w-max min-w-full border-separate border-spacing-0 overflow-hidden rounded-xl border border-[var(--oh-border)] text-sm",
+ "my-4 w-max min-w-full border-separate border-spacing-0 overflow-hidden rounded-xl border border-border text-sm",
"[&_td]:border-b [&_td]:border-r [&_th]:border-b [&_th]:border-r",
"[&_td:last-child]:border-r-0 [&_th:last-child]:border-r-0",
"[&_tbody_tr:last-child_td]:border-b-0",
@@ -31,7 +31,7 @@ export function th({
React.ThHTMLAttributes<HTMLTableCellElement> &
ExtraProps) {
return (
- <th className="whitespace-nowrap border-[var(--oh-border)] bg-[var(--oh-surface)] px-3 py-2 text-left font-semibold text-white">
+ <th className="whitespace-nowrap border-border bg-surface px-3 py-2 text-left font-semibold text-white">
{children}
</th>
);
@@ -44,7 +44,7 @@ export function td({
React.TdHTMLAttributes<HTMLTableCellElement> &
ExtraProps) {
return (
- <td className="whitespace-nowrap border-[var(--oh-border)] px-3 py-2 align-top">
+ <td className="whitespace-nowrap border-border px-3 py-2 align-top">
{children}
</td>
);
diff --git a/src/components/features/mcp-page/custom-server-editor.tsx b/src/components/features/mcp-page/custom-server-editor.tsx
index af36fe1256..84a2a1b58e 100644
--- a/src/components/features/mcp-page/custom-server-editor.tsx
+++ b/src/components/features/mcp-page/custom-server-editor.tsx
@@ -227,7 +227,7 @@ export function CustomServerEditor({
>
<div
data-testid="mcp-custom-editor"
- className="relative bg-base-secondary p-6 rounded-xl border border-[var(--oh-border)] w-[520px] max-w-[90vw] max-h-[90vh] overflow-y-auto custom-scrollbar"
+ className="relative bg-base-secondary p-6 rounded-xl border border-border w-130 max-w-[90vw] max-h-[90vh] overflow-y-auto custom-scrollbar"
>
<ModalCloseButton
onClose={onClose}
diff --git a/src/components/features/mcp-page/install-server-modal.tsx b/src/components/features/mcp-page/install-server-modal.tsx
index f7851567be..993a44d55b 100644
--- a/src/components/features/mcp-page/install-server-modal.tsx
+++ b/src/components/features/mcp-page/install-server-modal.tsx
@@ -534,7 +534,7 @@ export function InstallServerModal({
{oauthMode ? (
<div
data-testid="mcp-install-oauth-info"
- className="flex flex-col gap-2 p-3 rounded-lg border border-[var(--oh-border)] bg-base-tertiary"
+ className="flex flex-col gap-2 p-3 rounded-lg border border-border bg-base-tertiary"
>
<p className="text-sm text-secondary-light">
{t(I18nKey.MCP$OAUTH_CONNECT_INFO)}
@@ -665,7 +665,7 @@ export function InstallServerModal({
data-testid="mcp-install-modal"
data-marketplace-id={entry.id}
onSubmit={handleSubmit}
- className="relative bg-base-secondary p-6 rounded-xl flex flex-col gap-4 border border-[var(--oh-border)] w-[520px] max-w-[90vw] max-h-[85vh] overflow-y-auto custom-scrollbar"
+ className="relative bg-base-secondary p-6 rounded-xl flex flex-col gap-4 border border-border w-130 max-w-[90vw] max-h-[85vh] overflow-y-auto custom-scrollbar"
>
<ModalCloseButton
onClose={onClose}
@@ -689,7 +689,7 @@ export function InstallServerModal({
href={entry.docsUrl}
target="_blank"
rel="noreferrer"
- className="text-xs text-[var(--oh-muted)] hover:text-white hover:underline self-start transition-colors"
+ className="text-xs text-muted hover:text-white hover:underline self-start transition-colors"
>
{t(I18nKey.MCP$VIEW_DOCS)}
</a>
diff --git a/src/components/features/mcp-page/installed-server-card.tsx b/src/components/features/mcp-page/installed-server-card.tsx
index 960e169d20..c9c9b8304b 100644
--- a/src/components/features/mcp-page/installed-server-card.tsx
+++ b/src/components/features/mcp-page/installed-server-card.tsx
@@ -78,7 +78,7 @@ export function InstalledServerCard({
onKeyDown={handleKeyDown}
aria-label={t(I18nKey.MCP$EDIT_SERVER_ARIA, { name: title })}
className={cn(
- "flex min-h-[132px] flex-col overflow-hidden p-4 text-left",
+ "flex min-h-33 flex-col overflow-hidden p-4 text-left",
extensionModuleCardSurfaceClassName,
extensionModuleCardInteractiveClassName,
)}
diff --git a/src/components/features/mcp-page/installed-servers-section.tsx b/src/components/features/mcp-page/installed-servers-section.tsx
index bf06b49f6d..755c3df489 100644
--- a/src/components/features/mcp-page/installed-servers-section.tsx
+++ b/src/components/features/mcp-page/installed-servers-section.tsx
@@ -42,7 +42,7 @@ export function InstalledServersSection({
return (
<div
data-testid="mcp-installed-empty-search"
- className="rounded-xl border border-[var(--oh-border)] p-6 text-center"
+ className="rounded-xl border border-border p-6 text-center"
>
<p className="text-xs text-tertiary-light">
{t(I18nKey.MCP$SEARCH_EMPTY)}
diff --git a/src/components/features/mcp-page/marketplace-card.tsx b/src/components/features/mcp-page/marketplace-card.tsx
index 3b4a1f7beb..9adb86d2fe 100644
--- a/src/components/features/mcp-page/marketplace-card.tsx
+++ b/src/components/features/mcp-page/marketplace-card.tsx
@@ -54,7 +54,7 @@ export function MarketplaceCard({
onKeyDown={handleKeyDown}
data-testid={`mcp-marketplace-card-${entry.id}`}
className={cn(
- "flex min-h-[132px] flex-col overflow-hidden p-4 text-left",
+ "flex min-h-33 flex-col overflow-hidden p-4 text-left",
extensionModuleCardSurfaceClassName,
extensionModuleCardInteractiveClassName,
)}
diff --git a/src/components/features/mcp-page/marketplace-section.tsx b/src/components/features/mcp-page/marketplace-section.tsx
index 1742f6e595..35e8ec1180 100644
--- a/src/components/features/mcp-page/marketplace-section.tsx
+++ b/src/components/features/mcp-page/marketplace-section.tsx
@@ -45,7 +45,7 @@ export function MarketplaceSection({
{visibleEntries.length === 0 ? (
<div
data-testid="mcp-marketplace-empty"
- className="rounded-xl border border-dashed border-[var(--oh-border)] p-6 text-center"
+ className="rounded-xl border border-dashed border-border p-6 text-center"
>
<p className="text-xs text-tertiary-light">
{t(I18nKey.MCP$SEARCH_EMPTY)}
diff --git a/src/components/features/mcp-page/mcp-server-health.tsx b/src/components/features/mcp-page/mcp-server-health.tsx
index c2980304e8..df23446426 100644
--- a/src/components/features/mcp-page/mcp-server-health.tsx
+++ b/src/components/features/mcp-page/mcp-server-health.tsx
@@ -22,14 +22,14 @@ interface McpServerHealthSectionProps {
}
const DOT_CLASS_BY_STATUS: Record<McpServerHealth["status"], string> = {
- unchecked: "bg-[var(--oh-text-tertiary)]",
- checking: "bg-[var(--oh-interactive-selected)] animate-pulse",
- healthy: "bg-[var(--oh-status-success)]",
+ unchecked: "bg-text-tertiary",
+ checking: "bg-interactive-selected animate-pulse",
+ healthy: "bg-status-success",
failed: "bg-red-500",
};
const actionClassName =
- "text-xs text-[var(--oh-muted)] underline transition-colors hover:text-white disabled:cursor-not-allowed disabled:opacity-60";
+ "text-xs text-muted underline transition-colors hover:text-white disabled:cursor-not-allowed disabled:opacity-60";
function getDotStatus(health: McpServerHealth): string {
if (health.status === "healthy") {
diff --git a/src/components/features/mcp-page/mcp-toolbar.tsx b/src/components/features/mcp-page/mcp-toolbar.tsx
index 6e38cfab78..32d041250b 100644
--- a/src/components/features/mcp-page/mcp-toolbar.tsx
+++ b/src/components/features/mcp-page/mcp-toolbar.tsx
@@ -30,7 +30,7 @@ export function McpToolbar({
data-testid="mcp-search"
className={cn(
"relative flex flex-1 min-w-0 items-center",
- "rounded-lg border border-[var(--oh-border)] bg-base-secondary",
+ "rounded-lg border border-border bg-base-secondary",
"focus-within:border-white/40 focus-within:ring-1 focus-within:ring-white/20",
"transition-colors",
)}
diff --git a/src/components/features/mcp-page/save-as-secret-toggle.tsx b/src/components/features/mcp-page/save-as-secret-toggle.tsx
index 57434c4ab4..64463438f4 100644
--- a/src/components/features/mcp-page/save-as-secret-toggle.tsx
+++ b/src/components/features/mcp-page/save-as-secret-toggle.tsx
@@ -23,7 +23,7 @@ export function SaveAsSecretToggle({
"flex items-center gap-2 px-3 py-2 mt-0.5 rounded-lg border cursor-pointer transition-colors",
checked
? "border-green-500/35 bg-green-500/10"
- : "border-[var(--oh-border)] bg-transparent hover:bg-white/[0.03]",
+ : "border-border bg-transparent hover:bg-white/[0.03]",
)}
>
{/* sr-only keeps the real checkbox in the accessibility tree so AT
@@ -39,18 +39,16 @@ export function SaveAsSecretToggle({
<span
aria-hidden="true"
className={cn(
- "relative inline-flex h-[22px] w-[40px] shrink-0 items-center rounded-full border transition-colors duration-200",
+ "relative inline-flex h-5.5 w-10 shrink-0 items-center rounded-full border transition-colors duration-200",
checked
? "border-green-500 bg-green-500"
- : "border-[var(--oh-border)] bg-surface-raised",
+ : "border-border bg-surface-raised",
)}
>
<span
className={cn(
"inline-block size-4 rounded-full transition-transform duration-200",
- checked
- ? "translate-x-[21px] bg-white"
- : "translate-x-[2px] bg-[var(--oh-muted)]",
+ checked ? "translate-x-5.25 bg-white" : "translate-x-0.5 bg-muted",
)}
/>
</span>
@@ -60,7 +58,7 @@ export function SaveAsSecretToggle({
"ml-auto text-[11px] font-mono tracking-tight border rounded px-1.5 py-0.5",
checked
? "text-green-500 border-green-500/35 bg-white/[0.04]"
- : "text-tertiary-alt border-[var(--oh-border)]",
+ : "text-tertiary-alt border-border",
)}
>
{fieldKey}
@@ -74,7 +72,7 @@ export function SaveAsSecretToggle({
<button
type="button"
aria-label={t(I18nKey.MCP$SAVE_AS_SECRET_TOOLTIP)}
- className="flex items-center justify-center size-[15px] shrink-0 rounded-full border border-[var(--oh-muted)] text-tertiary-alt text-[9px] font-bold cursor-help"
+ className="flex items-center justify-center size-3.75 shrink-0 rounded-full border border-muted text-tertiary-alt text-[9px] font-bold cursor-help"
onClick={(e) => e.preventDefault()}
>
?
diff --git a/src/components/features/onboarding/onboarding-modal.tsx b/src/components/features/onboarding/onboarding-modal.tsx
index a347fd30cd..96fe283357 100644
--- a/src/components/features/onboarding/onboarding-modal.tsx
+++ b/src/components/features/onboarding/onboarding-modal.tsx
@@ -388,14 +388,14 @@ export function OnboardingModal({
type="button"
data-testid="onboarding-skip"
onClick={handleSkipOrDismiss}
- className="rounded-md px-3 py-2 text-sm text-[var(--oh-muted)] transition-colors hover:bg-white/5 hover:text-white cursor-pointer"
+ className="rounded-md px-3 py-2 text-sm text-muted transition-colors hover:bg-white/5 hover:text-white cursor-pointer"
>
{t(I18nKey.ONBOARDING$SKIP)}
</button>
) : null}
{currentPhase === "hello" ? (
- <label className="flex cursor-pointer items-center justify-center gap-2 text-sm text-[var(--oh-muted)]">
+ <label className="flex cursor-pointer items-center justify-center gap-2 text-sm text-muted">
<input
data-testid="onboarding-skip-getting-started-checklist"
type="checkbox"
diff --git a/src/components/features/onboarding/steps/check-backend-step.tsx b/src/components/features/onboarding/steps/check-backend-step.tsx
index eb7e55b48b..4d4617bb85 100644
--- a/src/components/features/onboarding/steps/check-backend-step.tsx
+++ b/src/components/features/onboarding/steps/check-backend-step.tsx
@@ -101,8 +101,8 @@ function ConnectionBanner({
data-testid="onboarding-backend-checking"
className="flex items-start gap-3 rounded-xl border border-white/10 bg-white/5 px-4 py-3"
>
- <Loader2 className="mt-0.5 size-5 shrink-0 animate-spin text-[var(--oh-text-tertiary)]" />
- <span className="text-sm text-[var(--oh-text-tertiary)]">
+ <Loader2 className="mt-0.5 size-5 shrink-0 animate-spin text-text-tertiary" />
+ <span className="text-sm text-text-tertiary">
{t(I18nKey.ONBOARDING$BACKEND_CHECKING)}
</span>
</div>
@@ -243,7 +243,7 @@ export function CheckBackendStep({
{treatAsNoBackend ? null : (
<p
data-testid="onboarding-backend-subtitle"
- className="text-sm text-[var(--oh-muted)]"
+ className="text-sm text-muted"
>
{t(I18nKey.ONBOARDING$BACKEND_SUBTITLE)}
</p>
@@ -264,7 +264,7 @@ export function CheckBackendStep({
onClick={() => setConfigurationOpen((open) => !open)}
aria-expanded={configurationOpen}
data-testid="onboarding-backend-show-configuration"
- className="flex w-full cursor-pointer items-center justify-center gap-1 text-center text-xs text-[var(--oh-muted)] transition-colors hover:text-content-2"
+ className="flex w-full cursor-pointer items-center justify-center gap-1 text-center text-xs text-muted transition-colors hover:text-content-2"
>
<span>
{configurationOpen
diff --git a/src/components/features/onboarding/steps/choose-agent-step.tsx b/src/components/features/onboarding/steps/choose-agent-step.tsx
index d8d52a6932..00dc80a835 100644
--- a/src/components/features/onboarding/steps/choose-agent-step.tsx
+++ b/src/components/features/onboarding/steps/choose-agent-step.tsx
@@ -57,7 +57,7 @@ export function AgentOptionIcon({ id, muted }: { id: string; muted: boolean }) {
<AgentBrandIcon
kind={icon}
size={18}
- className={muted ? "text-[var(--oh-muted)]" : "text-white"}
+ className={muted ? "text-muted" : "text-white"}
data-testid={`onboarding-agent-icon-${icon}`}
/>
);
@@ -140,7 +140,7 @@ export function ChooseAgentStep({
<h2 className="text-2xl font-medium text-white">
{t(I18nKey.ONBOARDING$AGENT_TITLE)}
</h2>
- <p className="text-sm text-[var(--oh-muted)]">
+ <p className="text-sm text-muted">
{t(I18nKey.ONBOARDING$AGENT_SUBTITLE)}
</p>
</header>
@@ -175,7 +175,7 @@ export function ChooseAgentStep({
{option.label}
</span>
</div>
- <span className="text-xs text-[var(--oh-muted)]">
+ <span className="text-xs text-muted">
{t(option.descriptionKey)}
</span>
</div>
diff --git a/src/components/features/onboarding/steps/say-hello-step.tsx b/src/components/features/onboarding/steps/say-hello-step.tsx
index e4a3435217..2ed725a86f 100644
--- a/src/components/features/onboarding/steps/say-hello-step.tsx
+++ b/src/components/features/onboarding/steps/say-hello-step.tsx
@@ -81,7 +81,7 @@ export function SayHelloStep({
<h2 className="text-2xl font-medium text-white">
{t(I18nKey.ONBOARDING$HELLO_TITLE)}
</h2>
- <p className="text-sm text-[var(--oh-muted)]">
+ <p className="text-sm text-muted">
{t(I18nKey.ONBOARDING$HELLO_SUBTITLE)}
</p>
</header>
@@ -89,10 +89,10 @@ export function SayHelloStep({
<form
onSubmit={handleSubmit}
data-testid="onboarding-hello-input-form"
- className="mt-6 box-border flex w-full shrink-0 flex-col items-start justify-center rounded-[15px] border border-[var(--oh-border)] bg-surface-raised p-4"
+ className="mt-6 box-border flex w-full shrink-0 flex-col items-start justify-center rounded-[15px] border border-border bg-surface-raised p-4"
>
<div className="relative w-full">
- <div className="box-border flex w-full shrink-0 flex-row items-end justify-between gap-2 p-0 pb-[18px]">
+ <div className="box-border flex w-full shrink-0 flex-row items-end justify-between gap-2 p-0 pb-4.5">
<input
data-testid="onboarding-hello-input"
aria-label={t(I18nKey.ONBOARDING$HELLO_TITLE)}
@@ -107,7 +107,9 @@ export function SayHelloStep({
}}
placeholder={defaultMessage}
disabled={isLaunching}
- className="min-h-[20px] w-full flex-1 bg-transparent text-[16px] font-normal leading-[20px] text-white outline-none placeholder:text-[var(--oh-text-tertiary)] disabled:cursor-not-allowed disabled:opacity-50"
+ // `text-base` is a color utility in this theme (--color-base), not 16px.
+ // eslint-disable-next-line shadcn/no-arbitrary-values
+ className="min-h-5 w-full flex-1 bg-transparent text-[16px] font-normal leading-5 text-white outline-none placeholder:text-text-tertiary disabled:cursor-not-allowed disabled:opacity-50"
/>
</div>
</div>
@@ -126,11 +128,11 @@ export function SayHelloStep({
data-testid="onboarding-hello-or-separator"
className="mt-6 flex w-full items-center gap-3"
>
- <div className="h-px flex-1 bg-[var(--oh-border)]" />
- <span className="text-xs uppercase text-[var(--oh-muted)]">
+ <div className="h-px flex-1 bg-border" />
+ <span className="text-xs uppercase text-muted">
{t(I18nKey.LANDING$OR)}
</span>
- <div className="h-px flex-1 bg-[var(--oh-border)]" />
+ <div className="h-px flex-1 bg-border" />
</div>
<div
diff --git a/src/components/features/onboarding/steps/setup-acp-secrets-step.tsx b/src/components/features/onboarding/steps/setup-acp-secrets-step.tsx
index 270b21eb51..b7b8d91c33 100644
--- a/src/components/features/onboarding/steps/setup-acp-secrets-step.tsx
+++ b/src/components/features/onboarding/steps/setup-acp-secrets-step.tsx
@@ -143,7 +143,7 @@ export function SetupAcpSecretsStep({
<h2 className="text-2xl font-medium text-white">
{t(I18nKey.ONBOARDING$ACP_SECRETS_TITLE)}
</h2>
- <p className="text-sm text-[var(--oh-muted)]">
+ <p className="text-sm text-muted">
{t(I18nKey.ONBOARDING$ACP_SECRETS_SUBTITLE, {
provider: providerName,
})}
@@ -151,7 +151,7 @@ export function SetupAcpSecretsStep({
{required && !isAuthenticated ? (
<p
data-testid="onboarding-acp-secrets-required-note"
- className="text-sm text-[var(--oh-muted)]"
+ className="text-sm text-muted"
>
{t(I18nKey.ONBOARDING$ACP_SECRETS_REQUIRED_NOTE, {
provider: providerName,
@@ -161,7 +161,7 @@ export function SetupAcpSecretsStep({
authStatus !== "authenticated" && (
// When already signed in, the success banner below already says to
// leave the fields blank, so this general reminder would be redundant.
- <p className="text-sm text-[var(--oh-muted)]">
+ <p className="text-sm text-muted">
{t(I18nKey.ONBOARDING$ACP_SECRETS_SUBSCRIPTION_NOTE)}
</p>
)
diff --git a/src/components/features/onboarding/steps/setup-llm-step.tsx b/src/components/features/onboarding/steps/setup-llm-step.tsx
index 97a83c3439..c08d448518 100644
--- a/src/components/features/onboarding/steps/setup-llm-step.tsx
+++ b/src/components/features/onboarding/steps/setup-llm-step.tsx
@@ -146,7 +146,7 @@ export function SetupLlmStep({ onBack, onNext }: SetupLlmStepProps) {
<h2 className="text-2xl font-medium text-white">
{t(I18nKey.ONBOARDING$LLM_TITLE)}
</h2>
- <p className="text-sm text-[var(--oh-muted)]">
+ <p className="text-sm text-muted">
{t(I18nKey.ONBOARDING$LLM_SUBTITLE)}
</p>
</header>
diff --git a/src/components/features/plugins/add-plugin-modal.tsx b/src/components/features/plugins/add-plugin-modal.tsx
index f789f46a96..409ca4a3d4 100644
--- a/src/components/features/plugins/add-plugin-modal.tsx
+++ b/src/components/features/plugins/add-plugin-modal.tsx
@@ -52,7 +52,7 @@ export function AddPluginModal({ onClose, onInstalled }: AddPluginModalProps) {
<form
onSubmit={handleSubmit}
data-testid="add-plugin-modal"
- className="relative flex w-[520px] max-w-[90vw] max-h-[85vh] flex-col rounded-xl border border-[var(--oh-border)] bg-base-secondary"
+ className="relative flex w-130 max-w-[90vw] max-h-[85vh] flex-col rounded-xl border border-border bg-base-secondary"
>
<ModalCloseButton onClose={onClose} testId="add-plugin-modal-close" />
diff --git a/src/components/features/plugins/plugin-detail-modal.tsx b/src/components/features/plugins/plugin-detail-modal.tsx
index 2aa9451cd5..702c33d9ba 100644
--- a/src/components/features/plugins/plugin-detail-modal.tsx
+++ b/src/components/features/plugins/plugin-detail-modal.tsx
@@ -42,7 +42,7 @@ export function PluginDetailModal({
<div
data-testid="plugin-detail-modal"
data-plugin-name={plugin.name}
- className="relative flex w-[640px] max-w-[90vw] max-h-[85vh] flex-col rounded-xl border border-[var(--oh-border)] bg-base-secondary"
+ className="relative flex w-160 max-w-[90vw] max-h-[85vh] flex-col rounded-xl border border-border bg-base-secondary"
>
<ModalCloseButton
onClose={onClose}
@@ -116,7 +116,7 @@ export function PluginDetailModal({
<li
key={skill.name}
data-testid={`plugin-bundled-skill-${skill.name}`}
- className="flex items-start gap-3 rounded-lg border border-[var(--oh-border)] bg-[rgba(255,255,255,0.04)] px-3 py-2.5"
+ className="flex items-start gap-3 rounded-lg border border-border bg-[rgba(255,255,255,0.04)] px-3 py-2.5"
>
<SkillIconBadge skillName={skill.name} />
<div className="min-w-0 flex-1">
diff --git a/src/components/features/plugins/plugin-files-section.tsx b/src/components/features/plugins/plugin-files-section.tsx
index 9e05e62104..6051c17326 100644
--- a/src/components/features/plugins/plugin-files-section.tsx
+++ b/src/components/features/plugins/plugin-files-section.tsx
@@ -44,7 +44,7 @@ export function PluginFilesSection({
<h3 className="text-sm font-medium text-white">
{t(I18nKey.COMMON$FILES)}
</h3>
- <div className="min-w-0 rounded-lg border border-[var(--oh-border)] bg-[rgba(255,255,255,0.04)]">
+ <div className="min-w-0 rounded-lg border border-border bg-[rgba(255,255,255,0.04)]">
<div className="max-h-48 overflow-y-auto custom-scrollbar">
<FileTreeView
paths={files}
@@ -57,7 +57,7 @@ export function PluginFilesSection({
{effectivePath ? (
<div
data-testid="plugin-file-content"
- className="flex h-60 min-w-0 flex-col border-t border-[var(--oh-border)]"
+ className="flex h-60 min-w-0 flex-col border-t border-border"
>
<p
className="truncate px-3 py-2 text-xs text-tertiary-alt"
diff --git a/src/components/features/plugins/plugin-picker-modal.tsx b/src/components/features/plugins/plugin-picker-modal.tsx
index 9f18fbbec8..9e9bdbe10a 100644
--- a/src/components/features/plugins/plugin-picker-modal.tsx
+++ b/src/components/features/plugins/plugin-picker-modal.tsx
@@ -31,7 +31,7 @@ export function PluginPickerModal({
<div
data-testid="plugin-picker-modal"
className={cn(
- "relative flex max-h-[80vh] flex-col gap-4 rounded-xl border border-[var(--oh-border)] bg-base-secondary p-6",
+ "relative flex max-h-[80vh] flex-col gap-4 rounded-xl border border-border bg-base-secondary p-6",
modalWidthClassName("lg"),
MODAL_MAX_WIDTH_VIEWPORT,
)}
@@ -48,7 +48,7 @@ export function PluginPickerModal({
<PluginPicker selected={selected} onChange={onChange} />
</div>
- <div className="flex items-center justify-between border-t border-[var(--oh-border-subtle)] pt-4">
+ <div className="flex items-center justify-between border-t border-border-subtle pt-4">
<Typography.Text className="text-sm text-tertiary-light">
{t(I18nKey.PLUGINS$PICKER_SELECTED_COUNT, {
count: selected.length,
diff --git a/src/components/features/plugins/plugin-picker.tsx b/src/components/features/plugins/plugin-picker.tsx
index 22362243c4..c6c74f1d83 100644
--- a/src/components/features/plugins/plugin-picker.tsx
+++ b/src/components/features/plugins/plugin-picker.tsx
@@ -98,7 +98,7 @@ export function PluginPicker({
<div
className={cn(
"relative flex min-w-0 items-center",
- "rounded-lg border border-[var(--oh-border)] bg-base-secondary",
+ "rounded-lg border border-border bg-base-secondary",
"transition-colors focus-within:border-white/40 focus-within:ring-1 focus-within:ring-white/20",
)}
>
diff --git a/src/components/features/plugins/plugins-toolbar.tsx b/src/components/features/plugins/plugins-toolbar.tsx
index 146a0b5f72..c294554a24 100644
--- a/src/components/features/plugins/plugins-toolbar.tsx
+++ b/src/components/features/plugins/plugins-toolbar.tsx
@@ -34,7 +34,7 @@ export function PluginsToolbar({
<div
className={cn(
"relative flex flex-1 min-w-0 items-center",
- "rounded-lg border border-[var(--oh-border)] bg-base-secondary",
+ "rounded-lg border border-border bg-base-secondary",
"focus-within:border-white/40 focus-within:ring-1 focus-within:ring-white/20",
"transition-colors",
)}
@@ -70,7 +70,7 @@ export function PluginsToolbar({
<div
data-testid="plugins-status-filter"
- className="flex shrink-0 items-center gap-1 rounded-lg border border-[var(--oh-border)] bg-base-secondary p-1"
+ className="flex shrink-0 items-center gap-1 rounded-lg border border-border bg-base-secondary p-1"
>
{STATUS_FILTERS.map((filter) => (
<button
diff --git a/src/components/features/settings/acp-auth-status-banner.tsx b/src/components/features/settings/acp-auth-status-banner.tsx
index cf7cda2e61..cecd98190e 100644
--- a/src/components/features/settings/acp-auth-status-banner.tsx
+++ b/src/components/features/settings/acp-auth-status-banner.tsx
@@ -74,7 +74,7 @@ export function AcpAuthStatusBanner({
return (
<div
data-testid={`${testIdPrefix}-checking`}
- className="flex items-center gap-2 text-sm text-[var(--oh-muted)]"
+ className="flex items-center gap-2 text-sm text-muted"
>
<Loader2 className="size-4 shrink-0 animate-spin" aria-hidden />
<span>
diff --git a/src/components/features/settings/acp-secret-field.tsx b/src/components/features/settings/acp-secret-field.tsx
index feaa37ec82..7844aef321 100644
--- a/src/components/features/settings/acp-secret-field.tsx
+++ b/src/components/features/settings/acp-secret-field.tsx
@@ -73,7 +73,7 @@ export function AcpSecretField({
placeholder={placeholder}
/>
)}
- <span className="text-xs text-[var(--oh-muted)]">
+ <span className="text-xs text-muted">
{t(field.hint_key, field.hint_values)}
</span>
</div>
diff --git a/src/components/features/settings/agent-canvas-update-card.tsx b/src/components/features/settings/agent-canvas-update-card.tsx
index a87413163a..16cd65f160 100644
--- a/src/components/features/settings/agent-canvas-update-card.tsx
+++ b/src/components/features/settings/agent-canvas-update-card.tsx
@@ -96,7 +96,7 @@ function UpdateCommandTabs() {
"inline-flex items-center gap-1.5 px-3 pb-2 text-sm font-medium",
selectedTab === tab
? "border-b border-white text-white"
- : "text-[var(--oh-muted)] hover:text-white",
+ : "text-muted hover:text-white",
)}
>
<UpdateCommandTabIcon tab={tab} />
@@ -104,7 +104,7 @@ function UpdateCommandTabs() {
</button>
))}
</div>
- <div className="flex items-center gap-3 rounded-lg border border-[var(--oh-border)] bg-[var(--oh-surface-deep)] px-4 py-3">
+ <div className="flex items-center gap-3 rounded-lg border border-border bg-surface-deep px-4 py-3">
<code
data-testid={
selectedTab === "npm"
@@ -125,13 +125,10 @@ function UpdateCommandTabs() {
: I18nKey.SETTINGS$VERSION_COPY_COMMAND,
)}
disabled={copied}
- className="shrink-0 text-[var(--oh-muted)] hover:text-white disabled:hover:text-[var(--oh-muted)]"
+ className="shrink-0 text-muted hover:text-white disabled:hover:text-muted"
>
{copied ? (
- <Check
- className="size-4 text-[var(--oh-status-success)]"
- aria-hidden
- />
+ <Check className="size-4 text-status-success" aria-hidden />
) : (
<Copy className="size-4" aria-hidden />
)}
@@ -166,7 +163,7 @@ function AgentCanvasUpdateModal({
<ModalBackdrop onClose={onClose}>
<ModalBody
width="md"
- className="relative flex max-h-[80vh] flex-col items-start overflow-auto border border-[var(--oh-border)]"
+ className="relative flex max-h-[80vh] flex-col items-start overflow-auto border border-border"
testID="agent-canvas-update-modal"
>
<ModalCloseButton
@@ -176,7 +173,7 @@ function AgentCanvasUpdateModal({
<div className="flex w-full flex-col gap-2 pr-10">
<BaseModalTitle title={t(I18nKey.SETTINGS$APP_UPDATE_CARD_TITLE)} />
<div className="flex items-center gap-1.5 text-xs">
- <span className="text-[var(--oh-text-dim)]">
+ <span className="text-text-dim">
{t(I18nKey.SETTINGS$APP_UPDATE_VERSION_LABEL)}
</span>
<span className="text-white">{AGENT_CANVAS_CLIENT_VERSION}</span>
@@ -204,7 +201,7 @@ function AgentCanvasUpdateModal({
<div data-testid="agent-canvas-update-status" className="w-full">
{isPending || isFetching ? (
- <span className="text-xs text-[var(--oh-muted)]">
+ <span className="text-xs text-muted">
{t(I18nKey.SETTINGS$APP_UPDATE_CHECKING)}
</span>
) : updateAvailable ? (
@@ -227,7 +224,7 @@ function AgentCanvasUpdateModal({
</span>
</div>
) : upToDate ? (
- <div className="flex items-start gap-2 rounded-lg border border-[var(--oh-status-success)]/30 bg-[var(--oh-status-success)]/10 px-3 py-2 text-xs text-[var(--oh-status-success)]">
+ <div className="flex items-start gap-2 rounded-lg border border-status-success/30 bg-status-success/10 px-3 py-2 text-xs text-status-success">
<CircleCheck className="size-4 shrink-0" aria-hidden />
<span>
{t(I18nKey.SETTINGS$APP_UPDATE_LATEST_MESSAGE)}{" "}
@@ -244,18 +241,18 @@ function AgentCanvasUpdateModal({
</span>
</div>
) : (
- <span className="text-xs text-[var(--oh-muted)]">
+ <span className="text-xs text-muted">
{t(I18nKey.SETTINGS$APP_UPDATE_CHECK_FAILED)}
</span>
)}
</div>
{updateAvailable ? (
- <div className="flex w-full flex-col border-t border-[var(--oh-border)] pt-3">
+ <div className="flex w-full flex-col border-t border-border pt-3">
<span className="text-sm font-medium text-white">
{t(I18nKey.SETTINGS$APP_UPDATE_HOW_TO_UPDATE)}
</span>
- <span className="mt-1 mb-4 text-sm text-[var(--oh-text-dim)]">
+ <span className="mt-1 mb-4 text-sm text-text-dim">
{t(I18nKey.SETTINGS$APP_UPDATE_RUN_COMMANDS)}
</span>
<UpdateCommandTabs />
@@ -309,7 +306,7 @@ export function AgentCanvasUpdateCard({
onClick={() => setIsModalOpen(true)}
aria-haspopup="dialog"
data-testid="agent-canvas-update-toggle"
- className="flex w-full cursor-pointer flex-col gap-1 rounded-md border border-[var(--oh-border)] bg-base-secondary px-3 py-2 text-left hover:bg-[var(--oh-surface-raised)]"
+ className="flex w-full cursor-pointer flex-col gap-1 rounded-md border border-border bg-base-secondary px-3 py-2 text-left hover:bg-surface-raised"
>
<span className="flex w-full items-center gap-2">
<span className="flex-1 truncate text-sm font-semibold leading-5 text-white">
@@ -339,7 +336,7 @@ export function AgentCanvasUpdateCard({
)}
</span>
- <span className="flex items-center gap-1.5 text-xs leading-5 text-[var(--oh-muted)]">
+ <span className="flex items-center gap-1.5 text-xs leading-5 text-muted">
<span>{t(I18nKey.SETTINGS$APP_UPDATE_VERSION_LABEL)}</span>
<span className="text-white">{AGENT_CANVAS_CLIENT_VERSION}</span>
</span>
diff --git a/src/components/features/settings/agent-canvas-version-modal.tsx b/src/components/features/settings/agent-canvas-version-modal.tsx
index 3067422f73..cc38e404a7 100644
--- a/src/components/features/settings/agent-canvas-version-modal.tsx
+++ b/src/components/features/settings/agent-canvas-version-modal.tsx
@@ -98,7 +98,7 @@ export function AgentCanvasVersionModal({
onClose={onClose}
aria-label={t(I18nKey.SETTINGS$VERSION_MODAL_ARIA_LABEL)}
>
- <section className="relative flex w-[520px] max-w-[90vw] flex-col gap-5 rounded-xl border border-[var(--oh-border)] bg-base-secondary p-6 shadow-xl">
+ <section className="relative flex w-130 max-w-[90vw] flex-col gap-5 rounded-xl border border-border bg-base-secondary p-6 shadow-xl">
<ModalCloseButton
onClose={onClose}
testId="agent-canvas-version-modal-close"
@@ -112,7 +112,7 @@ export function AgentCanvasVersionModal({
/>
) : (
<CheckCircle2
- className="size-7 shrink-0 text-[var(--oh-status-success)]"
+ className="size-7 shrink-0 text-status-success"
aria-hidden
/>
)}
@@ -155,7 +155,7 @@ export function AgentCanvasVersionModal({
})}
</p>
{latestVersion ? (
- <p className="whitespace-nowrap text-sm text-[var(--oh-status-success)]">
+ <p className="whitespace-nowrap text-sm text-status-success">
{t(I18nKey.SETTINGS$VERSION_LATEST_MESSAGE)}{" "}
<a
href={AGENT_CANVAS_RELEASE_NOTES_URL}
@@ -168,7 +168,7 @@ export function AgentCanvasVersionModal({
</a>
</p>
) : (
- <p className="text-sm text-[var(--oh-muted)]">
+ <p className="text-sm text-muted">
{t(I18nKey.SETTINGS$VERSION_CHECK_UNAVAILABLE)}
</p>
)}
@@ -188,7 +188,7 @@ export function AgentCanvasVersionModal({
"inline-flex items-center gap-1.5 px-3 pb-2 text-sm font-medium",
selectedTab === tab
? "border-b border-white text-white"
- : "text-[var(--oh-muted)] hover:text-white",
+ : "text-muted hover:text-white",
)}
>
<UpdateCommandTabIcon tab={tab} />
@@ -196,7 +196,7 @@ export function AgentCanvasVersionModal({
</button>
))}
</div>
- <div className="flex items-center gap-3 rounded-lg border border-[var(--oh-border)] bg-[var(--oh-surface-deep)] px-4 py-3">
+ <div className="flex items-center gap-3 rounded-lg border border-border bg-surface-deep px-4 py-3">
<code className="min-w-0 flex-1 overflow-visible whitespace-nowrap font-mono text-sm text-white">
{command}
</code>
@@ -209,13 +209,10 @@ export function AgentCanvasVersionModal({
: I18nKey.SETTINGS$VERSION_COPY_COMMAND,
)}
disabled={copied}
- className="shrink-0 text-[var(--oh-muted)] hover:text-white disabled:hover:text-[var(--oh-muted)]"
+ className="shrink-0 text-muted hover:text-white disabled:hover:text-muted"
>
{copied ? (
- <Check
- className="size-4 text-[var(--oh-status-success)]"
- aria-hidden
- />
+ <Check className="size-4 text-status-success" aria-hidden />
) : (
<Copy className="size-4" aria-hidden />
)}
@@ -229,7 +226,7 @@ export function AgentCanvasVersionModal({
<button
type="button"
onClick={onCheckForUpdates}
- className="inline-flex items-center gap-2 text-sm font-medium text-white hover:text-[var(--oh-text)] disabled:cursor-wait disabled:text-[var(--oh-muted)]"
+ className="inline-flex items-center gap-2 text-sm font-medium text-white hover:text-[var(--oh-text)] disabled:cursor-wait disabled:text-muted"
disabled={isChecking}
>
{t(I18nKey.SETTINGS$VERSION_CHECK_FOR_UPDATES)}
diff --git a/src/components/features/settings/agent-canvas-version-tile.tsx b/src/components/features/settings/agent-canvas-version-tile.tsx
index b0aeb464d4..57b4e33adc 100644
--- a/src/components/features/settings/agent-canvas-version-tile.tsx
+++ b/src/components/features/settings/agent-canvas-version-tile.tsx
@@ -51,7 +51,7 @@ export function AgentCanvasVersionTile({
onClick={() => setIsModalOpen(true)}
aria-label={t(I18nKey.SETTINGS$VERSION_TILE_ARIA_LABEL)}
className={cn(
- "flex w-full items-center gap-3 rounded-md border border-[var(--oh-border)] bg-base-secondary px-3 py-2 text-left hover:bg-[var(--oh-surface-raised)]",
+ "flex w-full items-center gap-3 rounded-md border border-border bg-base-secondary px-3 py-2 text-left hover:bg-surface-raised",
className,
)}
>
@@ -62,7 +62,7 @@ export function AgentCanvasVersionTile({
: t(I18nKey.SETTINGS$VERSION_PRODUCT_NAME)}
</span>
<span className="flex min-w-0 items-center gap-1.5 truncate text-xs leading-5">
- <span className="text-[var(--oh-muted)]">
+ <span className="text-muted">
{t(I18nKey.SETTINGS$APP_UPDATE_VERSION_LABEL)}
</span>
<span className="truncate text-white">
@@ -79,7 +79,7 @@ export function AgentCanvasVersionTile({
/>
) : (
<CheckCircle2
- className="size-5 shrink-0 text-[var(--oh-status-success)]"
+ className="size-5 shrink-0 text-status-success"
aria-hidden
/>
)}
diff --git a/src/components/features/settings/agent-profiles/agent-profile-actions-menu.tsx b/src/components/features/settings/agent-profiles/agent-profile-actions-menu.tsx
index 1f641d003d..113a2e1cee 100644
--- a/src/components/features/settings/agent-profiles/agent-profile-actions-menu.tsx
+++ b/src/components/features/settings/agent-profiles/agent-profile-actions-menu.tsx
@@ -125,7 +125,7 @@ export function AgentProfileActionsMenu({
<div
ref={menuRef}
className={cn(
- "absolute right-0 top-full z-10 mt-2 w-[160px] rounded-md border border-[var(--oh-border-subtle)] bg-tertiary px-1 py-1 shadow-lg",
+ "absolute right-0 top-full z-10 mt-2 w-40 rounded-md border border-border-subtle bg-tertiary px-1 py-1 shadow-lg",
dropdownMenuListClassName,
isPortaled &&
"!static !top-auto !bottom-auto !left-auto !right-auto !mt-0",
diff --git a/src/components/features/settings/agent-profiles/agent-profile-row.tsx b/src/components/features/settings/agent-profiles/agent-profile-row.tsx
index 1e39125894..503de41039 100644
--- a/src/components/features/settings/agent-profiles/agent-profile-row.tsx
+++ b/src/components/features/settings/agent-profiles/agent-profile-row.tsx
@@ -55,7 +55,7 @@ export function AgentProfileRow({
</span>
{secondary ? (
<span
- className="min-w-0 max-w-full truncate text-sm text-[var(--oh-muted)]"
+ className="min-w-0 max-w-full truncate text-sm text-muted"
title={secondary}
>
{secondary}
diff --git a/src/components/features/settings/agent-profiles/agent-profiles-body.tsx b/src/components/features/settings/agent-profiles/agent-profiles-body.tsx
index 146936a6bd..4cf06ddccc 100644
--- a/src/components/features/settings/agent-profiles/agent-profiles-body.tsx
+++ b/src/components/features/settings/agent-profiles/agent-profiles-body.tsx
@@ -63,7 +63,7 @@ export function AgentProfilesBody({
data-testid="agent-profiles-empty"
className={extensionModuleEmptyStateClassName}
>
- <p className="text-sm text-[var(--oh-muted)]">
+ <p className="text-sm text-muted">
{t(I18nKey.SETTINGS$PROFILES_EMPTY)}
</p>
</div>
diff --git a/src/components/features/settings/api-key-modal-base.tsx b/src/components/features/settings/api-key-modal-base.tsx
index 584d9e2e60..8208e70858 100644
--- a/src/components/features/settings/api-key-modal-base.tsx
+++ b/src/components/features/settings/api-key-modal-base.tsx
@@ -87,7 +87,7 @@ export function ApiKeyModalBase({
aria-modal="true"
aria-labelledby="modal-title"
className={cn(
- "bg-base-secondary p-6 rounded-xl flex flex-col gap-4 border border-[var(--oh-border)]",
+ "bg-base-secondary p-6 rounded-xl flex flex-col gap-4 border border-border",
modalWidthClassName(width),
MODAL_MAX_WIDTH_VIEWPORT,
)}
diff --git a/src/components/features/settings/backend-synced-settings-badge.tsx b/src/components/features/settings/backend-synced-settings-badge.tsx
index 1251f17b46..f3cad7ca69 100644
--- a/src/components/features/settings/backend-synced-settings-badge.tsx
+++ b/src/components/features/settings/backend-synced-settings-badge.tsx
@@ -37,7 +37,7 @@ export function BackendSyncedSettingsBadge() {
data-testid="backend-synced-settings-badge"
className="flex items-center"
>
- <Typography.Text className="text-[11px] font-medium text-[var(--oh-text-dim)] leading-5">
+ <Typography.Text className="text-[11px] font-medium text-text-dim leading-5">
{t(I18nKey.SETTINGS$BACKEND_SYNCED_BADGE, {
name,
host: active.backend.host,
diff --git a/src/components/features/settings/brand-button.tsx b/src/components/features/settings/brand-button.tsx
index ec5a4550b6..4677013964 100644
--- a/src/components/features/settings/brand-button.tsx
+++ b/src/components/features/settings/brand-button.tsx
@@ -57,11 +57,11 @@ export const BrandButton = forwardRef<
className={cn(
formControlButtonClassName,
variant === "primary" &&
- "bg-primary text-[var(--oh-color-base)] hover:opacity-80 disabled:bg-[var(--oh-interactive-hover)] disabled:text-[var(--oh-muted)] disabled:opacity-100",
+ "bg-primary text-on-primary hover:opacity-80 disabled:bg-interactive-hover disabled:text-muted disabled:opacity-100",
variant === "secondary" &&
- "border border-[var(--oh-border)] bg-base-secondary text-white hover:bg-surface-raised",
+ "border border-border bg-base-secondary text-white hover:bg-surface-raised",
variant === "tertiary" &&
- "bg-[var(--oh-interactive-hover)] text-white hover:opacity-80",
+ "bg-interactive-hover text-white hover:opacity-80",
variant === "danger" && "bg-red-600 text-white hover:bg-red-700",
variant === "ghost-danger" &&
"h-auto min-h-0 bg-transparent px-0 text-red-600 underline hover:text-red-700 hover:no-underline font-normal",
diff --git a/src/components/features/settings/cloud-settings-link.tsx b/src/components/features/settings/cloud-settings-link.tsx
index 2e089a1ec6..78d121fb4e 100644
--- a/src/components/features/settings/cloud-settings-link.tsx
+++ b/src/components/features/settings/cloud-settings-link.tsx
@@ -50,10 +50,7 @@ export function CloudSettingsLink() {
{t(I18nKey.SETTINGS$CLOUD_SETTINGS_LINK)}
</span>
{!isLockedToCloud && (
- <ExternalLink
- className="size-4 shrink-0 text-[var(--oh-muted)]"
- aria-hidden
- />
+ <ExternalLink className="size-4 shrink-0 text-muted" aria-hidden />
)}
</a>
);
diff --git a/src/components/features/settings/input-skeleton.tsx b/src/components/features/settings/input-skeleton.tsx
index 63f9e602d9..ca2131e356 100644
--- a/src/components/features/settings/input-skeleton.tsx
+++ b/src/components/features/settings/input-skeleton.tsx
@@ -1,8 +1,8 @@
export function InputSkeleton() {
return (
<div className="flex flex-col gap-2.5">
- <div className="w-[70px] h-[20px] skeleton" />
- <div className="w-full min-w-0 h-[40px] skeleton" />
+ <div className="w-17.5 h-5 skeleton" />
+ <div className="w-full min-w-0 h-10 skeleton" />
</div>
);
}
diff --git a/src/components/features/settings/integrations-settings-link.tsx b/src/components/features/settings/integrations-settings-link.tsx
index 5e6f1dc1fa..fcb1b72615 100644
--- a/src/components/features/settings/integrations-settings-link.tsx
+++ b/src/components/features/settings/integrations-settings-link.tsx
@@ -48,10 +48,7 @@ export function IntegrationsSettingsLink() {
<span className={cn(sidebarNavLabelClassName(false), "flex-1")}>
{t(I18nKey.SETTINGS$INTEGRATIONS_SETTINGS_LINK)}
</span>
- <ExternalLink
- className="size-4 shrink-0 text-[var(--oh-muted)]"
- aria-hidden
- />
+ <ExternalLink className="size-4 shrink-0 text-muted" aria-hidden />
</a>
);
}
diff --git a/src/components/features/settings/llm-profiles/profile-actions-menu-item.tsx b/src/components/features/settings/llm-profiles/profile-actions-menu-item.tsx
index 044de68d10..5faddd063a 100644
--- a/src/components/features/settings/llm-profiles/profile-actions-menu-item.tsx
+++ b/src/components/features/settings/llm-profiles/profile-actions-menu-item.tsx
@@ -34,7 +34,7 @@ export function MenuItem({
disabled={disabled}
className={cn(
"group w-full cursor-pointer rounded px-2 py-2 text-start text-nowrap text-sm font-normal",
- "text-[var(--oh-foreground)] hover:bg-[var(--oh-interactive-hover)]",
+ "text-foreground hover:bg-interactive-hover",
"disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent",
)}
role="menuitem"
diff --git a/src/components/features/settings/llm-profiles/profile-actions-menu.tsx b/src/components/features/settings/llm-profiles/profile-actions-menu.tsx
index ef1106720f..8cc9c59184 100644
--- a/src/components/features/settings/llm-profiles/profile-actions-menu.tsx
+++ b/src/components/features/settings/llm-profiles/profile-actions-menu.tsx
@@ -137,7 +137,7 @@ export function ProfileActionsMenu({
<div
ref={menuRef}
className={cn(
- "absolute right-0 top-full z-10 mt-2 w-[160px] rounded-md border border-[var(--oh-border-subtle)] bg-tertiary px-1 py-1 shadow-lg",
+ "absolute right-0 top-full z-10 mt-2 w-40 rounded-md border border-border-subtle bg-tertiary px-1 py-1 shadow-lg",
dropdownMenuListClassName,
isPortaled &&
"!static !top-auto !bottom-auto !left-auto !right-auto !mt-0",
diff --git a/src/components/features/settings/llm-profiles/profile-name-input.tsx b/src/components/features/settings/llm-profiles/profile-name-input.tsx
index 5430e8a840..acb11acbf5 100644
--- a/src/components/features/settings/llm-profiles/profile-name-input.tsx
+++ b/src/components/features/settings/llm-profiles/profile-name-input.tsx
@@ -67,10 +67,7 @@ export const ProfileNameInput = forwardRef<
<p
id={describedById}
data-testid={ruleTestId}
- className={cn(
- "text-xs",
- isValid ? "text-[var(--oh-muted)]" : "text-red-400",
- )}
+ className={cn("text-xs", isValid ? "text-muted" : "text-red-400")}
>
{t(I18nKey.SETTINGS$PROFILE_NAME_RULE)}
</p>
diff --git a/src/components/features/settings/llm-profiles/profile-row.tsx b/src/components/features/settings/llm-profiles/profile-row.tsx
index 0d072b21ad..2ec867ae44 100644
--- a/src/components/features/settings/llm-profiles/profile-row.tsx
+++ b/src/components/features/settings/llm-profiles/profile-row.tsx
@@ -58,7 +58,7 @@ export function ProfileRow({
</span>
{displayModel ? (
<span
- className="min-w-0 max-w-full truncate text-sm text-[var(--oh-muted)]"
+ className="min-w-0 max-w-full truncate text-sm text-muted"
title={profile.model ?? undefined}
>
{displayModel}
@@ -77,7 +77,7 @@ export function ProfileRow({
)}
{profile.provider_connection_broken && (
<span
- className="flex shrink-0 items-center gap-1 whitespace-nowrap rounded-full bg-[var(--oh-warning,#f59e0b)] px-2 py-0.5 text-xs font-medium text-black"
+ className="flex shrink-0 items-center gap-1 whitespace-nowrap rounded-full bg-warning px-2 py-0.5 text-xs font-medium text-black"
title={t(I18nKey.SETTINGS$PROFILE_BROKEN_CONNECTION_TOOLTIP)}
data-testid="profile-broken-connection-badge"
>
diff --git a/src/components/features/settings/llm-profiles/profiles-body.tsx b/src/components/features/settings/llm-profiles/profiles-body.tsx
index f4e5805ea3..411937d5f8 100644
--- a/src/components/features/settings/llm-profiles/profiles-body.tsx
+++ b/src/components/features/settings/llm-profiles/profiles-body.tsx
@@ -142,7 +142,7 @@ export function ProfilesBody({
data-testid="profiles-empty"
className={extensionModuleEmptyStateClassName}
>
- <p className="text-sm text-[var(--oh-muted)]">
+ <p className="text-sm text-muted">
{t(I18nKey.SETTINGS$PROFILES_EMPTY)}
</p>
</div>
@@ -166,7 +166,7 @@ export function ProfilesBody({
>
<h3
data-testid="profile-group-header"
- className="text-xs font-medium uppercase tracking-wide text-[var(--oh-muted)]"
+ className="text-xs font-medium uppercase tracking-wide text-muted"
>
{group.label ?? t(I18nKey.SETTINGS$PROFILES_UNGROUPED)}
</h3>
diff --git a/src/components/features/settings/llm-profiles/provider-connection-modal.tsx b/src/components/features/settings/llm-profiles/provider-connection-modal.tsx
index c3dd674ae2..fd8ee69446 100644
--- a/src/components/features/settings/llm-profiles/provider-connection-modal.tsx
+++ b/src/components/features/settings/llm-profiles/provider-connection-modal.tsx
@@ -203,8 +203,7 @@ export function ProviderConnectionModal({
selectedKey={provider}
onSelectionChange={(key) => setProvider(key?.toString() ?? null)}
classNames={{
- popoverContent:
- "bg-content1 rounded-xl border border-[var(--oh-border)]",
+ popoverContent: "bg-content1 rounded-xl border border-border",
selectorButton: heroUiAutocompleteSelectorButtonClassName,
}}
selectorButtonProps={{ disableRipple: true }}
@@ -216,7 +215,7 @@ export function ProviderConnectionModal({
>
<AutocompleteSection
title={t(I18nKey.MODEL_SELECTOR$VERIFIED)}
- classNames={{ heading: "text-[var(--oh-muted)]" }}
+ classNames={{ heading: "text-muted" }}
>
{verifiedProviders.map((candidate) => (
<AutocompleteItem
@@ -231,7 +230,7 @@ export function ProviderConnectionModal({
{unverifiedProviders.length > 0 ? (
<AutocompleteSection
title={t(I18nKey.MODEL_SELECTOR$OTHERS)}
- classNames={{ heading: "text-[var(--oh-muted)]" }}
+ classNames={{ heading: "text-muted" }}
>
{unverifiedProviders.map((candidate) => (
<AutocompleteItem
diff --git a/src/components/features/settings/llm-profiles/provider-connection-row.tsx b/src/components/features/settings/llm-profiles/provider-connection-row.tsx
index befcb462ec..9b27525954 100644
--- a/src/components/features/settings/llm-profiles/provider-connection-row.tsx
+++ b/src/components/features/settings/llm-profiles/provider-connection-row.tsx
@@ -38,10 +38,10 @@ export function ProviderConnectionRow({
>
{connection.display_name}
</span>
- <span className="min-w-0 max-w-full truncate text-sm text-[var(--oh-muted)]">
+ <span className="min-w-0 max-w-full truncate text-sm text-muted">
{connection.provider}
</span>
- <span className="shrink-0 text-sm text-[var(--oh-muted)]">
+ <span className="shrink-0 text-sm text-muted">
{t(I18nKey.SETTINGS$PROVIDER_CONNECTION_MODEL_COUNT, {
count: linkedProfileCount,
})}
diff --git a/src/components/features/settings/llm-profiles/provider-connections-manager.tsx b/src/components/features/settings/llm-profiles/provider-connections-manager.tsx
index bae33195ca..c024aa1ed3 100644
--- a/src/components/features/settings/llm-profiles/provider-connections-manager.tsx
+++ b/src/components/features/settings/llm-profiles/provider-connections-manager.tsx
@@ -61,7 +61,7 @@ export function ProviderConnectionsManager({
data-testid="provider-connections-empty"
className={extensionModuleEmptyStateClassName}
>
- <p className="text-sm text-[var(--oh-muted)]">
+ <p className="text-sm text-muted">
{t(I18nKey.SETTINGS$PROVIDER_CONNECTIONS_EMPTY)}
</p>
</div>
@@ -96,7 +96,7 @@ export function ProviderConnectionsManager({
<h2 className="text-base font-medium text-white">
{t(I18nKey.SETTINGS$PROVIDER_CONNECTIONS_TITLE)}
</h2>
- <p className="text-sm text-[var(--oh-muted)]">
+ <p className="text-sm text-muted">
{t(I18nKey.SETTINGS$PROVIDER_CONNECTIONS_SUBLINE)}
</p>
</div>
diff --git a/src/components/features/settings/llm-settings/openai-subscription-auth-card.tsx b/src/components/features/settings/llm-settings/openai-subscription-auth-card.tsx
index 4b0dcf9e04..a28670c207 100644
--- a/src/components/features/settings/llm-settings/openai-subscription-auth-card.tsx
+++ b/src/components/features/settings/llm-settings/openai-subscription-auth-card.tsx
@@ -152,7 +152,7 @@ export function OpenAISubscriptionAuthCard({
return (
<section
data-testid="openai-subscription-auth-card"
- className="flex flex-col gap-4 rounded-xl border border-[var(--oh-border)] bg-[var(--oh-surface-raised)] p-4"
+ className="flex flex-col gap-4 rounded-xl border border-border bg-surface-raised p-4"
>
<div className="flex flex-col gap-2">
<Typography.H3>
@@ -198,10 +198,10 @@ export function OpenAISubscriptionAuthCard({
{challenge ? (
<div
data-testid="subscription-device-challenge"
- className="flex flex-col gap-2 rounded-lg border border-[var(--oh-border-subtle)] p-3 text-sm"
+ className="flex flex-col gap-2 rounded-lg border border-border-subtle p-3 text-sm"
>
<span>{t(I18nKey.SETTINGS$SUBSCRIPTION_DEVICE_INSTRUCTIONS)}</span>
- <div className="flex items-center gap-2 rounded-lg bg-[var(--oh-surface-deep)] px-3 py-2 font-mono text-base font-semibold text-white">
+ <div className="flex items-center gap-2 rounded-lg bg-surface-deep px-3 py-2 font-mono text-base font-semibold text-white">
<span
data-testid="subscription-user-code"
className="flex-1 select-all tracking-[0.08em]"
@@ -221,7 +221,7 @@ export function OpenAISubscriptionAuthCard({
}
target="_blank"
rel="noreferrer"
- className="inline-flex items-center gap-1 text-sm text-[var(--oh-accent)] underline"
+ className="inline-flex items-center gap-1 text-sm text-accent underline"
>
{t(I18nKey.SETTINGS$SUBSCRIPTION_OPEN_LOGIN)}
<ExternalLink size={14} aria-hidden />
diff --git a/src/components/features/settings/mcp-settings/mcp-server-form.tsx b/src/components/features/settings/mcp-settings/mcp-server-form.tsx
index 2010e6d024..eec8941007 100644
--- a/src/components/features/settings/mcp-settings/mcp-server-form.tsx
+++ b/src/components/features/settings/mcp-settings/mcp-server-form.tsx
@@ -534,7 +534,7 @@ export function MCPServerForm({
className={cn(
formControlMultilineFieldClassName,
"resize-none placeholder:italic",
- "disabled:bg-[var(--oh-surface-raised)] disabled:border-[var(--oh-border-subtle)]",
+ "disabled:bg-surface-raised disabled:border-border-subtle",
)}
/>
</label>
@@ -658,7 +658,7 @@ export function MCPServerForm({
className={cn(
formControlMultilineFieldClassName,
"resize-none placeholder:italic",
- "disabled:bg-[var(--oh-surface-raised)] disabled:border-[var(--oh-border-subtle)]",
+ "disabled:bg-surface-raised disabled:border-border-subtle",
)}
/>
<p className="text-xs text-tertiary-alt">
@@ -683,7 +683,7 @@ export function MCPServerForm({
className={cn(
formControlMultilineFieldClassName,
"resize-none placeholder:italic",
- "disabled:bg-[var(--oh-surface-raised)] disabled:border-[var(--oh-border-subtle)]",
+ "disabled:bg-surface-raised disabled:border-border-subtle",
)}
/>
</label>
@@ -705,7 +705,7 @@ export function MCPServerForm({
<div
className={cn(
- "flex w-full items-center gap-2",
+ "flex w-full flex-wrap items-center gap-2",
onDelete ? "justify-between" : "justify-end",
)}
>
@@ -723,7 +723,7 @@ export function MCPServerForm({
{t(I18nKey.BUTTON$DELETE)}
</BrandButton>
) : null}
- <div className="flex items-center gap-2">
+ <div className="flex min-w-0 flex-wrap items-center justify-end gap-2 [&_button]:whitespace-nowrap">
<BrandButton
testId="cancel-button"
type="button"
diff --git a/src/components/features/settings/sdk-settings/schema-field.tsx b/src/components/features/settings/sdk-settings/schema-field.tsx
index d691f09e67..d113f2bd58 100644
--- a/src/components/features/settings/sdk-settings/schema-field.tsx
+++ b/src/components/features/settings/sdk-settings/schema-field.tsx
@@ -138,7 +138,7 @@ export function SchemaField({
className={cn(
formControlMultilineFieldClassName,
"min-h-32 font-mono placeholder:italic",
- "disabled:bg-[var(--oh-surface-raised)] disabled:border-[var(--oh-border-subtle)]",
+ "disabled:bg-surface-raised disabled:border-border-subtle",
)}
/>
<FieldHelp field={field} />
diff --git a/src/components/features/settings/sdk-settings/sdk-section-page.tsx b/src/components/features/settings/sdk-settings/sdk-section-page.tsx
index b829ef0519..ff2a08daf3 100644
--- a/src/components/features/settings/sdk-settings/sdk-section-page.tsx
+++ b/src/components/features/settings/sdk-settings/sdk-section-page.tsx
@@ -698,9 +698,7 @@ export function SdkSectionPage({
data-testid="sdk-schema-unavailable"
className={extensionModuleEmptyStateClassName}
>
- <p className="text-sm text-[var(--oh-muted)]">
- {schemaUnavailableMessage}
- </p>
+ <p className="text-sm text-muted">{schemaUnavailableMessage}</p>
</div>
);
}
diff --git a/src/components/features/settings/sdk-settings/view-toggle.tsx b/src/components/features/settings/sdk-settings/view-toggle.tsx
index 38d1a2f9f9..d2419fd347 100644
--- a/src/components/features/settings/sdk-settings/view-toggle.tsx
+++ b/src/components/features/settings/sdk-settings/view-toggle.tsx
@@ -21,7 +21,7 @@ const tabButtonClass = (isActive: boolean, isDisabled: boolean) =>
"border-b-2 pb-2",
isActive
? "text-white border-white"
- : "text-[var(--oh-muted)] border-transparent hover:text-white",
+ : "text-muted border-transparent hover:text-white",
isDisabled && "pointer-events-none opacity-30 cursor-not-allowed",
);
diff --git a/src/components/features/settings/secrets-settings/secret-form.tsx b/src/components/features/settings/secrets-settings/secret-form.tsx
index 08ff2c7548..fe2e5279f4 100644
--- a/src/components/features/settings/secrets-settings/secret-form.tsx
+++ b/src/components/features/settings/secrets-settings/secret-form.tsx
@@ -182,7 +182,7 @@ export function SecretForm({
"resize-none",
formControlMultilineFieldClassName,
"placeholder:italic",
- "disabled:bg-[var(--oh-surface-raised)] disabled:border-[var(--oh-border-subtle)] disabled:cursor-not-allowed",
+ "disabled:bg-surface-raised disabled:border-border-subtle disabled:cursor-not-allowed",
)}
rows={8}
/>
@@ -200,7 +200,7 @@ export function SecretForm({
onChange={(event) => setDescription(event.currentTarget.value)}
className={cn(
formControlSettingsFieldClassName,
- "disabled:bg-[var(--oh-surface-raised)] disabled:border-[var(--oh-border-subtle)]",
+ "disabled:bg-surface-raised disabled:border-border-subtle",
)}
/>
</label>
diff --git a/src/components/features/settings/secrets-settings/secret-list-item.tsx b/src/components/features/settings/secrets-settings/secret-list-item.tsx
index e89205b08c..83ffcd591b 100644
--- a/src/components/features/settings/secrets-settings/secret-list-item.tsx
+++ b/src/components/features/settings/secrets-settings/secret-list-item.tsx
@@ -12,7 +12,7 @@ export function SecretListItemSkeleton() {
<div
className={cn(
settingsListRowClassName,
- "justify-between border-t border-[var(--oh-border)] first:border-t-0",
+ "justify-between border-t border-border first:border-t-0",
)}
>
<div className="flex min-w-0 flex-1 items-center gap-4">
diff --git a/src/components/features/settings/settings-desktop-sidebar.tsx b/src/components/features/settings/settings-desktop-sidebar.tsx
index 6a104cedcf..aafe253244 100644
--- a/src/components/features/settings/settings-desktop-sidebar.tsx
+++ b/src/components/features/settings/settings-desktop-sidebar.tsx
@@ -31,7 +31,7 @@ export function SettingsDesktopSidebar({
<aside
data-testid="settings-navbar-desktop"
className={cn(
- "hidden md:flex md:w-[260px] md:shrink-0 md:flex-col md:gap-2",
+ "hidden md:flex md:w-65 md:shrink-0 md:flex-col md:gap-2",
"md:sticky md:top-8 md:self-start md:pl-8",
)}
>
diff --git a/src/components/features/settings/settings-input.tsx b/src/components/features/settings/settings-input.tsx
index dbe748d1f5..a26804f86c 100644
--- a/src/components/features/settings/settings-input.tsx
+++ b/src/components/features/settings/settings-input.tsx
@@ -102,7 +102,7 @@ export const SettingsInput = forwardRef<HTMLInputElement, SettingsInputProps>(
{hint && (
<span
data-testid={testId ? `${testId}-hint` : undefined}
- className="min-w-0 text-xs text-[var(--oh-muted)]"
+ className="min-w-0 text-xs text-muted"
>
{hint}
</span>
@@ -131,7 +131,7 @@ export const SettingsInput = forwardRef<HTMLInputElement, SettingsInputProps>(
aria-invalid={!!error || ariaInvalid}
className={cn(
formControlSettingsFieldClassName,
- "disabled:bg-[var(--oh-surface-raised)] disabled:border-[var(--oh-border-subtle)]",
+ "disabled:bg-surface-raised disabled:border-border-subtle",
error && "border-red-500",
inputClassName,
)}
diff --git a/src/components/features/settings/settings-layout.tsx b/src/components/features/settings/settings-layout.tsx
index 067a37ba80..3b25461b0f 100644
--- a/src/components/features/settings/settings-layout.tsx
+++ b/src/components/features/settings/settings-layout.tsx
@@ -21,7 +21,7 @@ export function SettingsLayout({
<div className="flex min-h-0 flex-1 gap-10 md:items-start">
<SettingsDesktopSidebar navigationItems={navigationItems} />
<main className={settingsLayoutMainScrollClassName}>
- <div className="mx-auto w-full min-w-0 max-w-[800px]">{children}</div>
+ <div className="mx-auto w-full min-w-0 max-w-200">{children}</div>
</main>
</div>
</div>
diff --git a/src/components/features/settings/settings-mobile-drawer.tsx b/src/components/features/settings/settings-mobile-drawer.tsx
index bb45e1db97..2626f0c2f2 100644
--- a/src/components/features/settings/settings-mobile-drawer.tsx
+++ b/src/components/features/settings/settings-mobile-drawer.tsx
@@ -43,7 +43,7 @@ export function SettingsMobileDrawer({
data-testid="settings-navbar"
className={cn(
"flex flex-col gap-6 transition-transform duration-300 ease-in-out",
- "fixed inset-0 z-50 w-full bg-[var(--oh-surface-deep)] p-4 transform md:hidden",
+ "fixed inset-0 z-50 w-full bg-surface-deep p-4 transform md:hidden",
isMobileMenuOpen ? "translate-x-0" : "-translate-x-full",
)}
>
diff --git a/src/components/features/settings/settings-nav-divider.tsx b/src/components/features/settings/settings-nav-divider.tsx
index 5aa2c48cad..c31c52b7a3 100644
--- a/src/components/features/settings/settings-nav-divider.tsx
+++ b/src/components/features/settings/settings-nav-divider.tsx
@@ -6,11 +6,6 @@ type SettingsNavDividerProps = {
export function SettingsNavDivider({ className }: SettingsNavDividerProps) {
return (
- <div
- className={cn(
- "border-t border-[var(--oh-border-subtle)] w-full",
- className,
- )}
- />
+ <div className={cn("border-t border-border-subtle w-full", className)} />
);
}
diff --git a/src/components/features/settings/settings-nav-header.tsx b/src/components/features/settings/settings-nav-header.tsx
index 92e0d6e9b3..92d22cbf51 100644
--- a/src/components/features/settings/settings-nav-header.tsx
+++ b/src/components/features/settings/settings-nav-header.tsx
@@ -13,7 +13,7 @@ export function SettingsNavHeader({ text, className }: SettingsNavHeaderProps) {
return (
<div className={cn("px-3.5", className)}>
- <Typography.Text className="text-[11px] font-medium text-[var(--oh-text-dim)] uppercase tracking-wide leading-5">
+ <Typography.Text className="text-[11px] font-medium text-text-dim uppercase tracking-wide leading-5">
{t(text)}
</Typography.Text>
</div>
diff --git a/src/components/features/settings/settings-nav-link.tsx b/src/components/features/settings/settings-nav-link.tsx
index d47f59e7fd..514ebee395 100644
--- a/src/components/features/settings/settings-nav-link.tsx
+++ b/src/components/features/settings/settings-nav-link.tsx
@@ -24,18 +24,18 @@ export function SettingsNavLink({ item, onClick }: SettingsNavLinkProps) {
cn(
"group flex items-center gap-3 p-1 sm:px-3.5 sm:py-2 rounded",
navInteractiveTransitionClassName,
- isActive ? "bg-tertiary" : "hover:bg-[var(--oh-surface-raised)]",
+ isActive ? "bg-tertiary" : "hover:bg-surface-raised",
isActive ? "[&_*]:text-white" : "",
)
}
>
- <Typography.Text className="flex h-5 w-5 shrink-0 items-center justify-center text-[var(--oh-muted)] group-hover:text-white">
+ <Typography.Text className="flex h-5 w-5 shrink-0 items-center justify-center text-muted group-hover:text-white">
{icon}
</Typography.Text>
<div className="min-w-0 flex-1 overflow-hidden">
<Typography.Text
className={cn(
- "block truncate whitespace-nowrap text-[var(--oh-muted)] group-hover:text-white",
+ "block truncate whitespace-nowrap text-muted group-hover:text-white",
"transition-transform duration-300 motion-reduce:transition-none group-hover:translate-x-1",
)}
>
diff --git a/src/components/features/settings/subtext-skeleton.tsx b/src/components/features/settings/subtext-skeleton.tsx
index 46d87297be..b771ff688c 100644
--- a/src/components/features/settings/subtext-skeleton.tsx
+++ b/src/components/features/settings/subtext-skeleton.tsx
@@ -1,3 +1,3 @@
export function SubtextSkeleton() {
- return <div className="w-[250px] h-[20px] skeleton" />;
+ return <div className="w-62.5 h-5 skeleton" />;
}
diff --git a/src/components/features/settings/switch-skeleton.tsx b/src/components/features/settings/switch-skeleton.tsx
index 11af03339a..460e2bc599 100644
--- a/src/components/features/settings/switch-skeleton.tsx
+++ b/src/components/features/settings/switch-skeleton.tsx
@@ -1,8 +1,8 @@
export function SwitchSkeleton() {
return (
<div className="flex items-center gap-2">
- <div className="w-[48px] h-[24px] skeleton-round" />
- <div className="w-[100px] h-[20px] skeleton" />
+ <div className="w-12 h-6 skeleton-round" />
+ <div className="w-25 h-5 skeleton" />
</div>
);
}
diff --git a/src/components/features/settings/upgrade-button.tsx b/src/components/features/settings/upgrade-button.tsx
index f79f2d0772..bfaec6db67 100644
--- a/src/components/features/settings/upgrade-button.tsx
+++ b/src/components/features/settings/upgrade-button.tsx
@@ -21,7 +21,7 @@ export function UpgradeButton({
onClick={onClick}
disabled={isDisabled}
className={cn(
- "bg-[var(--oh-interactive-selected)] text-white text-[9px] font-normal w-16 h-4 rounded-[100px] mix-blend-multiply hover:opacity-80 transition-opacity cursor-pointer",
+ "bg-interactive-selected text-white text-[9px] font-normal w-16 h-4 rounded-[100px] mix-blend-multiply hover:opacity-80 transition-opacity cursor-pointer",
className,
)}
>
diff --git a/src/components/features/sidebar/sidebar-layout.ts b/src/components/features/sidebar/sidebar-layout.ts
index 3924339333..249fbe6993 100644
--- a/src/components/features/sidebar/sidebar-layout.ts
+++ b/src/components/features/sidebar/sidebar-layout.ts
@@ -6,7 +6,7 @@ export const navInteractiveTransitionClassName =
/** Expanded sidebar icon column beside labels (matches 36px nav rows). */
export const SIDEBAR_ICON_SLOT_CLASS =
- "flex h-9 w-[18px] shrink-0 items-center justify-center";
+ "flex h-9 w-4.5 shrink-0 items-center justify-center";
/** Collapsed rail: 36px-tall hit target; width follows the row (full rail). */
export const SIDEBAR_COLLAPSED_ICON_SLOT_CLASS =
@@ -24,7 +24,7 @@ export function sidebarHeaderRowClassName(collapsed: boolean): string {
export const SIDEBAR_ROW_INTERACTIVE_CLASS = {
active: "bg-tertiary text-white font-normal",
- idle: "text-[var(--oh-muted)] hover:text-white hover:bg-[var(--oh-surface-raised)]",
+ idle: "text-muted hover:text-white hover:bg-surface-raised",
} as const;
export function sidebarNavListClassName(collapsed: boolean): string {
@@ -54,9 +54,7 @@ export function sidebarCollapsedIconBgClassName(active: boolean): string {
return cn(
"pointer-events-none absolute inset-0 z-0 rounded-md",
navInteractiveTransitionClassName,
- active
- ? "bg-tertiary"
- : "bg-transparent group-hover:bg-[var(--oh-surface-raised)]",
+ active ? "bg-tertiary" : "bg-transparent group-hover:bg-surface-raised",
);
}
@@ -64,11 +62,9 @@ export function sidebarCollapsedIconBgClassName(active: boolean): string {
export function sidebarCollapsedIconGlyphClassName(active: boolean): string {
return cn(
// Full width inside the 36px-tall slot; `pl-2.5` aligns with expanded `px-2.5` rows.
- // Do not set a narrow `w-[18px]` here β€” with horizontal padding it shrinks the glyph.
+ // Do not set a narrow `w-4.5` here β€” with horizontal padding it shrinks the glyph.
"relative z-[1] flex h-full w-full items-center justify-start pl-2.5 [&_svg]:shrink-0",
- active
- ? "text-white font-normal"
- : "text-[var(--oh-muted)] group-hover:text-white",
+ active ? "text-white font-normal" : "text-muted group-hover:text-white",
);
}
@@ -96,5 +92,5 @@ export const SIDEBAR_COLLAPSE_TOGGLE_OVERLAY_CLASS = cn(
"items-center justify-center rounded-md",
navInteractiveTransitionClassName,
"cursor-pointer",
- "text-[var(--oh-muted)] hover:text-white hover:bg-[var(--oh-surface-raised)]",
+ "text-muted hover:text-white hover:bg-surface-raised",
);
diff --git a/src/components/features/sidebar/sidebar-nav-link.tsx b/src/components/features/sidebar/sidebar-nav-link.tsx
index eaa9faae34..c101f8ff65 100644
--- a/src/components/features/sidebar/sidebar-nav-link.tsx
+++ b/src/components/features/sidebar/sidebar-nav-link.tsx
@@ -134,7 +134,7 @@ export function SidebarNavLink({
className={cn(
"absolute right-1.5 top-1/2 -translate-y-1/2",
"flex shrink-0 cursor-pointer items-center justify-center rounded-md p-1",
- "text-[var(--oh-muted)] hover:bg-white/10 hover:text-white",
+ "text-muted hover:bg-white/10 hover:text-white",
hoverRevealActionClassName(pinAction.pinned),
)}
>
diff --git a/src/components/features/sidebar/sidebar-onboarding-checklist-item-preview.tsx b/src/components/features/sidebar/sidebar-onboarding-checklist-item-preview.tsx
index 097b4f7661..b19b3bf7b3 100644
--- a/src/components/features/sidebar/sidebar-onboarding-checklist-item-preview.tsx
+++ b/src/components/features/sidebar/sidebar-onboarding-checklist-item-preview.tsx
@@ -38,7 +38,7 @@ export function SidebarOnboardingChecklistItemPreview({
return (
<div
- className="flex w-[280px] flex-col gap-2.5 p-3"
+ className="flex w-70 flex-col gap-2.5 p-3"
data-testid={`sidebar-onboarding-checklist-preview-${id}`}
>
<div className="flex items-start gap-2">
@@ -49,16 +49,14 @@ export function SidebarOnboardingChecklistItemPreview({
{t(titleKey)}
</span>
</div>
- <p className="text-xs leading-relaxed text-[var(--oh-muted)]">
- {t(descriptionKey)}
- </p>
+ <p className="text-xs leading-relaxed text-muted">{t(descriptionKey)}</p>
<div className="flex items-center justify-between gap-3">
<a
href={docsUrl}
target="_blank"
rel="noreferrer"
data-testid={`sidebar-onboarding-checklist-preview-docs-${id}`}
- className="inline-flex min-w-0 items-center gap-2 text-xs text-[var(--oh-muted)] transition-colors hover:text-white hover:underline"
+ className="inline-flex min-w-0 items-center gap-2 text-xs text-muted transition-colors hover:text-white hover:underline"
onClick={onDocsClick}
>
<BookOpen className="size-3.5 shrink-0" aria-hidden />
diff --git a/src/components/features/sidebar/sidebar-onboarding-checklist.tsx b/src/components/features/sidebar/sidebar-onboarding-checklist.tsx
index ae54a1a5ae..b345227076 100644
--- a/src/components/features/sidebar/sidebar-onboarding-checklist.tsx
+++ b/src/components/features/sidebar/sidebar-onboarding-checklist.tsx
@@ -17,11 +17,11 @@ import { SidebarOnboardingChecklistItemPreview } from "./sidebar-onboarding-chec
import { useSidebarOnboardingChecklist } from "./use-sidebar-onboarding-checklist";
const CHECKLIST_ITEM_TOOLTIP_CLASS =
- "rounded-xl border border-[var(--oh-border)] bg-base-secondary p-0 text-white shadow-xl";
+ "rounded-xl border border-border bg-base-secondary p-0 text-white shadow-xl";
const CHECKLIST_ITEM_CLASS = cn(
"flex min-w-0 w-full items-center gap-2.5 rounded-md px-2.5 py-1.5 text-sm",
- "transition-colors hover:bg-[var(--oh-surface)]",
+ "transition-colors hover:bg-surface",
);
interface SidebarOnboardingChecklistProps {
@@ -35,8 +35,8 @@ function ChecklistStatusIcon({ isComplete }: { isComplete: boolean }) {
className={cn(
"inline-flex size-4 shrink-0 items-center justify-center rounded-full border",
isComplete
- ? "border-primary bg-primary text-[var(--oh-color-base)]"
- : "border-[var(--oh-border)] bg-transparent",
+ ? "border-primary bg-primary text-on-primary"
+ : "border-border bg-transparent",
)}
>
{isComplete ? <Check className="size-2.5" strokeWidth={3} /> : null}
@@ -160,15 +160,15 @@ export function SidebarOnboardingChecklist({
data-testid="sidebar-onboarding-checklist"
data-minimized={isMinimized ? "true" : "false"}
className={cn(
- "w-full shrink-0 overflow-hidden rounded-xl border border-[var(--oh-border)]",
- "bg-[var(--oh-surface-raised)] shadow-sm",
+ "w-full shrink-0 overflow-hidden rounded-xl border border-border",
+ "bg-surface-raised shadow-sm",
)}
>
<div className={cn("px-1", isMinimized ? "py-1" : "pt-2 pb-1")}>
<div
className={cn(
"relative flex w-full items-center gap-0.5 rounded-md px-1.5",
- "transition-colors hover:bg-[var(--oh-surface)]",
+ "transition-colors hover:bg-surface",
isMinimized ? "py-1" : "py-1.5",
)}
>
@@ -203,7 +203,7 @@ export function SidebarOnboardingChecklist({
aria-hidden
className={cn(
"relative z-10 inline-flex size-7 shrink-0 items-center justify-center",
- "pointer-events-none text-[var(--oh-muted)]",
+ "pointer-events-none text-muted",
)}
>
<ChevronDown
diff --git a/src/components/features/sidebar/sidebar-rail-body.tsx b/src/components/features/sidebar/sidebar-rail-body.tsx
index 47398791ca..d30796e9c2 100644
--- a/src/components/features/sidebar/sidebar-rail-body.tsx
+++ b/src/components/features/sidebar/sidebar-rail-body.tsx
@@ -178,7 +178,7 @@ export function SidebarRailBody({
className={cn(
"hidden md:inline-flex ml-auto",
SIDEBAR_ICON_BUTTON_CLASS,
- "text-[var(--oh-muted)] hover:text-white hover:bg-[var(--oh-surface-raised)]",
+ "text-muted hover:text-white hover:bg-surface-raised",
)}
>
<ChevronLeft width={14} height={14} />
@@ -193,7 +193,7 @@ export function SidebarRailBody({
className={cn(
"inline-flex ml-auto",
SIDEBAR_ICON_BUTTON_CLASS,
- "text-[var(--oh-muted)] hover:text-white hover:bg-[var(--oh-surface-raised)]",
+ "text-muted hover:text-white hover:bg-surface-raised",
)}
>
<ChevronLeft width={14} height={14} />
@@ -356,7 +356,7 @@ export function SidebarRailBody({
)}
>
<SidebarCollapsedIconSlot active={collapsedBackendPopoverOpen}>
- <span className="relative inline-flex size-[18px] shrink-0 items-center justify-center">
+ <span className="relative inline-flex size-4.5 shrink-0 items-center justify-center">
<BackendStatusDot
isConnected={activeBackendHealth?.isConnected ?? null}
className="absolute -left-0.5 -top-0.5 z-[1] pointer-events-none"
@@ -370,7 +370,7 @@ export function SidebarRailBody({
</button>
{collapsedBackendPopoverOpen ? (
<div
- className="absolute bottom-[-4px] left-full pl-2.5 z-40 w-[272px]"
+ className="absolute bottom-[-4px] left-full pl-2.5 z-40 w-68"
onClick={(event) => event.stopPropagation()}
>
<BackendSelector
@@ -396,7 +396,7 @@ export function SidebarRailBody({
<div
className={cn(
"flex flex-col items-stretch max-w-none box-border shrink-0 gap-2",
- "-ml-2.5 w-[calc(100%+0.625rem)] border-t border-[var(--oh-border)] pt-2 px-2.5",
+ "-ml-2.5 w-[calc(100%+0.625rem)] border-t border-border pt-2 px-2.5",
)}
>
<AgentCanvasVersionTile hideWhenUpToDate />
diff --git a/src/components/features/sidebar/sidebar.tsx b/src/components/features/sidebar/sidebar.tsx
index 0ca8d85ea6..9d0c88b20d 100644
--- a/src/components/features/sidebar/sidebar.tsx
+++ b/src/components/features/sidebar/sidebar.tsx
@@ -219,10 +219,10 @@ export function Sidebar() {
}}
className={cn(
"max-md:hidden flex bg-base flex-col min-h-0 transition-[width,min-width] duration-200",
- "md:border-r md:border-[var(--oh-border)] md:h-full",
+ "md:border-r md:border-border md:h-full",
collapsed
- ? "md:w-[60px] md:min-w-[60px] md:px-2.5"
- : "md:w-[300px] md:min-w-[300px] pb-2 md:pl-2.5 md:pr-0",
+ ? "md:w-15 md:min-w-15 md:px-2.5"
+ : "md:w-75 md:min-w-75 pb-2 md:pl-2.5 md:pr-0",
currentPath === "/" && "md:pb-3",
)}
>
@@ -253,7 +253,7 @@ export function Sidebar() {
aria-hidden={!mobileDrawerVisible}
className={cn(
"fixed inset-y-0 left-0 z-50 flex min-h-0 w-[min(300px,85vw)] flex-col bg-base",
- "border-r border-[var(--oh-border)] pb-2 pl-2.5 pr-0 md:hidden",
+ "border-r border-border pb-2 pl-2.5 pr-0 md:hidden",
"transition-transform ease-in-out motion-reduce:transition-none",
mobileDrawerVisible ? "translate-x-0" : "-translate-x-full",
)}
diff --git a/src/components/features/sidebar/user-avatar.tsx b/src/components/features/sidebar/user-avatar.tsx
index 738971b63a..55e1364582 100644
--- a/src/components/features/sidebar/user-avatar.tsx
+++ b/src/components/features/sidebar/user-avatar.tsx
@@ -28,7 +28,7 @@ export function UserAvatar({ avatarUrl, isLoading }: UserAvatarProps) {
aria-label={t(I18nKey.USER$AVATAR_PLACEHOLDER)}
width={28}
height={28}
- className="text-[var(--oh-muted)]"
+ className="text-muted"
/>
)}
{isLoading && <LoadingSpinner size="small" />}
diff --git a/src/components/features/skills/add-skill-modal.tsx b/src/components/features/skills/add-skill-modal.tsx
index 891bd08ec9..7d5011a014 100644
--- a/src/components/features/skills/add-skill-modal.tsx
+++ b/src/components/features/skills/add-skill-modal.tsx
@@ -35,8 +35,8 @@ function InlineCodeChip({ children }: { children?: React.ReactNode }) {
return (
<code
className={cn(
- "mx-0.5 inline-block rounded-sm border border-[var(--oh-border-subtle)]",
- "bg-[var(--oh-surface-raised)] px-1.5 py-0.5 align-baseline font-mono text-[11px] text-white",
+ "mx-0.5 inline-block rounded-sm border border-border-subtle",
+ "bg-surface-raised px-1.5 py-0.5 align-baseline font-mono text-[11px] text-white",
)}
>
{children}
@@ -64,8 +64,8 @@ function AddSkillExampleBlock() {
<pre
data-testid="add-skill-modal-example"
className={cn(
- "overflow-x-auto rounded-sm border border-[var(--oh-border-subtle)]",
- "bg-[var(--oh-surface-raised)] p-2 pr-10 text-xs text-white",
+ "overflow-x-auto rounded-sm border border-border-subtle",
+ "bg-surface-raised p-2 pr-10 text-xs text-white",
)}
>
{ADD_SKILL_EXAMPLE_COMMAND}
@@ -77,9 +77,9 @@ function AddSkillExampleBlock() {
disabled={copied}
onClick={handleCopy}
className={cn(
- "absolute right-2 top-2 cursor-pointer rounded-sm border border-[var(--oh-border-subtle)]",
+ "absolute right-2 top-2 cursor-pointer rounded-sm border border-border-subtle",
"bg-base-secondary p-1 text-tertiary-alt transition-colors",
- "hover:bg-[var(--oh-surface)] hover:text-white disabled:cursor-default [&_path]:fill-current",
+ "hover:bg-surface hover:text-white disabled:cursor-default [&_path]:fill-current",
)}
>
{copied ? (
@@ -121,7 +121,7 @@ export function AddSkillModal({ onClose }: AddSkillModalProps) {
>
<div
data-testid="add-skill-modal"
- className="relative flex w-[520px] max-w-[90vw] max-h-[85vh] flex-col rounded-xl border border-[var(--oh-border)] bg-base-secondary"
+ className="relative flex w-130 max-w-[90vw] max-h-[85vh] flex-col rounded-xl border border-border bg-base-secondary"
>
<ModalCloseButton onClose={onClose} testId="add-skill-modal-close" />
<header className="flex-shrink-0 px-6 pb-4 pt-6">
@@ -189,7 +189,7 @@ export function AddSkillModal({ onClose }: AddSkillModalProps) {
target="_blank"
rel="noreferrer"
data-testid="add-skill-modal-docs-link"
- className="self-start text-xs text-[var(--oh-muted)] transition-colors hover:text-white hover:underline"
+ className="self-start text-xs text-muted transition-colors hover:text-white hover:underline"
>
{t(I18nKey.SETTINGS$SKILLS_ADD_MODAL_VIEW_DOCS)}
</a>
diff --git a/src/components/features/skills/extensions-mobile-hub.tsx b/src/components/features/skills/extensions-mobile-hub.tsx
index 5100a582dc..c51c5db0cc 100644
--- a/src/components/features/skills/extensions-mobile-hub.tsx
+++ b/src/components/features/skills/extensions-mobile-hub.tsx
@@ -56,7 +56,7 @@ export function ExtensionsMobileHub() {
{t(I18nKey.SIDEBAR$SKILLS_AND_PLUGINS_CLOUD_LINK)}
</span>
<ExternalLink
- className="size-4 shrink-0 text-[var(--oh-muted)]"
+ className="size-4 shrink-0 text-muted"
aria-hidden
/>
</a>
diff --git a/src/components/features/skills/extensions-navigation.tsx b/src/components/features/skills/extensions-navigation.tsx
index 6910eb955f..3b5ee7b2ea 100644
--- a/src/components/features/skills/extensions-navigation.tsx
+++ b/src/components/features/skills/extensions-navigation.tsx
@@ -79,7 +79,7 @@ export function ExtensionsNavigation() {
return (
<aside
data-testid="extensions-navbar-desktop"
- className="hidden md:flex md:w-[260px] md:shrink-0 md:flex-col md:gap-2 md:sticky md:top-8 md:self-start"
+ className="hidden md:flex md:w-65 md:shrink-0 md:flex-col md:gap-2 md:sticky md:top-8 md:self-start"
>
<span className="px-2 text-sm font-normal text-white">
{t(I18nKey.NAV$CUSTOMIZE)}
@@ -104,7 +104,7 @@ export function ExtensionsNavigation() {
</span>
);
const comingSoonBadge = item.comingSoon && (
- <span className="ml-auto shrink-0 rounded-full border border-white/20 bg-white/5 px-1.5 py-0.5 text-[10px] font-medium text-[var(--oh-text-dim)]">
+ <span className="ml-auto shrink-0 rounded-full border border-white/20 bg-white/5 px-1.5 py-0.5 text-[10px] font-medium text-text-dim">
{t(I18nKey.NAV$COMING_SOON)}
</span>
);
@@ -127,7 +127,7 @@ export function ExtensionsNavigation() {
{baseRow}
{label}
<ExternalLink
- className="ml-auto size-4 shrink-0 text-[var(--oh-muted)]"
+ className="ml-auto size-4 shrink-0 text-muted"
aria-hidden
/>
</a>
diff --git a/src/components/features/skills/skill-card-pill-row.tsx b/src/components/features/skills/skill-card-pill-row.tsx
index 7a3841b66d..f1e92de69f 100644
--- a/src/components/features/skills/skill-card-pill-row.tsx
+++ b/src/components/features/skills/skill-card-pill-row.tsx
@@ -189,7 +189,7 @@ export function SkillCardPillRow({ pills, testId }: SkillCardPillRowProps) {
<div
ref={measureRef}
aria-hidden
- className="pointer-events-none fixed top-0 -left-[10000px] z-[-1] flex flex-nowrap items-center gap-1.5 opacity-0"
+ className="pointer-events-none fixed top-0 -left-2500 z-[-1] flex flex-nowrap items-center gap-1.5 opacity-0"
>
{pills.map((pill) => (
<span key={pill.id} className="inline-flex shrink-0">
@@ -242,8 +242,8 @@ export function SkillCardPillRow({ pills, testId }: SkillCardPillRowProps) {
data-testid={`${testId}-overflow-popover`}
className={cn(
"z-[9999] flex w-max max-w-[20rem] flex-col gap-1.5",
- "rounded-md border border-[var(--oh-border-subtle)]",
- "bg-[var(--oh-surface)] p-2 shadow-lg",
+ "rounded-md border border-border-subtle",
+ "bg-surface p-2 shadow-lg",
)}
style={{
position: "fixed",
diff --git a/src/components/features/skills/skill-detail-modal.tsx b/src/components/features/skills/skill-detail-modal.tsx
index b8697f82f5..ee46099e34 100644
--- a/src/components/features/skills/skill-detail-modal.tsx
+++ b/src/components/features/skills/skill-detail-modal.tsx
@@ -44,7 +44,7 @@ function ReadonlyTextArea({
value={value}
rows={Math.min(12, Math.max(4, value.split("\n").length))}
className={cn(
- "bg-[var(--oh-surface-raised)] border border-[var(--oh-border-subtle)] w-full min-w-0 rounded-sm p-2 text-sm",
+ "bg-surface-raised border border-border-subtle w-full min-w-0 rounded-sm p-2 text-sm",
"cursor-not-allowed resize-none custom-scrollbar",
)}
/>
@@ -100,7 +100,7 @@ export function SkillDetailModal({
<div
data-testid="skill-detail-modal"
data-skill-name={skill.name}
- className="relative flex w-[520px] max-w-[90vw] max-h-[85vh] flex-col overflow-hidden rounded-xl border border-[var(--oh-border)] bg-base-secondary"
+ className="relative flex w-130 max-w-[90vw] max-h-[85vh] flex-col overflow-hidden rounded-xl border border-border bg-base-secondary"
>
<ModalCloseButton onClose={onClose} testId="skill-detail-modal-close" />
<header className="flex flex-shrink-0 items-start gap-3 pb-4 pl-6 pr-12 pt-6">
@@ -152,7 +152,7 @@ export function SkillDetailModal({
>
<div
data-testid={`skill-modal-enable-row-${skill.name}`}
- className="flex w-full items-center rounded-lg border border-[var(--oh-border)] bg-[rgba(255,255,255,0.04)] px-3 py-2.5"
+ className="flex w-full items-center rounded-lg border border-border bg-[rgba(255,255,255,0.04)] px-3 py-2.5"
>
<SettingsSwitch
testId={`skill-modal-toggle-${skill.name}`}
diff --git a/src/components/features/skills/skill-facet-row.tsx b/src/components/features/skills/skill-facet-row.tsx
index a224aeb3e6..c82c68d5b6 100644
--- a/src/components/features/skills/skill-facet-row.tsx
+++ b/src/components/features/skills/skill-facet-row.tsx
@@ -39,7 +39,7 @@ export function SkillFacetRow({
? "cursor-default text-tertiary-alt/40"
: // Same hover pair as the extensions nav links: a raised surface the
// label brightens against, rather than a light fill it sinks into.
- "cursor-pointer hover:bg-[var(--oh-surface-raised)] hover:text-white",
+ "cursor-pointer hover:bg-surface-raised hover:text-white",
checked ? "text-white" : "text-tertiary-light",
)}
>
@@ -47,9 +47,7 @@ export function SkillFacetRow({
aria-hidden
className={cn(
"flex size-3.5 shrink-0 items-center justify-center rounded-[3px] border",
- checked
- ? "border-white bg-white text-black"
- : "border-[var(--oh-border)]",
+ checked ? "border-white bg-white text-black" : "border-border",
)}
>
{checked ? <Check className="size-2.5" strokeWidth={3} /> : null}
diff --git a/src/components/features/skills/skills-toolbar.tsx b/src/components/features/skills/skills-toolbar.tsx
index 8ca117c52a..d17c6c064f 100644
--- a/src/components/features/skills/skills-toolbar.tsx
+++ b/src/components/features/skills/skills-toolbar.tsx
@@ -23,7 +23,7 @@ export function SkillsToolbar({
<div
className={cn(
"relative flex flex-1 min-w-0 items-center",
- "rounded-lg border border-[var(--oh-border)] bg-base-secondary",
+ "rounded-lg border border-border bg-base-secondary",
"focus-within:border-white/40 focus-within:ring-1 focus-within:ring-white/20",
"transition-colors",
)}
@@ -64,8 +64,8 @@ export function SkillsToolbar({
onClick={onOpenFilters}
className={cn(
"flex shrink-0 items-center gap-2 rounded-lg px-3 py-2 text-sm md:hidden",
- "border border-[var(--oh-border)] bg-base-secondary text-white",
- "cursor-pointer hover:bg-[var(--oh-interactive-hover)]",
+ "border border-border bg-base-secondary text-white",
+ "cursor-pointer hover:bg-interactive-hover",
)}
>
<ListFilter className="size-4 shrink-0" aria-hidden />
diff --git a/src/components/features/suggestions/suggestion-item.tsx b/src/components/features/suggestions/suggestion-item.tsx
index ef2d92f0ff..6d9e64411a 100644
--- a/src/components/features/suggestions/suggestion-item.tsx
+++ b/src/components/features/suggestions/suggestion-item.tsx
@@ -34,7 +34,7 @@ export function SuggestionItem({ suggestion, onClick }: SuggestionItemProps) {
return (
<button
type="button"
- className="list-none border border-[var(--oh-border)] rounded-[15px] hover:bg-surface-raised hover:border-[var(--oh-interactive-hover)] transition-colors flex-1 flex items-center justify-center cursor-pointer gap-[10px] h-[55px] px-4"
+ className="list-none border border-border rounded-[15px] hover:bg-surface-raised hover:border-interactive-hover transition-colors flex-1 flex items-center justify-center cursor-pointer gap-2.5 h-13.75 px-4"
onClick={() => onClick(suggestion.value)}
>
{itemIcon}
diff --git a/src/components/shared/buttons/circle-plus-check-toggle.tsx b/src/components/shared/buttons/circle-plus-check-toggle.tsx
index 992eeb7781..5d037a3428 100644
--- a/src/components/shared/buttons/circle-plus-check-toggle.tsx
+++ b/src/components/shared/buttons/circle-plus-check-toggle.tsx
@@ -37,7 +37,7 @@ export function CirclePlusBadge({
aria-hidden="true"
data-testid={testId}
className={cn(
- "inline-flex size-7 shrink-0 items-center justify-center rounded-full bg-surface-raised text-white transition-colors hover:bg-[var(--oh-interactive-hover)]",
+ "inline-flex size-7 shrink-0 items-center justify-center rounded-full bg-surface-raised text-white transition-colors hover:bg-interactive-hover",
className,
)}
>
@@ -96,7 +96,7 @@ export function CirclePlusCheckToggle({
? "border-0 bg-[rgba(248,113,113,0.14)] text-[#ef4444] hover:bg-[rgba(248,113,113,0.24)]"
: "border border-white bg-transparent text-white [&_path]:fill-current"),
!isSelected &&
- "border-0 bg-surface-raised text-white hover:bg-[var(--oh-interactive-hover)]",
+ "border-0 bg-surface-raised text-white hover:bg-interactive-hover",
isDisabled && "cursor-not-allowed opacity-50",
className,
)}
diff --git a/src/components/shared/buttons/modal-button.tsx b/src/components/shared/buttons/modal-button.tsx
index 6082e5554c..22061b58f0 100644
--- a/src/components/shared/buttons/modal-button.tsx
+++ b/src/components/shared/buttons/modal-button.tsx
@@ -31,7 +31,7 @@ export function ModalButton({
disabled={disabled}
onClick={onClick}
className={clsx(
- variant === "default" && "text-sm font-normal py-[10px] rounded-sm",
+ variant === "default" && "text-sm font-normal py-2.5 rounded-sm",
variant === "text-like" && "text-xs leading-4 font-normal",
icon && "flex items-center justify-center gap-2",
disabled && "opacity-50 cursor-not-allowed",
diff --git a/src/components/shared/buttons/remove-button.tsx b/src/components/shared/buttons/remove-button.tsx
index 02d7f73e71..b597232847 100644
--- a/src/components/shared/buttons/remove-button.tsx
+++ b/src/components/shared/buttons/remove-button.tsx
@@ -18,7 +18,7 @@ export function RemoveButton({
onClick={onClick}
aria-label={ariaLabel}
className={cn(
- "bg-[var(--oh-muted)] rounded-full w-5 h-5 flex items-center justify-center cursor-pointer",
+ "bg-muted rounded-full w-5 h-5 flex items-center justify-center cursor-pointer",
className,
)}
>
diff --git a/src/components/shared/buttons/scroll-to-bottom-button.tsx b/src/components/shared/buttons/scroll-to-bottom-button.tsx
index 6253ceb188..f57b9b8565 100644
--- a/src/components/shared/buttons/scroll-to-bottom-button.tsx
+++ b/src/components/shared/buttons/scroll-to-bottom-button.tsx
@@ -10,7 +10,7 @@ export function ScrollToBottomButton({ onClick }: ScrollToBottomButtonProps) {
type="button"
onClick={onClick}
data-testid="scroll-to-bottom"
- className="flex items-center justify-center size-8 rounded-full bg-[var(--oh-surface)] text-[var(--oh-muted)] hover:bg-tertiary hover:text-white rotate-180 cursor-pointer transition-colors"
+ className="flex items-center justify-center size-8 rounded-full bg-surface text-muted hover:bg-tertiary hover:text-white rotate-180 cursor-pointer transition-colors"
>
<ArrowSendIcon width={15} height={15} />
</button>
diff --git a/src/components/shared/filters/enum-filter-dropdown.tsx b/src/components/shared/filters/enum-filter-dropdown.tsx
index 9695d0eba5..a212ee83e0 100644
--- a/src/components/shared/filters/enum-filter-dropdown.tsx
+++ b/src/components/shared/filters/enum-filter-dropdown.tsx
@@ -100,7 +100,7 @@ export function EnumFilterDropdown<T extends string>({
aria-label={resolvedAriaLabel}
className={cn(
"absolute right-0 top-full z-50 mt-1 min-w-full w-max",
- "max-h-60 overflow-auto rounded-[6px] bg-tertiary p-1 context-menu-box-shadow",
+ "max-h-60 overflow-auto rounded-md bg-tertiary p-1 context-menu-box-shadow",
dropdownMenuListClassName,
)}
>
@@ -119,7 +119,7 @@ export function EnumFilterDropdown<T extends string>({
}}
className={cn(
dropdownMenuRowClassName,
- selected && "bg-[var(--oh-interactive-selected)]",
+ selected && "bg-interactive-selected",
)}
>
<span className="min-w-0 flex-1 truncate">
diff --git a/src/components/shared/git-provider-icon.tsx b/src/components/shared/git-provider-icon.tsx
index b0f7765366..6d2576815f 100644
--- a/src/components/shared/git-provider-icon.tsx
+++ b/src/components/shared/git-provider-icon.tsx
@@ -23,7 +23,7 @@ export function GitProviderIcon({
<FaBitbucket size={14} className={className} />
)}
{gitProvider === "azure_devops" && (
- <AzureDevOpsLogo className={cn(className, "w-[14px] h-[14px]")} />
+ <AzureDevOpsLogo className={cn(className, "w-3.5 h-3.5")} />
)}
</>
);
diff --git a/src/components/shared/hook-execution-event-message.tsx b/src/components/shared/hook-execution-event-message.tsx
index 2b71f2cbac..65510c9f2c 100644
--- a/src/components/shared/hook-execution-event-message.tsx
+++ b/src/components/shared/hook-execution-event-message.tsx
@@ -79,7 +79,7 @@ export function HookExecutionEventMessage({
<span>
{icon} {t(I18nKey.HOOK$HOOK_LABEL)}: {event.hook_event_type}
{event.tool_name && (
- <span className="text-[var(--oh-muted)] ml-2">({event.tool_name})</span>
+ <span className="text-muted ml-2">({event.tool_name})</span>
)}
<span className={cn("ml-2 px-1 py-0.5 rounded text-xs", statusClassName)}>
{statusText}
@@ -88,28 +88,24 @@ export function HookExecutionEventMessage({
);
const details = (
- <div className="flex flex-col gap-2 text-[var(--oh-muted)]">
+ <div className="flex flex-col gap-2 text-muted">
<div>
- <span className="text-[var(--oh-text-subtle)]">
- {t(I18nKey.HOOK$COMMAND)}:
- </span>{" "}
- <code className="text-xs bg-[var(--oh-surface)] px-1 py-0.5 rounded">
+ <span className="text-text-subtle">{t(I18nKey.HOOK$COMMAND)}:</span>{" "}
+ <code className="text-xs bg-surface px-1 py-0.5 rounded">
{formatHookCommand(event.hook_command)}
</code>
</div>
{event.exit_code !== null && (
<div>
- <span className="text-[var(--oh-text-subtle)]">
- {t(I18nKey.HOOK$EXIT_CODE)}:
- </span>{" "}
+ <span className="text-text-subtle">{t(I18nKey.HOOK$EXIT_CODE)}:</span>{" "}
{event.exit_code}
</div>
)}
{event.blocked && event.reason && (
<div className="text-amber-400">
- <span className="text-[var(--oh-text-subtle)]">
+ <span className="text-text-subtle">
{t(I18nKey.HOOK$BLOCKED_REASON)}:
</span>{" "}
{event.reason}
@@ -118,28 +114,22 @@ export function HookExecutionEventMessage({
{event.additional_context && (
<div>
- <span className="text-[var(--oh-text-subtle)]">
- {t(I18nKey.HOOK$CONTEXT)}:
- </span>{" "}
+ <span className="text-text-subtle">{t(I18nKey.HOOK$CONTEXT)}:</span>{" "}
{event.additional_context}
</div>
)}
{event.error && (
<div className="text-red-400">
- <span className="text-[var(--oh-text-subtle)]">
- {t(I18nKey.HOOK$ERROR)}:
- </span>{" "}
+ <span className="text-text-subtle">{t(I18nKey.HOOK$ERROR)}:</span>{" "}
{event.error}
</div>
)}
{event.stdout && (
<div>
- <span className="text-[var(--oh-text-subtle)]">
- {t(I18nKey.HOOK$OUTPUT)}:
- </span>
- <pre className="text-xs bg-[var(--oh-surface)] p-2 rounded mt-1 overflow-x-auto max-h-40 overflow-y-auto">
+ <span className="text-text-subtle">{t(I18nKey.HOOK$OUTPUT)}:</span>
+ <pre className="text-xs bg-surface p-2 rounded mt-1 overflow-x-auto max-h-40 overflow-y-auto">
{event.stdout}
</pre>
</div>
@@ -147,10 +137,8 @@ export function HookExecutionEventMessage({
{event.stderr && (
<div>
- <span className="text-[var(--oh-text-subtle)]">
- {t(I18nKey.HOOK$STDERR)}:
- </span>
- <pre className="text-xs bg-[var(--oh-surface)] p-2 rounded mt-1 overflow-x-auto max-h-40 overflow-y-auto text-amber-300">
+ <span className="text-text-subtle">{t(I18nKey.HOOK$STDERR)}:</span>
+ <pre className="text-xs bg-surface p-2 rounded mt-1 overflow-x-auto max-h-40 overflow-y-auto text-amber-300">
{event.stderr}
</pre>
</div>
diff --git a/src/components/shared/loading-spinner.tsx b/src/components/shared/loading-spinner.tsx
index c2c09d411b..786b63d79e 100644
--- a/src/components/shared/loading-spinner.tsx
+++ b/src/components/shared/loading-spinner.tsx
@@ -12,8 +12,7 @@ export function LoadingSpinner({
className,
outerClassName,
}: LoadingSpinnerProps) {
- const sizeStyle =
- size === "small" ? "w-[25px] h-[25px]" : "w-[50px] h-[50px]";
+ const sizeStyle = size === "small" ? "w-6.25 h-6.25" : "w-12.5 h-12.5";
return (
<div
diff --git a/src/components/shared/modals/confirmation-modal.tsx b/src/components/shared/modals/confirmation-modal.tsx
index 8ab1576a4e..20c891eb4b 100644
--- a/src/components/shared/modals/confirmation-modal.tsx
+++ b/src/components/shared/modals/confirmation-modal.tsx
@@ -35,7 +35,7 @@ export function ConfirmationModal({
>
<div
data-testid="confirmation-modal"
- className="bg-base-secondary p-4 rounded-xl flex flex-col gap-4 border border-[var(--oh-border)]"
+ className="bg-base-secondary p-4 rounded-xl flex flex-col gap-4 border border-border"
>
<p>{text}</p>
<div className="w-full flex justify-end gap-2">
diff --git a/src/components/shared/modals/confirmation-modals/danger-modal.tsx b/src/components/shared/modals/confirmation-modals/danger-modal.tsx
index d74da8f867..1b8b3b2f0a 100644
--- a/src/components/shared/modals/confirmation-modals/danger-modal.tsx
+++ b/src/components/shared/modals/confirmation-modals/danger-modal.tsx
@@ -32,7 +32,7 @@ export function DangerModal({
{
text: buttons.cancel.text,
onClick: buttons.cancel.onClick,
- className: "bg-[var(--oh-interactive-selected)]",
+ className: "bg-interactive-selected",
},
]}
/>
diff --git a/src/components/shared/modals/modal-body.tsx b/src/components/shared/modals/modal-body.tsx
index 052981ceb9..c0a58e1908 100644
--- a/src/components/shared/modals/modal-body.tsx
+++ b/src/components/shared/modals/modal-body.tsx
@@ -5,10 +5,10 @@ import { cn } from "#/utils/utils";
export type ModalWidth = "sm" | "md" | "lg" | "xl";
export const MODAL_WIDTH_CLASS: Record<ModalWidth, string> = {
- sm: "w-[384px]",
- md: "w-[520px]",
- lg: "w-[640px]",
- xl: "w-[720px]",
+ sm: "w-96",
+ md: "w-130",
+ lg: "w-160",
+ xl: "w-180",
};
export const MODAL_MAX_WIDTH_VIEWPORT = "max-w-[90vw]";
diff --git a/src/components/shared/modals/settings/model-selector.tsx b/src/components/shared/modals/settings/model-selector.tsx
index 2f1379ea22..f721bc2449 100644
--- a/src/components/shared/modals/settings/model-selector.tsx
+++ b/src/components/shared/modals/settings/model-selector.tsx
@@ -151,7 +151,7 @@ export function ModelSelector({
return (
<div
className={cn(
- "flex flex-col md:flex-row w-full min-w-0 justify-between gap-4 md:gap-[46px]",
+ "flex flex-col md:flex-row w-full min-w-0 justify-between gap-4 md:gap-11.5",
wrapperClassName,
)}
>
@@ -174,8 +174,7 @@ export function ModelSelector({
defaultSelectedKey={selectedProvider ?? undefined}
selectedKey={selectedProvider}
classNames={{
- popoverContent:
- "bg-content1 rounded-xl border border-[var(--oh-border)]",
+ popoverContent: "bg-content1 rounded-xl border border-border",
selectorButton: heroUiAutocompleteSelectorButtonClassName,
}}
selectorButtonProps={{ disableRipple: true }}
@@ -187,7 +186,7 @@ export function ModelSelector({
>
<AutocompleteSection
title={t(I18nKey.MODEL_SELECTOR$VERIFIED)}
- classNames={{ heading: "text-[var(--oh-muted)]" }}
+ classNames={{ heading: "text-muted" }}
>
{verifiedProviders.map((provider) => (
<AutocompleteItem
@@ -201,7 +200,7 @@ export function ModelSelector({
{unverifiedProviders.length > 0 ? (
<AutocompleteSection
title={t(I18nKey.MODEL_SELECTOR$OTHERS)}
- classNames={{ heading: "text-[var(--oh-muted)]" }}
+ classNames={{ heading: "text-muted" }}
>
{unverifiedProviders.map((provider) => (
<AutocompleteItem key={provider.name}>
@@ -246,8 +245,7 @@ export function ModelSelector({
selectedKey={selectedModel}
defaultSelectedKey={selectedModel ?? undefined}
classNames={{
- popoverContent:
- "bg-content1 rounded-xl border border-[var(--oh-border)]",
+ popoverContent: "bg-content1 rounded-xl border border-border",
selectorButton: heroUiAutocompleteSelectorButtonClassName,
}}
selectorButtonProps={{ disableRipple: true }}
@@ -259,7 +257,7 @@ export function ModelSelector({
>
<AutocompleteSection
title={t(I18nKey.MODEL_SELECTOR$VERIFIED)}
- classNames={{ heading: "text-[var(--oh-muted)]" }}
+ classNames={{ heading: "text-muted" }}
>
{verifiedModels.map((model) => (
<AutocompleteItem key={model.name} textValue={model.name}>
@@ -277,7 +275,7 @@ export function ModelSelector({
{unverifiedModels.length > 0 ? (
<AutocompleteSection
title={t(I18nKey.MODEL_SELECTOR$OTHERS)}
- classNames={{ heading: "text-[var(--oh-muted)]" }}
+ classNames={{ heading: "text-muted" }}
>
{unverifiedModels.map((model) => (
<AutocompleteItem
diff --git a/src/components/shared/modals/settings/settings-form.tsx b/src/components/shared/modals/settings/settings-form.tsx
index 0970706daf..b671f7dc7b 100644
--- a/src/components/shared/modals/settings/settings-form.tsx
+++ b/src/components/shared/modals/settings/settings-form.tsx
@@ -79,12 +79,12 @@ export function SettingsForm({ settings, onClose }: SettingsFormProps) {
className="flex flex-col gap-6"
onSubmit={handleSubmit}
>
- <div className="flex flex-col gap-[17px]">
+ <div className="flex flex-col gap-4.25">
<ModelSelector
currentModel={
typeof currentModel === "string" ? currentModel : undefined
}
- wrapperClassName="!flex-col !gap-[17px]"
+ wrapperClassName="!flex-col !gap-4.25"
labelClassName={SETTINGS_FORM.LABEL_CLASSNAME}
/>
diff --git a/src/components/shared/modals/settings/settings-modal.tsx b/src/components/shared/modals/settings/settings-modal.tsx
index 23ff004278..e9436e1fd8 100644
--- a/src/components/shared/modals/settings/settings-modal.tsx
+++ b/src/components/shared/modals/settings/settings-modal.tsx
@@ -23,7 +23,7 @@ export function SettingsModal({ onClose, settings }: SettingsModalProps) {
<div
data-testid="ai-config-modal"
className={cn(
- "bg-[var(--oh-surface)] m-4 p-6 rounded-xl flex flex-col gap-[17px] border border-[var(--oh-border)] api-configuration-modal",
+ "bg-surface m-4 p-6 rounded-xl flex flex-col gap-4.25 border border-border api-configuration-modal",
modalWidthClassName("md"),
MODAL_MAX_WIDTH_VIEWPORT,
)}
diff --git a/src/components/shared/text-shimmer.tsx b/src/components/shared/text-shimmer.tsx
index 7428ceb8bc..820dad888a 100644
--- a/src/components/shared/text-shimmer.tsx
+++ b/src/components/shared/text-shimmer.tsx
@@ -58,7 +58,7 @@ function TextShimmerComponent({
if (reduceMotion) {
return (
<Component
- className={cn("text-[var(--oh-muted)]", className)}
+ className={cn("text-muted", className)}
style={style}
{...rest}
>
diff --git a/src/components/ui/resize-handle.tsx b/src/components/ui/resize-handle.tsx
index 3265b518c5..5ced250b91 100644
--- a/src/components/ui/resize-handle.tsx
+++ b/src/components/ui/resize-handle.tsx
@@ -25,7 +25,7 @@ export function ResizeHandle({
aria-hidden
>
<div
- className="absolute inset-y-0 left-1/2 w-3 min-w-[12px] -translate-x-1/2 cursor-ew-resize"
+ className="absolute inset-y-0 left-1/2 w-3 min-w-3 -translate-x-1/2 cursor-ew-resize"
onMouseDown={onMouseDown}
onMouseEnter={() => setIsHovering(true)}
onMouseLeave={() => setIsHovering(false)}
diff --git a/src/routes/agent-settings.tsx b/src/routes/agent-settings.tsx
index 539b18da95..b94b1f19cc 100644
--- a/src/routes/agent-settings.tsx
+++ b/src/routes/agent-settings.tsx
@@ -1182,7 +1182,7 @@ export function AgentSettingsScreen({
</Typography.Text>
<textarea
data-testid="agent-command-input"
- className="bg-tertiary border border-[#717888] rounded-sm p-2 text-sm font-mono text-white placeholder:text-[#717888] min-h-[60px] resize-y focus:outline-none focus:border-white"
+ className="bg-tertiary border border-[#717888] rounded-sm p-2 text-sm font-mono text-white placeholder:text-[#717888] min-h-15 resize-y focus:outline-none focus:border-white"
value={commandText}
placeholder={commandPlaceholder}
onChange={(e) => {
diff --git a/src/routes/app-settings.tsx b/src/routes/app-settings.tsx
index d00cba5e3e..f88618a3d8 100644
--- a/src/routes/app-settings.tsx
+++ b/src/routes/app-settings.tsx
@@ -226,7 +226,7 @@ export function AppSettingsScreen() {
<GettingStartedChecklistSwitch />
- <div className="border-t border-[var(--oh-border)] pt-6 mt-2">
+ <div className="border-t border-border pt-6 mt-2">
<h3 className="text-lg font-medium mb-2">
{t(I18nKey.SETTINGS$CONVERSATION_TITLES)}
</h3>
@@ -258,7 +258,7 @@ export function AppSettingsScreen() {
</NavigationLink>
</div>
- <div className="border-t border-[var(--oh-border)] pt-6 mt-2">
+ <div className="border-t border-border pt-6 mt-2">
<h3 className="text-lg font-medium mb-2">
{t(I18nKey.SETTINGS$GIT_SETTINGS)}
</h3>
diff --git a/src/routes/automations-list.tsx b/src/routes/automations-list.tsx
index 6f1eab87d4..0755aefe15 100644
--- a/src/routes/automations-list.tsx
+++ b/src/routes/automations-list.tsx
@@ -366,8 +366,8 @@ export default function AutomationsList() {
return renderShell(
<>
{/* Header */}
- <div className="flex items-start justify-between gap-4">
- <div className="min-w-0">
+ <div className="flex flex-wrap items-start justify-between gap-4">
+ <div className="min-w-0 flex-1 basis-64">
<h1 className="text-xl font-semibold text-content">
{interfaceCopy.listTitle}
</h1>
@@ -492,7 +492,7 @@ export default function AutomationsList() {
<button
type="button"
onClick={() => setLimit((prev) => prev + PAGE_SIZE)}
- className="self-center rounded-lg border border-[var(--oh-border)] px-6 py-2 text-sm text-white hover:bg-surface-raised"
+ className="self-center rounded-lg border border-border px-6 py-2 text-sm text-white hover:bg-surface-raised"
>
{t(I18nKey.AUTOMATIONS$LOAD_MORE)}
</button>
diff --git a/src/routes/canvas-extension-page.tsx b/src/routes/canvas-extension-page.tsx
index fb761c9481..684d1019f2 100644
--- a/src/routes/canvas-extension-page.tsx
+++ b/src/routes/canvas-extension-page.tsx
@@ -86,7 +86,7 @@ export default function CanvasExtensionPage() {
if (error || !page) {
return (
<main className="flex h-full items-center justify-center p-8">
- <div className="max-w-lg rounded-xl border border-[var(--oh-border)] bg-base-secondary p-6 text-center">
+ <div className="max-w-lg rounded-xl border border-border bg-base-secondary p-6 text-center">
<h1 className="text-lg font-semibold text-white">
{t(I18nKey.SETUP$UNAVAILABLE_TITLE)}
</h1>
diff --git a/src/routes/canvas-extensions.tsx b/src/routes/canvas-extensions.tsx
index 8210f4865f..c9e07475df 100644
--- a/src/routes/canvas-extensions.tsx
+++ b/src/routes/canvas-extensions.tsx
@@ -85,7 +85,7 @@ export default function CanvasExtensionsScreen() {
>
<ExtensionsNavigation />
<main className={cn(settingsLikeMainScrollClassName, "h-full")}>
- <div className="mx-auto flex w-full min-w-0 max-w-[800px] flex-col gap-6">
+ <div className="mx-auto flex w-full min-w-0 max-w-200 flex-col gap-6">
<div className="flex min-w-0 items-start justify-between gap-4">
<div className="min-w-0 space-y-1">
<h2 className="text-xl font-semibold leading-6 text-foreground">
diff --git a/src/routes/device-verify.tsx b/src/routes/device-verify.tsx
index 7f3cf1985f..6dec9807bc 100644
--- a/src/routes/device-verify.tsx
+++ b/src/routes/device-verify.tsx
@@ -144,12 +144,12 @@ export default function DeviceVerify() {
return (
<div className="min-h-screen flex items-center justify-center bg-background p-4">
<div className="flex flex-col items-center gap-6 w-full max-w-md">
- <div className="flex-1 min-w-0 max-w-md w-full mx-auto p-6 bg-card rounded-2xl shadow-lg border border-[var(--oh-border-subtle)]">
+ <div className="flex-1 min-w-0 max-w-md w-full mx-auto p-6 bg-card rounded-2xl shadow-lg border border-border-subtle">
<H1 className="text-2xl mb-4 text-center">
{t(I18nKey.DEVICE$AUTHORIZATION_REQUEST)}
</H1>
- <div className="mb-6 p-4 bg-base rounded-lg border border-[var(--oh-border-subtle)]">
- <p className="text-xs text-[var(--oh-text-subtle)] mb-2 text-center uppercase tracking-wider">
+ <div className="mb-6 p-4 bg-base rounded-lg border border-border-subtle">
+ <p className="text-xs text-text-subtle mb-2 text-center uppercase tracking-wider">
{t(I18nKey.DEVICE$CODE_LABEL)}
</p>
<p className="text-xl font-mono font-semibold text-center tracking-[0.3em]">
@@ -160,7 +160,7 @@ export default function DeviceVerify() {
<p className="text-sm font-medium text-amber-500 mb-1">
{t(I18nKey.DEVICE$SECURITY_NOTICE)}
</p>
- <p className="text-sm text-[var(--oh-muted)]">
+ <p className="text-sm text-muted">
{t(I18nKey.DEVICE$SECURITY_WARNING)}
</p>
</div>
@@ -171,7 +171,7 @@ export default function DeviceVerify() {
<button
type="button"
onClick={() => window.close()}
- className="flex-1 px-4 py-2 border border-[var(--oh-border)] rounded-md hover:bg-muted text-[var(--oh-text-tertiary)]"
+ className="flex-1 px-4 py-2 border border-border rounded-md hover:bg-muted text-text-tertiary"
>
{t(I18nKey.DEVICE$CANCEL)}
</button>
diff --git a/src/routes/files-tab.tsx b/src/routes/files-tab.tsx
index 34b3371eca..87a832bc4e 100644
--- a/src/routes/files-tab.tsx
+++ b/src/routes/files-tab.tsx
@@ -153,7 +153,7 @@ function FilesTab() {
aria-label={t(I18nKey.FILES$REFRESH)}
title={t(I18nKey.FILES$REFRESH)}
data-testid="files-tab-refresh"
- className="flex items-center justify-center w-[26px] py-1 rounded-[7px] hover:enabled:bg-[var(--oh-interactive-hover)] cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"
+ className="flex items-center justify-center w-6.5 py-1 rounded-[7px] hover:enabled:bg-interactive-hover cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"
>
<RefreshIcon
width={12.75}
@@ -171,7 +171,7 @@ function FilesTab() {
>
<WorkspacePath path={workspacePath} />
{filesQuery.isLoading ? (
- <div className="flex flex-1 items-center justify-center text-sm text-[var(--oh-muted)]">
+ <div className="flex flex-1 items-center justify-center text-sm text-muted">
{t(I18nKey.FILES$LOADING_FILES)}
</div>
) : (
@@ -189,7 +189,7 @@ function FilesTab() {
{isTreeVisible && (
<>
<aside
- className="shrink-0 border-r border-[var(--oh-border)] overflow-y-auto custom-scrollbar-always"
+ className="shrink-0 border-r border-border overflow-y-auto custom-scrollbar-always"
data-testid="files-tab-tree"
style={{ width: `${treeWidth}px` }}
>
@@ -212,7 +212,7 @@ function FilesTab() {
>
{selectedPath ? (
<>
- <div className="flex items-center gap-3 px-3 py-1.5 border-b border-[var(--oh-border)]">
+ <div className="flex items-center gap-3 px-3 py-1.5 border-b border-border">
<SegmentedToggle<ViewMode>
ariaLabel={t(I18nKey.FILES$RICH)}
testId="files-tab-content-mode-toggle"
@@ -231,7 +231,7 @@ function FilesTab() {
aria-label={t(I18nKey.FILES$OPEN_IN_NEW_WINDOW)}
title={t(I18nKey.FILES$OPEN_IN_NEW_WINDOW)}
data-testid="files-tab-open-in-new-window"
- className="ml-auto flex items-center justify-center w-[26px] py-1 rounded-[7px] hover:bg-[var(--oh-interactive-hover)] cursor-pointer text-white"
+ className="ml-auto flex items-center justify-center w-6.5 py-1 rounded-[7px] hover:bg-interactive-hover cursor-pointer text-white"
>
<LinkExternalIcon width={14} height={14} />
</a>
diff --git a/src/routes/home.tsx b/src/routes/home.tsx
index c524aa4d7f..40ec74bb71 100644
--- a/src/routes/home.tsx
+++ b/src/routes/home.tsx
@@ -15,7 +15,7 @@ function HomeScreen() {
return (
<div
data-testid="home-screen"
- className="custom-scrollbar-always h-full overflow-y-auto rounded-xl bg-transparent px-4 md:px-0 lg:px-[42px]"
+ className="custom-scrollbar-always h-full overflow-y-auto rounded-xl bg-transparent px-4 md:px-0 lg:px-10.5"
>
<div className="md:px-4 lg:px-0">
<LlmNotConfiguredBanner />
diff --git a/src/routes/launch.tsx b/src/routes/launch.tsx
index 418186d2d9..0d7a227e68 100644
--- a/src/routes/launch.tsx
+++ b/src/routes/launch.tsx
@@ -104,18 +104,16 @@ function ErrorDisplay({
className="flex h-full items-center justify-center"
data-testid="launch-error"
>
- <div className="max-w-md rounded-lg bg-[var(--oh-surface)] p-6 text-center">
+ <div className="max-w-md rounded-lg bg-surface p-6 text-center">
<h2 className="mb-4 text-xl font-medium text-red-400">
{t(I18nKey.LAUNCH$ERROR_TITLE)}
</h2>
- <p className="mb-6 text-[var(--oh-text-tertiary)]">
- {errorMessages[errorType]}
- </p>
+ <p className="mb-6 text-text-tertiary">{errorMessages[errorType]}</p>
<div className="flex justify-center gap-3">
<button
type="button"
onClick={onGoHome}
- className="rounded-md bg-tertiary px-4 py-2 text-sm text-[var(--oh-foreground)] hover:bg-[var(--oh-interactive-hover)]"
+ className="rounded-md bg-tertiary px-4 py-2 text-sm text-foreground hover:bg-interactive-hover"
data-testid="go-home-button"
>
{t(I18nKey.LAUNCH$GO_HOME)}
diff --git a/src/routes/mcp.tsx b/src/routes/mcp.tsx
index a9cd0ac10a..60f2c61ff6 100644
--- a/src/routes/mcp.tsx
+++ b/src/routes/mcp.tsx
@@ -112,10 +112,10 @@ export default function MCPPage() {
>
<ExtensionsNavigation />
<main className={settingsLikeMainScrollClassName}>
- <div className="mx-auto flex w-full min-w-0 max-w-[800px] flex-col gap-6">
+ <div className="mx-auto flex w-full min-w-0 max-w-200 flex-col gap-6">
<div className="min-w-0">
- <div className="flex items-start justify-between gap-4">
- <div className="space-y-1">
+ <div className="flex flex-wrap items-start justify-between gap-4">
+ <div className="min-w-0 flex-1 basis-64 space-y-1">
<h2 className="text-xl font-medium leading-6 text-foreground">
{t(I18nKey.SETTINGS$MCP_TITLE)}
</h2>
diff --git a/src/routes/secrets-settings.tsx b/src/routes/secrets-settings.tsx
index e7b069482f..61a857a546 100644
--- a/src/routes/secrets-settings.tsx
+++ b/src/routes/secrets-settings.tsx
@@ -149,9 +149,7 @@ export function SecretsSettingsScreen() {
data-testid="secrets-empty"
className={extensionModuleEmptyStateClassName}
>
- <p className="text-sm text-[var(--oh-muted)]">
- {t(I18nKey.SECRETS$EMPTY)}
- </p>
+ <p className="text-sm text-muted">{t(I18nKey.SECRETS$EMPTY)}</p>
</div>
)}
diff --git a/src/routes/shared-conversation.tsx b/src/routes/shared-conversation.tsx
index 70461d8111..9a31d28e70 100644
--- a/src/routes/shared-conversation.tsx
+++ b/src/routes/shared-conversation.tsx
@@ -77,7 +77,7 @@ export default function SharedConversation() {
return (
<div className="h-screen bg-base text-white flex flex-col">
{/* Header with logo, conversation title and branch info */}
- <div className="border-b border-[var(--oh-border-subtle)] p-4 flex-shrink-0">
+ <div className="border-b border-border-subtle p-4 flex-shrink-0">
<div className="max-w-4xl mx-auto flex items-start gap-4">
<Link
to="/conversations"
@@ -92,18 +92,18 @@ export default function SharedConversation() {
t(I18nKey.CONVERSATION$SHARED_CONVERSATION)}
</h1>
{conversation?.selected_branch && (
- <div className="text-sm text-[var(--oh-muted)]">
+ <div className="text-sm text-muted">
{t(I18nKey.CONVERSATION$BRANCH)}: {conversation.selected_branch}
</div>
)}
{conversation?.selected_repository && (
- <div className="text-sm text-[var(--oh-muted)]">
+ <div className="text-sm text-muted">
{t(I18nKey.CONVERSATION$REPOSITORY)}:{" "}
{conversation.selected_repository}
</div>
)}
{conversation?.llm_model && (
- <div className="text-sm text-[var(--oh-muted)]">
+ <div className="text-sm text-muted">
{t(I18nKey.LLM$MODEL)}: {conversation.llm_model}
</div>
)}
@@ -116,7 +116,7 @@ export default function SharedConversation() {
ref={scrollContainerRef}
className="flex-1 overflow-y-auto custom-scrollbar-always px-4 pt-4 gap-2"
>
- <div className="max-w-4xl mx-auto p-4 border border-[var(--oh-border-subtle)] rounded">
+ <div className="max-w-4xl mx-auto p-4 border border-border-subtle rounded">
{renderableEvents.length > 0 ? (
<Messages
messages={renderableEvents}
@@ -124,7 +124,7 @@ export default function SharedConversation() {
/>
) : (
<div className="flex items-center justify-center h-full">
- <div className="text-center text-[var(--oh-muted)] py-8">
+ <div className="text-center text-muted py-8">
{t(I18nKey.CONVERSATION$NO_HISTORY_AVAILABLE)}
</div>
</div>
diff --git a/src/routes/skills-plugins.tsx b/src/routes/skills-plugins.tsx
index 2a552d93c5..69e1ea29ae 100644
--- a/src/routes/skills-plugins.tsx
+++ b/src/routes/skills-plugins.tsx
@@ -127,7 +127,7 @@ export default function SkillsPluginsScreen() {
>
<ExtensionsNavigation />
<main className={cn(settingsLikeMainScrollClassName, "h-full")}>
- <div className="mx-auto flex w-full min-w-0 max-w-[800px] flex-col gap-6">
+ <div className="mx-auto flex w-full min-w-0 max-w-200 flex-col gap-6">
<div className="flex min-w-0 items-start justify-between gap-4">
<div className="min-w-0 space-y-1">
<h2 className="text-xl font-semibold leading-6 text-foreground">
diff --git a/src/routes/skills-settings.tsx b/src/routes/skills-settings.tsx
index 09166b1945..9abc9c05f9 100644
--- a/src/routes/skills-settings.tsx
+++ b/src/routes/skills-settings.tsx
@@ -133,7 +133,7 @@ function SkillsSettingsScreen() {
<main className={cn(settingsLikeMainScrollClassName, "h-full")}>
<div
data-testid="skills-page"
- className="mx-auto flex w-full min-w-0 max-w-[1100px] flex-col gap-6"
+ className="mx-auto flex w-full min-w-0 max-w-275 flex-col gap-6"
>
<div className="flex min-w-0 items-start justify-between gap-4">
<div className="min-w-0 space-y-1">
@@ -201,7 +201,7 @@ function SkillsSettingsScreen() {
<SkillFacetRail
groups={groups}
onToggle={handleToggleFacet}
- className="hidden w-[240px] shrink-0 self-start md:flex"
+ className="hidden w-60 shrink-0 self-start md:flex"
/>
<section className="flex min-w-0 flex-1 flex-col gap-3">
diff --git a/src/routes/task-list-tab.tsx b/src/routes/task-list-tab.tsx
index 1634c102fb..5b5404859a 100644
--- a/src/routes/task-list-tab.tsx
+++ b/src/routes/task-list-tab.tsx
@@ -26,7 +26,7 @@ function TaskListTab() {
data-active={task.status === "in_progress" ? "true" : "false"}
className={cn(
"px-4 py-2",
- task.status === "in_progress" && "bg-[var(--oh-surface-raised)]",
+ task.status === "in_progress" && "bg-surface-raised",
)}
>
<TaskItem task={task} />
diff --git a/src/tailwind.css b/src/tailwind.css
index af317f1fd1..1660110063 100644
--- a/src/tailwind.css
+++ b/src/tailwind.css
@@ -13,6 +13,8 @@
--color-primary: var(--oh-color-primary);
--color-logo: var(--oh-color-logo);
--color-base: var(--oh-color-base);
+ /* Avoid text-base: tailwind-merge interprets it as a font size. */
+ --color-on-primary: var(--oh-color-base);
--color-base-secondary: var(--oh-color-base-secondary);
--color-danger: var(--oh-color-danger);
--color-success: var(--oh-color-success);
@@ -38,13 +40,24 @@
--color-modal-title: var(--oh-modal-title-foreground);
/* Semantic border aliases */
+ --color-border: var(--oh-border);
--color-border-input: var(--oh-border-input);
--color-border-subtle: var(--oh-border-subtle);
- /* Interactive state aliases */
+ /* Focus / interactive state aliases */
+ --color-focus: var(--oh-focus);
--color-interactive-hover: var(--oh-interactive-hover);
--color-interactive-hover-low: var(--oh-interactive-hover-low);
--color-interactive-active: var(--oh-interactive-active);
+ --color-interactive-selected: var(--oh-interactive-selected);
+
+ /* Status / accent / warning (danger & success already aliased above) */
+ --color-semantic-success: var(--oh-success);
+ --color-semantic-danger: var(--oh-danger);
+ --color-status-success: var(--oh-status-success);
+ --color-status-error: var(--oh-status-error);
+ --color-accent: var(--oh-accent);
+ --color-warning: var(--oh-warning);
/* Cool Grey scale */
--color-cool-grey-50: var(--cool-grey-50);
diff --git a/src/ui/context-menu.tsx b/src/ui/context-menu.tsx
index 3825e337db..7b3a67920c 100644
--- a/src/ui/context-menu.tsx
+++ b/src/ui/context-menu.tsx
@@ -3,54 +3,51 @@ import { cva, type VariantProps } from "class-variance-authority";
import { cn } from "#/utils/utils";
import { dropdownMenuListGapClassName } from "#/utils/dropdown-classes";
-const contextMenuVariants = cva(
- "z-50 overflow-hidden text-[var(--oh-foreground)]",
- {
- variants: {
- theme: {
- default:
- "absolute rounded-md border border-[var(--oh-border-subtle)] bg-tertiary px-1 py-1 shadow-lg",
- naked: "relative",
- /** In document-body portal; coordinates come from inline `style`. */
- popover:
- "relative rounded-md border border-[var(--oh-border-subtle)] bg-tertiary px-1 py-1 shadow-lg",
- },
- size: {
- compact: "py-1 px-1",
- default: "",
- },
- layout: {
- vertical: cn("flex flex-col", dropdownMenuListGapClassName),
- },
- position: {
- top: "bottom-full",
- bottom: "top-full",
- none: "",
- },
- spacing: {
- default: "mt-2",
- none: "",
- },
- alignment: {
- left: "left-0",
- right: "right-0",
- none: "",
- },
+const contextMenuVariants = cva("z-50 overflow-hidden text-foreground", {
+ variants: {
+ theme: {
+ default:
+ "absolute rounded-md border border-border-subtle bg-tertiary px-1 py-1 shadow-lg",
+ naked: "relative",
+ /** In document-body portal; coordinates come from inline `style`. */
+ popover:
+ "relative rounded-md border border-border-subtle bg-tertiary px-1 py-1 shadow-lg",
},
- compoundVariants: [
- {
- theme: "naked",
- className: "shadow-none",
- },
- ],
- defaultVariants: {
- theme: "default",
- size: "default",
- layout: "vertical",
- spacing: "default",
+ size: {
+ compact: "py-1 px-1",
+ default: "",
},
+ layout: {
+ vertical: cn("flex flex-col", dropdownMenuListGapClassName),
+ },
+ position: {
+ top: "bottom-full",
+ bottom: "top-full",
+ none: "",
+ },
+ spacing: {
+ default: "mt-2",
+ none: "",
+ },
+ alignment: {
+ left: "left-0",
+ right: "right-0",
+ none: "",
+ },
+ },
+ compoundVariants: [
+ {
+ theme: "naked",
+ className: "shadow-none",
+ },
+ ],
+ defaultVariants: {
+ theme: "default",
+ size: "default",
+ layout: "vertical",
+ spacing: "default",
},
-);
+});
interface ContextMenuProps {
ref?: React.RefObject<HTMLUListElement | null>;
diff --git a/src/ui/divider.tsx b/src/ui/divider.tsx
index 4c790e1356..be7e1007be 100644
--- a/src/ui/divider.tsx
+++ b/src/ui/divider.tsx
@@ -4,32 +4,29 @@ import { cn } from "#/utils/utils";
/** 12px slot (4px + 1px line + 4px at default rem) inside `px-1` menus/popovers. */
export const MENU_DIVIDER_VERTICAL_CLASS = "h-3";
-const dividerVariants = cva(
- "shrink-0 self-stretch min-w-full bg-[var(--oh-border)]",
- {
- variants: {
- orientation: {
- horizontal: "h-[1px]",
- },
- color: {
- light: "bg-[var(--oh-border)]",
- },
- size: {
- thin: "h-[1px]",
- },
- inset: {
- none: "",
- menu: "",
- },
+const dividerVariants = cva("shrink-0 self-stretch min-w-full bg-border", {
+ variants: {
+ orientation: {
+ horizontal: "h-px",
},
- defaultVariants: {
- orientation: "horizontal",
- color: "light",
- size: "thin",
- inset: "none",
+ color: {
+ light: "bg-border",
},
+ size: {
+ thin: "h-px",
+ },
+ inset: {
+ none: "",
+ menu: "",
+ },
+ },
+ defaultVariants: {
+ orientation: "horizontal",
+ color: "light",
+ size: "thin",
+ inset: "none",
},
-);
+});
interface DividerProps extends VariantProps<typeof dividerVariants> {
className?: string;
@@ -57,7 +54,7 @@ export function Divider({
>
<div
aria-hidden
- className="absolute top-1/2 -left-1 -right-1 h-px -translate-y-1/2 bg-[var(--oh-border)]"
+ className="absolute top-1/2 -left-1 -right-1 h-px -translate-y-1/2 bg-border"
/>
</div>
);
diff --git a/src/ui/dropdown/clear-button.tsx b/src/ui/dropdown/clear-button.tsx
index bada92f91d..5e1aa5c4cd 100644
--- a/src/ui/dropdown/clear-button.tsx
+++ b/src/ui/dropdown/clear-button.tsx
@@ -12,7 +12,7 @@ export function ClearButton({ onClear }: ClearButtonProps) {
onClick={onClear}
// eslint-disable-next-line i18next/no-literal-string -- i18n-free UI primitive; callers supply translated labels
aria-label="Clear selection"
- className="text-white hover:text-[var(--oh-text-tertiary)]"
+ className="text-white hover:text-text-tertiary"
>
<X size={14} />
</button>
diff --git a/src/ui/dropdown/dropdown-menu.tsx b/src/ui/dropdown/dropdown-menu.tsx
index bf3516b819..52977782ba 100644
--- a/src/ui/dropdown/dropdown-menu.tsx
+++ b/src/ui/dropdown/dropdown-menu.tsx
@@ -41,7 +41,7 @@ export function DropdownMenu({
"absolute z-50 overflow-hidden text-white",
fitContent ? "min-w-full w-max" : "w-full",
openUpward ? "bottom-full mb-1" : "mt-1",
- "bg-tertiary rounded-[6px] context-menu-box-shadow p-1",
+ "bg-tertiary rounded-md context-menu-box-shadow p-1",
"max-h-60 overflow-auto",
!isOpen && "hidden",
)}
@@ -50,7 +50,7 @@ export function DropdownMenu({
{...getMenuProps({ className: cn("p-0", dropdownMenuListClassName) })}
>
{isOpen && filteredOptions.length === 0 && (
- <li className="px-2 py-2 text-sm text-[var(--oh-muted)] italic">
+ <li className="px-2 py-2 text-sm text-muted italic">
{emptyMessage}
</li>
)}
@@ -65,7 +65,7 @@ export function DropdownMenu({
dropdownMenuRowClassName,
"focus:outline-none",
selectedItem?.value === option.value &&
- "bg-[var(--oh-interactive-selected)] text-white",
+ "bg-interactive-selected text-white",
),
})}
>
diff --git a/src/ui/help-link.tsx b/src/ui/help-link.tsx
index 496cbd0878..d5ab03b88f 100644
--- a/src/ui/help-link.tsx
+++ b/src/ui/help-link.tsx
@@ -5,7 +5,7 @@ const helpLinkVariants = cva("", {
variants: {
size: {
default: "text-xs",
- settings: "text-sm text-[var(--oh-muted)] font-normal leading-5.5",
+ settings: "text-sm text-muted font-normal leading-5.5",
},
linkColor: {
default: "",
diff --git a/src/ui/pre.tsx b/src/ui/pre.tsx
index 5da2a33be0..9fe3e2a150 100644
--- a/src/ui/pre.tsx
+++ b/src/ui/pre.tsx
@@ -21,7 +21,7 @@ const preVariants = cva("whitespace-pre-wrap", {
},
textColor: {
default: "",
- light: "text-[var(--oh-text-tertiary)]",
+ light: "text-text-tertiary",
},
padding: {
default: "",
@@ -38,7 +38,7 @@ const preVariants = cva("whitespace-pre-wrap", {
},
maxHeight: {
default: "",
- small: "max-h-[400px]",
+ small: "max-h-100",
large: "max-h-[60vh]",
},
overflow: {
diff --git a/src/ui/toggle-switch.tsx b/src/ui/toggle-switch.tsx
index 059c1ef8b4..bb6cfc29e6 100644
--- a/src/ui/toggle-switch.tsx
+++ b/src/ui/toggle-switch.tsx
@@ -22,14 +22,14 @@ export function ToggleSwitchVisual({
className={cn(
"relative inline-flex shrink-0 items-center rounded-full",
"transition-colors duration-200 ease-in-out motion-reduce:transition-none",
- compact ? "h-3.5 w-6 p-[3px]" : "h-[22px] w-[40px] border",
+ compact ? "h-3.5 w-6 p-0.75" : "h-5.5 w-10 border",
enabled
? compact
? "bg-white"
: "border-white bg-white"
: compact
- ? "bg-[var(--oh-border)]"
- : "border-[var(--oh-border)] bg-surface-raised",
+ ? "bg-border"
+ : "border-border bg-surface-raised",
className,
)}
>
@@ -40,11 +40,11 @@ export function ToggleSwitchVisual({
compact ? "size-2" : "size-4",
enabled
? compact
- ? "translate-x-[10px] bg-base-secondary"
- : "translate-x-[21px] bg-base-secondary"
+ ? "translate-x-2.5 bg-base-secondary"
+ : "translate-x-5.25 bg-base-secondary"
: compact
- ? "translate-x-0 bg-[var(--oh-muted)]"
- : "translate-x-[2px] bg-[var(--oh-muted)]",
+ ? "translate-x-0 bg-muted"
+ : "translate-x-0.5 bg-muted",
)}
/>
</span>
diff --git a/src/ui/typography.tsx b/src/ui/typography.tsx
index 54008896ff..2959b8d432 100644
--- a/src/ui/typography.tsx
+++ b/src/ui/typography.tsx
@@ -6,11 +6,11 @@ const typographyVariants = cva("", {
variant: {
h1: "text-[32px] text-white font-medium leading-5",
h2: "text-xl font-medium leading-6 -tracking-[0.02em] text-white",
- h3: "text-sm font-medium text-[var(--oh-text-tertiary)]",
+ h3: "text-sm font-medium text-text-tertiary",
span: "text-sm font-normal text-white leading-5.5",
p: "text-sm font-normal text-white leading-5.5",
codeBlock:
- "font-mono text-sm leading-relaxed text-[var(--oh-text-tertiary)] whitespace-pre-wrap",
+ "font-mono text-sm leading-relaxed text-text-tertiary whitespace-pre-wrap",
},
},
defaultVariants: {
diff --git a/src/utils/dropdown-classes.ts b/src/utils/dropdown-classes.ts
index c449d42f5a..b2500a1d67 100644
--- a/src/utils/dropdown-classes.ts
+++ b/src/utils/dropdown-classes.ts
@@ -18,18 +18,18 @@ export const dropdownMenuListClassName = cn(
/** Combobox/select trigger shell with instant hover colors. */
export const dropdownTriggerShellClassName = cn(
- "bg-tertiary border border-[var(--oh-border-input)] rounded p-2",
+ "bg-tertiary border border-border-input rounded p-2",
"flex items-center gap-2",
formControlShellClassName,
dropdownInstantColorClassName,
- "group w-full gap-2 px-3 text-[var(--oh-muted)] hover:text-white",
+ "group w-full gap-2 px-3 text-muted hover:text-white",
);
/** Standard white-label menu row. */
export const dropdownMenuRowClassName = cn(
"group flex w-full cursor-pointer items-center rounded px-2 py-2 text-left text-sm font-normal text-white",
dropdownMenuRowGapClassName,
- "hover:bg-[var(--oh-interactive-hover)] disabled:cursor-not-allowed disabled:opacity-60",
+ "hover:bg-interactive-hover disabled:cursor-not-allowed disabled:opacity-60",
dropdownInstantColorClassName,
);
@@ -37,14 +37,14 @@ export const dropdownMenuRowClassName = cn(
export const dropdownMenuRowForegroundClassName = cn(
"group flex w-full cursor-pointer items-center rounded px-2 py-2 text-start text-sm font-normal",
dropdownMenuRowGapClassName,
- "text-[var(--oh-foreground)] hover:bg-[var(--oh-interactive-hover)]",
+ "text-foreground hover:bg-interactive-hover",
"disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent",
dropdownInstantColorClassName,
);
/** Icon inside a menu row β€” muted until row hover/focus. */
export const dropdownMenuRowIconClassName = cn(
- "shrink-0 text-[var(--oh-muted)] group-hover:text-white group-focus-visible:text-white",
+ "shrink-0 text-muted group-hover:text-white group-focus-visible:text-white",
dropdownInstantColorClassName,
);
@@ -57,7 +57,7 @@ export const dropdownMenuRowIconWrapperClassName = cn(
/** Enum/filter dropdown trigger chip. */
export const dropdownFilterTriggerClassName = cn(
"inline-flex cursor-pointer items-center gap-1.5 rounded-lg border px-3 py-2 text-sm font-medium",
- "border-[var(--oh-border)] bg-base-secondary text-white",
+ "border-border bg-base-secondary text-white",
"focus-visible:border-white/40 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-white/20",
dropdownInstantColorClassName,
);
@@ -85,6 +85,6 @@ export const dropdownMenuViewportScrollClassName = cn(
export const dropdownFooterActionClassName = cn(
"group flex w-full items-center rounded-md px-2 py-2 text-sm font-normal text-white",
dropdownMenuRowGapClassName,
- "hover:bg-[var(--oh-interactive-hover)]",
+ "hover:bg-interactive-hover",
dropdownInstantColorClassName,
);
diff --git a/src/utils/extension-module-card-classes.ts b/src/utils/extension-module-card-classes.ts
index 19914261c6..7be857b2a0 100644
--- a/src/utils/extension-module-card-classes.ts
+++ b/src/utils/extension-module-card-classes.ts
@@ -26,4 +26,4 @@ export const extensionModuleCardGridClassName =
/** Bordered empty-state panel used on MCP Installed and Automations list pages. */
export const extensionModuleEmptyStateClassName =
- "rounded-xl border border-[var(--oh-border)] p-8 text-center";
+ "rounded-xl border border-border p-8 text-center";
diff --git a/src/utils/form-control-classes.ts b/src/utils/form-control-classes.ts
index 2d3c0da9a2..48e806e177 100644
--- a/src/utils/form-control-classes.ts
+++ b/src/utils/form-control-classes.ts
@@ -5,7 +5,7 @@ export const formControlHeightClassName = "h-9 min-h-9";
export const formControlRadiusClassName = "rounded-lg";
-export const formControlBorderClassName = "border border-[var(--oh-border)]";
+export const formControlBorderClassName = "border border-border";
export const formControlSurfaceClassName = "bg-base-secondary";
@@ -48,14 +48,14 @@ export const formControlMutedHoverClassName =
/** Text/icon pill triggers in the chat input actions row. */
export const chatInputPillButtonClassName = cn(
"inline-flex items-center gap-1 rounded-[100px] border border-transparent px-1.5",
- "text-sm font-normal leading-5 text-[var(--oh-muted)] whitespace-nowrap min-w-0 cursor-pointer",
+ "text-sm font-normal leading-5 text-muted whitespace-nowrap min-w-0 cursor-pointer",
formControlTransitionClassName,
formControlMutedHoverClassName,
);
/** Circular icon triggers in the chat input actions row. */
export const chatInputIconButtonClassName = cn(
- "flex items-center justify-center rounded-full text-[var(--oh-muted)] cursor-pointer",
+ "flex items-center justify-center rounded-full text-muted cursor-pointer",
formControlTransitionClassName,
formControlMutedHoverClassName,
);
@@ -140,7 +140,7 @@ export const formControlFilterTriggerClassName = cn(
/** Muted back navigation control with tertiary hover fill (settings sub-pages, detail views). */
export const formControlBackNavButtonClassName = cn(
"inline-flex items-center gap-2 self-start rounded-lg p-2",
- "text-sm font-normal leading-5 text-[var(--oh-muted)] cursor-pointer",
+ "text-sm font-normal leading-5 text-muted cursor-pointer",
formControlTransitionClassName,
"hover:bg-tertiary hover:text-white",
);
diff --git a/src/utils/git-control-bar-classes.ts b/src/utils/git-control-bar-classes.ts
index be0ff70ee8..c6ad09fd6a 100644
--- a/src/utils/git-control-bar-classes.ts
+++ b/src/utils/git-control-bar-classes.ts
@@ -7,8 +7,8 @@ export function gitControlBarActionButtonClassName(isEnabled: boolean) {
return cn(
gitControlBarActionButtonBaseClassName,
isEnabled
- ? "bg-[var(--oh-surface)] hover:bg-tertiary cursor-pointer text-white"
- : "bg-[var(--oh-surface)] cursor-not-allowed opacity-50 text-[var(--oh-muted)]",
+ ? "bg-surface hover:bg-tertiary cursor-pointer text-white"
+ : "bg-surface cursor-not-allowed opacity-50 text-muted",
);
}
diff --git a/src/utils/mobile-top-bar-icon-button-classes.ts b/src/utils/mobile-top-bar-icon-button-classes.ts
index 92a7054c3c..cbd9c0cb9a 100644
--- a/src/utils/mobile-top-bar-icon-button-classes.ts
+++ b/src/utils/mobile-top-bar-icon-button-classes.ts
@@ -11,7 +11,7 @@ import {
*/
export const mobileTopBarIconButtonClassName = cn(
"inline-flex shrink-0 cursor-pointer items-center justify-center rounded-md p-1",
- "text-[var(--oh-muted)]",
+ "text-muted",
formControlTransitionClassName,
formControlMutedHoverClassName,
);
diff --git a/src/utils/modal-classes.ts b/src/utils/modal-classes.ts
index 837fe851db..5d971b6f4a 100644
--- a/src/utils/modal-classes.ts
+++ b/src/utils/modal-classes.ts
@@ -2,18 +2,14 @@ import { cn } from "#/utils/utils";
/** Primary modal heading on dark overlay surfaces. */
export const modalTitleClassName = cn(
- "text-xl leading-6 -tracking-[0.01em] font-medium text-[var(--oh-modal-title-foreground)]",
+ "text-xl leading-6 -tracking-[0.01em] font-medium text-modal-title",
);
/** Compact modal header bar title (folder browser, manage workspaces). */
-export const modalTitleSmClassName = cn(
- "text-sm font-medium text-[var(--oh-modal-title-foreground)]",
-);
+export const modalTitleSmClassName = cn("text-sm font-medium text-modal-title");
/** Large modal title used by form-style dialogs. */
-export const modalTitleLgClassName = cn(
- "text-lg font-medium text-[var(--oh-modal-title-foreground)]",
-);
+export const modalTitleLgClassName = cn("text-lg font-medium text-modal-title");
/** Alias of {@link modalTitleLgClassName} for historical call sites. */
export const modalTitleLgMediumClassName = modalTitleLgClassName;
diff --git a/src/utils/settings-like-page-layout-classes.ts b/src/utils/settings-like-page-layout-classes.ts
index cfb68f418d..8d54d54ce7 100644
--- a/src/utils/settings-like-page-layout-classes.ts
+++ b/src/utils/settings-like-page-layout-classes.ts
@@ -8,8 +8,8 @@
* scrollbar and the centered content jumps sideways into the freed space.
*/
export const settingsLikeMainScrollClassName =
- "flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden overflow-y-auto [scrollbar-gutter:stable] custom-scrollbar-always px-4 pt-8 pb-12 md:px-0 md:pr-[14px]";
+ "flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden overflow-y-auto [scrollbar-gutter:stable] custom-scrollbar-always px-4 pt-8 pb-12 md:px-0 md:pr-3.5";
/** Same scroll shell as {@link settingsLikeMainScrollClassName} but desktop top padding comes from the outer `md:pt-8` wrapper ({@link SettingsLayout}). */
export const settingsLayoutMainScrollClassName =
- "flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden overflow-y-auto [scrollbar-gutter:stable] custom-scrollbar-always px-4 pt-8 pb-12 md:px-0 md:pt-0 md:pr-[14px]";
+ "flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden overflow-y-auto [scrollbar-gutter:stable] custom-scrollbar-always px-4 pt-8 pb-12 md:px-0 md:pt-0 md:pr-3.5";
diff --git a/src/utils/settings-list-classes.ts b/src/utils/settings-list-classes.ts
index 5fe5ae8ec9..51f7ae35ac 100644
--- a/src/utils/settings-list-classes.ts
+++ b/src/utils/settings-list-classes.ts
@@ -23,12 +23,10 @@ export const settingsListScrollContainerClassName = cn(
"overflow-auto max-h-[min(70vh,39rem)]",
);
-export const settingsListDividerClassName =
- "divide-y divide-[var(--oh-border)]";
+export const settingsListDividerClassName = "divide-y divide-border";
/** Interactive row hover on dark list surfaces (base-secondary). */
-export const settingsListRowHoverClassName =
- "hover:bg-[var(--oh-interactive-hover-low)]";
+export const settingsListRowHoverClassName = "hover:bg-interactive-hover-low";
export const settingsListRowClassName = cn(
settingsListRowHeightClassName,
@@ -40,12 +38,12 @@ export const settingsListRowClassName = cn(
export const settingsListTableRowClassName = cn(
settingsListRowHoverClassName,
formControlTransitionClassName,
- "border-t border-[var(--oh-border)] first:border-t-0",
+ "border-t border-border first:border-t-0",
);
export const settingsListTableHeadClassName = cn(
formControlSurfaceClassName,
- "sticky top-0 z-10 border-b border-[var(--oh-border)]",
+ "sticky top-0 z-10 border-b border-border",
);
export const settingsListTableHeaderCellClassName = cn(
@@ -61,5 +59,5 @@ export const settingsListTableCellClassName = cn(
export const settingsListIconActionButtonClassName = cn(
"inline-flex cursor-pointer items-center justify-center rounded-md p-1 text-muted",
formControlTransitionClassName,
- "hover:bg-[var(--oh-interactive-hover-low)] hover:text-white",
+ "hover:bg-interactive-hover-low hover:text-white",
);
diff --git a/src/utils/table-row-classes.ts b/src/utils/table-row-classes.ts
index 70a5aa968c..c75728b624 100644
--- a/src/utils/table-row-classes.ts
+++ b/src/utils/table-row-classes.ts
@@ -1,13 +1,13 @@
/** Bordered table container on base-secondary surfaces. */
export const tableContainerClassName =
- "overflow-hidden rounded-md border border-[var(--oh-border)] bg-base-secondary";
+ "overflow-hidden rounded-md border border-border bg-base-secondary";
/** Fixed 44px row height for compact data tables (secrets, automations, MCP). */
export const tableRowHeightClassName = "h-11";
export const tableRowClassName = [
tableRowHeightClassName,
- "border-t border-[var(--oh-border)] transition-colors",
+ "border-t border-border transition-colors",
].join(" ");
/** Subtle row highlight on base-secondary tables. */
diff --git a/src/utils/utils.ts b/src/utils/utils.ts
index 4c7a50eea9..e9c0cb2b04 100644
--- a/src/utils/utils.ts
+++ b/src/utils/utils.ts
@@ -559,7 +559,7 @@ export const getStatusClassName = (status: string) => {
if (status === "in_progress") {
return "bg-yellow-800 text-yellow-200";
}
- return "bg-tertiary text-[var(--oh-text-tertiary)]";
+ return "bg-tertiary text-text-tertiary";
};
/**
diff --git a/tailwind.config.js b/tailwind.config.js
index e520b2db9e..295b99220d 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -22,10 +22,6 @@ export default {
button: "#737373",
text: "#A3A3A3",
},
- border: {
- DEFAULT: "#242424",
- hover: "#3a3a3a",
- },
content: {
DEFAULT: "#fafafa",
muted: "#8c8c8c",