From 46fcb5778e944e7f38e986f2dc3bf99d88ae2b78 Mon Sep 17 00:00:00 2001
From: "exe.dev user"
Date: Thu, 19 Nov 2026 18:26:22 +0000
Subject: [PATCH 1/3] Refresh the web UI with shadcn-style StyleX components
Add shared font, radius, and shadow tokens, bundle Inter, and extend the
local shadcn set with Button variants and sizes, Card, Input, and Badge.
Apply them to the sidebar, agent header tabs, home, composer, tool
activity, settings, feed, and jobs filters. Before/after screenshots
are in docs/visual-refresh-evidence.
Co-Authored-By: Claude Opus 5.5 (1M context)
---
THIRD_PARTY_NOTICES.md | 2 +
apps/web/package.json | 1 +
apps/web/src/app.tsx | 6 +-
apps/web/src/components/agent-header.tsx | 44 ++++---
.../src/components/agent-section-controls.tsx | 5 +-
apps/web/src/components/computer-panel.tsx | 5 +-
.../src/components/conversation/composer.tsx | 19 +--
.../components/conversation/image-preview.tsx | 4 +-
.../conversation/message-reactions.tsx | 4 +-
.../components/conversation/tool-activity.tsx | 28 ++---
.../components/mobile-navigation-dialog.tsx | 4 +-
apps/web/src/components/sidebar.tsx | 57 ++++++---
apps/web/src/components/theme-setting.tsx | 68 ++++++----
apps/web/src/components/ui/badge.tsx | 50 ++++++++
apps/web/src/components/ui/button.tsx | 116 +++++++++++++++---
apps/web/src/components/ui/card.tsx | 88 +++++++++++++
apps/web/src/components/ui/input.tsx | 46 +++++++
apps/web/src/components/ui/inspector.tsx | 4 +-
apps/web/src/components/ui/sheet.tsx | 5 +-
apps/web/src/features/agents/styles.ts | 41 +++++--
apps/web/src/features/settings/themes.ts | 2 +-
apps/web/src/routes/__root.tsx | 2 +
apps/web/src/routes/feed.tsx | 2 +
apps/web/src/routes/index.tsx | 71 +++++++----
apps/web/src/routes/settings.tsx | 82 ++++++++-----
apps/web/src/styles/feed.stylex.ts | 26 ++--
apps/web/src/styles/jobs.stylex.ts | 14 ++-
apps/web/src/styles/tokens.stylex.ts | 25 +++-
docs/development.md | 8 ++
docs/visual-refresh-evidence/chat-dark.png | Bin 0 -> 168588 bytes
docs/visual-refresh-evidence/chat-mobile.png | Bin 0 -> 193780 bytes
docs/visual-refresh-evidence/chat.png | Bin 0 -> 148578 bytes
docs/visual-refresh-evidence/dashboard.png | Bin 0 -> 129296 bytes
docs/visual-refresh-evidence/feed.png | Bin 0 -> 251555 bytes
docs/visual-refresh-evidence/home.png | Bin 0 -> 46970 bytes
docs/visual-refresh-evidence/new.png | Bin 0 -> 78513 bytes
.../settings-mobile.png | Bin 0 -> 96963 bytes
docs/visual-refresh-evidence/settings.png | Bin 0 -> 89153 bytes
pnpm-lock.yaml | 8 ++
39 files changed, 635 insertions(+), 202 deletions(-)
create mode 100644 apps/web/src/components/ui/badge.tsx
create mode 100644 apps/web/src/components/ui/card.tsx
create mode 100644 apps/web/src/components/ui/input.tsx
create mode 100644 docs/visual-refresh-evidence/chat-dark.png
create mode 100644 docs/visual-refresh-evidence/chat-mobile.png
create mode 100644 docs/visual-refresh-evidence/chat.png
create mode 100644 docs/visual-refresh-evidence/dashboard.png
create mode 100644 docs/visual-refresh-evidence/feed.png
create mode 100644 docs/visual-refresh-evidence/home.png
create mode 100644 docs/visual-refresh-evidence/new.png
create mode 100644 docs/visual-refresh-evidence/settings-mobile.png
create mode 100644 docs/visual-refresh-evidence/settings.png
diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md
index 4aa97a0..6708b54 100644
--- a/THIRD_PARTY_NOTICES.md
+++ b/THIRD_PARTY_NOTICES.md
@@ -4,6 +4,8 @@
Its Tailwind styles have been replaced with StyleX, and unused variants removed.
`src/components/ui/scroll-area.tsx` and `collapsible.tsx` follow shadcn/ui’s
Base UI component composition, with locally owned StyleX styling.
+`src/components/ui/card.tsx`, `input.tsx`, and `badge.tsx` are adapted from
+shadcn/ui's Card, Base UI Input, and Badge, with StyleX in place of Tailwind.
Source: https://ui.shadcn.com/r/styles/base-nova/button.json
diff --git a/apps/web/package.json b/apps/web/package.json
index fa4097f..aa6246c 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -25,6 +25,7 @@
"@fluentui/react-charts": "9.3.25",
"@fluentui/react-provider": "9.22.20",
"@fluentui/react-theme": "9.2.2",
+ "@fontsource-variable/inter": "5.3.0",
"@novnc/novnc": "1.5.0",
"@simplewebauthn/server": "13.3.2",
"@stripe/link-sdk": "0.6.0",
diff --git a/apps/web/src/app.tsx b/apps/web/src/app.tsx
index 9f56126..e9af469 100644
--- a/apps/web/src/app.tsx
+++ b/apps/web/src/app.tsx
@@ -20,7 +20,7 @@ import {
} from "./features/settings/sidebar-preferences";
import { Route } from "./routes/__root";
import { motion } from "./styles/motion.stylex";
-import { colors } from "./styles/tokens.stylex";
+import { colors, fonts } from "./styles/tokens.stylex";
export function App() {
const agents = Route.useLoaderData();
@@ -270,8 +270,8 @@ const styles = stylex.create({
flexDirection: { default: "row", "@media (max-width: 700px)": "column" },
backgroundColor: colors.background,
color: colors.foreground,
- fontFamily:
- "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
+ fontFamily: fonts.sans,
+ fontFeatureSettings: "'cv11', 'ss01'",
fontSize: 13,
lineHeight: 1.5,
WebkitFontSmoothing: "antialiased",
diff --git a/apps/web/src/components/agent-header.tsx b/apps/web/src/components/agent-header.tsx
index 7d7b510..30c7e39 100644
--- a/apps/web/src/components/agent-header.tsx
+++ b/apps/web/src/components/agent-header.tsx
@@ -4,7 +4,7 @@ import type { ReactNode } from "react";
import type { Agent } from "../features/agents/schema";
import { useDashboardsEnabled } from "../features/dashboards/preference";
import { motion } from "../styles/motion.stylex";
-import { colors } from "../styles/tokens.stylex";
+import { colors, radii, shadows } from "../styles/tokens.stylex";
import { AgentSettings } from "./agent-settings";
import { MobileNavigation } from "./mobile-navigation";
import { Avatar } from "./ui/primitives";
@@ -90,12 +90,14 @@ const styles = stylex.create({
"@media (max-width: 700px)": "minmax(0, 1fr) auto",
},
alignItems: "center",
- columnGap: { default: 28, "@media (max-width: 700px)": 8 },
+ columnGap: { default: 24, "@media (max-width: 700px)": 8 },
+ rowGap: { default: 0, "@media (max-width: 700px)": 6 },
paddingTop: {
default: 0,
"@media (max-width: 700px)": "env(safe-area-inset-top)",
},
paddingInline: { default: 0, "@media (max-width: 700px)": 8 },
+ paddingBottom: { default: 10, "@media (max-width: 700px)": 8 },
flexShrink: 0,
borderBottomWidth: 1,
borderBottomStyle: "solid",
@@ -113,7 +115,8 @@ const styles = stylex.create({
margin: 0,
minWidth: 0,
fontSize: 16,
- fontWeight: 500,
+ fontWeight: 600,
+ letterSpacing: "-0.01em",
overflow: "hidden",
textOverflow: "ellipsis",
whiteSpace: "nowrap",
@@ -131,25 +134,36 @@ const styles = stylex.create({
gridColumn: { default: "2", "@media (max-width: 700px)": "1 / -1" },
gridRow: { default: "1", "@media (max-width: 700px)": "2" },
display: "flex",
- alignSelf: "stretch",
- gap: 20,
- paddingInline: { default: 0, "@media (max-width: 700px)": 8 },
+ alignSelf: "center",
+ justifySelf: "start",
+ gap: 2,
+ padding: 3,
+ borderRadius: radii.md,
+ backgroundColor: colors.bubble,
+ marginInline: { default: 0, "@media (max-width: 700px)": 4 },
},
tab: {
display: "inline-flex",
alignItems: "center",
- minHeight: { default: 44, "@media (max-width: 700px)": 36 },
+ justifyContent: "center",
+ minHeight: { default: 26, "@media (max-width: 700px)": 32 },
+ paddingInline: 12,
+ borderRadius: radii.sm,
fontSize: 12,
- color: colors.foreground,
+ fontWeight: 500,
+ color: {
+ default: colors.muted,
+ "@media (hover: hover)": { ":hover": colors.foreground },
+ },
textDecoration: "none",
- borderBottomWidth: 2,
- borderBottomStyle: "solid",
- borderBottomColor: "transparent",
- marginBottom: -1,
- outlineOffset: -2,
- transitionProperty: "color, border-color",
+ outlineOffset: 1,
+ transitionProperty: "color, background-color, box-shadow",
transitionDuration: motion.fast,
transitionTimingFunction: motion.easeOut,
},
- active: { color: colors.foreground, borderBottomColor: colors.foreground },
+ active: {
+ color: colors.foreground,
+ backgroundColor: colors.background,
+ boxShadow: shadows.sm,
+ },
});
diff --git a/apps/web/src/components/agent-section-controls.tsx b/apps/web/src/components/agent-section-controls.tsx
index c67f112..452b623 100644
--- a/apps/web/src/components/agent-section-controls.tsx
+++ b/apps/web/src/components/agent-section-controls.tsx
@@ -12,7 +12,7 @@ import {
import type { Agent } from "../features/agents/schema";
import { useOpenAfterMount } from "../features/motion";
import { motion } from "../styles/motion.stylex";
-import { colors } from "../styles/tokens.stylex";
+import { colors, fonts } from "../styles/tokens.stylex";
import { DisplayNameEditor, nameEditorStyles } from "./display-name-editor";
import { Button } from "./ui/button";
import { Avatar, Icon } from "./ui/primitives";
@@ -520,8 +520,7 @@ const styles = stylex.create({
borderStyle: "solid",
borderColor: colors.border,
boxShadow: "0 16px 64px #00000030",
- fontFamily:
- "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
+ fontFamily: fonts.sans,
fontSize: 13,
lineHeight: 1.5,
opacity: {
diff --git a/apps/web/src/components/computer-panel.tsx b/apps/web/src/components/computer-panel.tsx
index b0e4b14..a3c865e 100644
--- a/apps/web/src/components/computer-panel.tsx
+++ b/apps/web/src/components/computer-panel.tsx
@@ -3,7 +3,7 @@ import type RFB from "@novnc/novnc/lib/rfb.js";
import * as stylex from "@stylexjs/stylex";
import { useCallback, useEffect, useRef, useState } from "react";
import { controlComputer, openComputer } from "../features/computer/functions";
-import { colors } from "../styles/tokens.stylex";
+import { colors, fonts } from "../styles/tokens.stylex";
import { ComputerInput } from "./computer-input";
import { Button } from "./ui/button";
import { Icon } from "./ui/primitives";
@@ -326,8 +326,7 @@ const styles = stylex.create({
overflow: "hidden",
backgroundColor: "#080a08",
color: "#eceee8",
- fontFamily:
- "Inter, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif",
+ fontFamily: fonts.sans,
fontSize: 13,
lineHeight: 1.5,
paddingTop: "env(safe-area-inset-top)",
diff --git a/apps/web/src/components/conversation/composer.tsx b/apps/web/src/components/conversation/composer.tsx
index 20a3917..41a7698 100644
--- a/apps/web/src/components/conversation/composer.tsx
+++ b/apps/web/src/components/conversation/composer.tsx
@@ -16,7 +16,7 @@ import {
} from "../../features/chat/files";
import { usePreferences } from "../../features/settings/preferences";
import { motion } from "../../styles/motion.stylex";
-import { colors } from "../../styles/tokens.stylex";
+import { colors, radii, shadows } from "../../styles/tokens.stylex";
import { Appear } from "../ui/appear";
import { Button } from "../ui/button";
import { Icon } from "../ui/primitives";
@@ -513,12 +513,16 @@ const styles = stylex.create({
gap: { default: 10, "@media (max-width: 700px)": 6 },
borderWidth: 1,
borderStyle: "solid",
- borderColor: { default: colors.border, ":focus-within": colors.accent },
- borderRadius: 14,
+ borderColor: {
+ default: colors.border,
+ ":focus-within": `color-mix(in srgb, ${colors.accent} 55%, ${colors.border})`,
+ },
+ borderRadius: { default: radii.xl, "@media (max-width: 700px)": 22 },
+ backgroundColor: colors.surface,
padding: { default: 10, "@media (max-width: 700px)": 4 },
boxShadow: {
- default: "0 2px 8px #00000003",
- ":focus-within": `0 2px 12px #00000006, 0 0 0 3px color-mix(in srgb, ${colors.accent} 14%, transparent)`,
+ default: shadows.md,
+ ":focus-within": `${shadows.md}, ${shadows.ring}`,
},
transitionProperty: "border-color, box-shadow",
transitionDuration: motion.base,
@@ -546,7 +550,7 @@ const styles = stylex.create({
outline: "none",
paddingInline: 3,
paddingBlock: { default: 5, "@media (max-width: 700px)": 10 },
- fontSize: { default: 12, "@media (max-width: 700px)": 16 },
+ fontSize: { default: 13, "@media (max-width: 700px)": 16 },
lineHeight: 1.5,
"::placeholder": { color: colors.muted },
},
@@ -564,8 +568,9 @@ const styles = stylex.create({
borderColor: "transparent",
backgroundClip: "padding-box",
borderRadius: "50%",
- backgroundColor: colors.action,
+ backgroundColor: colors.accent,
color: colors.onAccent,
+ boxShadow: shadows.xs,
// The button lights up as soon as there is something to send.
opacity: { default: 1, ":disabled": 0.35 },
},
diff --git a/apps/web/src/components/conversation/image-preview.tsx b/apps/web/src/components/conversation/image-preview.tsx
index 4d33544..0692841 100644
--- a/apps/web/src/components/conversation/image-preview.tsx
+++ b/apps/web/src/components/conversation/image-preview.tsx
@@ -5,7 +5,7 @@ import {
type FileAttachment,
safeAttachmentUrl,
} from "../../features/chat/files";
-import { colors } from "../../styles/tokens.stylex";
+import { colors, fonts } from "../../styles/tokens.stylex";
import { Button } from "../ui/button";
import { Icon } from "../ui/primitives";
@@ -147,7 +147,7 @@ const styles = stylex.create({
backgroundColor: colors.background,
color: colors.foreground,
borderRadius: 12,
- fontFamily: "Inter, -apple-system, BlinkMacSystemFont, sans-serif",
+ fontFamily: fonts.sans,
},
heading: { display: "flex", alignItems: "center", gap: 12 },
title: {
diff --git a/apps/web/src/components/conversation/message-reactions.tsx b/apps/web/src/components/conversation/message-reactions.tsx
index 2b1f6fe..c30ffdf 100644
--- a/apps/web/src/components/conversation/message-reactions.tsx
+++ b/apps/web/src/components/conversation/message-reactions.tsx
@@ -6,7 +6,7 @@ import {
REACTION_EMOJIS,
} from "../../features/chat/reactions";
import type { Message } from "../../features/chat/schema";
-import { colors } from "../../styles/tokens.stylex";
+import { colors, fonts } from "../../styles/tokens.stylex";
import { Button } from "../ui/button";
const names: Record = {
@@ -274,7 +274,7 @@ const styles = stylex.create({
},
positioner: { zIndex: 50 },
popup: {
- fontFamily: "Inter, -apple-system, BlinkMacSystemFont, sans-serif",
+ fontFamily: fonts.sans,
fontSize: 13,
lineHeight: 1.6,
width: 284,
diff --git a/apps/web/src/components/conversation/tool-activity.tsx b/apps/web/src/components/conversation/tool-activity.tsx
index 9bebc6f..bac5ab3 100644
--- a/apps/web/src/components/conversation/tool-activity.tsx
+++ b/apps/web/src/components/conversation/tool-activity.tsx
@@ -4,7 +4,8 @@ import { getActivityOutput } from "../../features/chat/functions";
import type { Message } from "../../features/chat/schema";
import { usePreferences } from "../../features/settings/preferences";
import { motion } from "../../styles/motion.stylex";
-import { colors } from "../../styles/tokens.stylex";
+import { colors, radii } from "../../styles/tokens.stylex";
+import { Badge } from "../ui/badge";
import { Button } from "../ui/button";
import {
Collapsible,
@@ -49,9 +50,17 @@ export const ToolActivity = memo(function ToolActivity({
{label}
-
+
{status}
-
+
{showActivityDetails && (
@@ -166,7 +175,7 @@ const styles = stylex.create({
paddingBlock: 5,
paddingInline: 7,
borderWidth: 0,
- borderRadius: 5,
+ borderRadius: radii.sm,
backgroundColor: {
default: "transparent",
"@media (hover: hover)": {
@@ -188,17 +197,6 @@ const styles = stylex.create({
whiteSpace: "nowrap",
color: colors.foreground,
},
- badge: {
- fontSize: 10,
- paddingBlock: 0,
- paddingInline: 5,
- borderRadius: 4,
- backgroundColor: colors.bubble,
- color: colors.muted,
- transitionProperty: "background-color, color",
- transitionDuration: motion.base,
- },
- running: { color: colors.accent, backgroundColor: colors.selected },
chevron: {
display: "inline-flex",
transform: "rotate(0deg)",
diff --git a/apps/web/src/components/mobile-navigation-dialog.tsx b/apps/web/src/components/mobile-navigation-dialog.tsx
index 4727337..5957666 100644
--- a/apps/web/src/components/mobile-navigation-dialog.tsx
+++ b/apps/web/src/components/mobile-navigation-dialog.tsx
@@ -5,7 +5,7 @@ import { useOpenAfterMount } from "../features/motion";
import { listenForNavigationSwipe } from "../features/navigation-swipe";
import { Route } from "../routes/__root";
import { motion } from "../styles/motion.stylex";
-import { colors } from "../styles/tokens.stylex";
+import { colors, fonts } from "../styles/tokens.stylex";
import { Sidebar } from "./sidebar";
export function MobileNavigationDialog({
@@ -79,7 +79,7 @@ const styles = stylex.create({
color: colors.foreground,
overflowY: "auto",
overscrollBehavior: "contain",
- fontFamily: "Inter, -apple-system, BlinkMacSystemFont, sans-serif",
+ fontFamily: fonts.sans,
fontSize: 14,
transform: {
default: "translateX(0)",
diff --git a/apps/web/src/components/sidebar.tsx b/apps/web/src/components/sidebar.tsx
index 1b795b7..3938778 100644
--- a/apps/web/src/components/sidebar.tsx
+++ b/apps/web/src/components/sidebar.tsx
@@ -10,7 +10,7 @@ import {
import type { Agent } from "../features/agents/schema";
import { Route } from "../routes/__root";
import { motion } from "../styles/motion.stylex";
-import { colors } from "../styles/tokens.stylex";
+import { colors, radii, shadows } from "../styles/tokens.stylex";
import { AgentSectionControls } from "./agent-section-controls";
import { AgentWorking } from "./agent-working";
import { Button } from "./ui/button";
@@ -358,7 +358,9 @@ export function Sidebar({
onClick={onNavigate}
to="/settings"
{...stylex.props(styles.row, styles.create)}
+ activeProps={stylex.props(styles.row, styles.create, styles.active)}
>
+
Settings
@@ -367,9 +369,9 @@ export function Sidebar({
}
const styles = stylex.create({
- primaryNavigation: { flexShrink: 0, marginBottom: 24 },
+ primaryNavigation: { flexShrink: 0, marginBottom: 20 },
group: {
- borderRadius: 6,
+ borderRadius: radii.md,
transitionProperty: "background-color",
transitionDuration: motion.fast,
transitionTimingFunction: motion.easeOut,
@@ -410,7 +412,8 @@ const styles = stylex.create({
textAlign: "left",
justifyContent: "flex-start",
fontSize: 12,
- paddingInline: 6,
+ fontWeight: 500,
+ paddingInline: 8,
transform: "none",
},
manage: { padding: 6 },
@@ -425,7 +428,8 @@ const styles = stylex.create({
ungrouped: { marginTop: 12 },
ungroupedHeading: {
fontSize: 11,
- color: colors.muted,
+ fontWeight: 500,
+ color: colors.faint,
paddingInline: 8,
paddingBottom: 4,
},
@@ -437,8 +441,8 @@ const styles = stylex.create({
minHeight: 0,
overflow: "hidden",
backgroundColor: colors.sidebar,
- paddingBlock: 20,
- paddingInline: 12,
+ paddingBlock: 16,
+ paddingInline: 10,
borderRightWidth: 1,
borderRightStyle: "solid",
borderRightColor: colors.border,
@@ -456,15 +460,16 @@ const styles = stylex.create({
display: "flex",
alignItems: "center",
justifyContent: "space-between",
- marginBottom: { default: 30, "@media (max-width: 700px)": 20 },
+ paddingInline: 8,
+ marginBottom: { default: 24, "@media (max-width: 700px)": 20 },
},
brand: {
display: "flex",
alignItems: "center",
gap: 7,
- fontSize: 22,
- fontWeight: 600,
- letterSpacing: "-0.7px",
+ fontSize: 20,
+ fontWeight: 650,
+ letterSpacing: "-0.04em",
textDecoration: "none",
color: colors.foreground,
},
@@ -475,12 +480,15 @@ const styles = stylex.create({
flexShrink: 0,
color: colors.muted,
fontSize: 11,
- marginBottom: 8,
+ fontWeight: 500,
+ letterSpacing: "0.02em",
+ paddingLeft: 8,
+ marginBottom: 6,
},
list: {
display: "flex",
flexDirection: "column",
- gap: 4,
+ gap: 2,
minHeight: 0,
overflowY: "auto",
overscrollBehavior: "contain",
@@ -489,19 +497,21 @@ const styles = stylex.create({
row: {
display: "flex",
alignItems: "center",
- gap: 8,
- paddingBlock: { default: 6, "@media (max-width: 700px)": 10 },
+ gap: 10,
+ minHeight: { default: 34, "@media (max-width: 700px)": 44 },
+ paddingBlock: 5,
paddingInline: 8,
- borderRadius: 6,
+ borderRadius: radii.md,
textDecoration: "none",
+ fontWeight: 450,
color: colors.foreground,
backgroundColor: {
default: "transparent",
"@media (hover: hover)": {
- ":hover": `color-mix(in srgb, ${colors.selected} 55%, transparent)`,
+ ":hover": `color-mix(in srgb, ${colors.foreground} 5%, transparent)`,
},
},
- transitionProperty: "background-color, color",
+ transitionProperty: "background-color, color, box-shadow",
transitionDuration: motion.fast,
transitionTimingFunction: motion.easeOut,
},
@@ -512,7 +522,14 @@ const styles = stylex.create({
textOverflow: "ellipsis",
whiteSpace: "nowrap",
},
- active: { backgroundColor: colors.selected },
+ active: {
+ backgroundColor: {
+ default: colors.background,
+ "@media (hover: hover)": { ":hover": colors.background },
+ },
+ boxShadow: `${shadows.sm}, 0 0 0 1px color-mix(in srgb, ${colors.foreground} 4%, transparent)`,
+ fontWeight: 500,
+ },
create: {
color: {
default: colors.muted,
@@ -523,7 +540,7 @@ const styles = stylex.create({
footer: {
flexShrink: 0,
marginTop: "auto",
- paddingTop: 32,
+ paddingTop: 16,
fontSize: 11,
color: colors.muted,
display: "block",
diff --git a/apps/web/src/components/theme-setting.tsx b/apps/web/src/components/theme-setting.tsx
index 7fe15b6..fd5eb7f 100644
--- a/apps/web/src/components/theme-setting.tsx
+++ b/apps/web/src/components/theme-setting.tsx
@@ -11,7 +11,8 @@ import {
themeNames,
themePalettes,
} from "../features/settings/themes";
-import { colors } from "../styles/tokens.stylex";
+import { motion } from "../styles/motion.stylex";
+import { colors, radii, shadows } from "../styles/tokens.stylex";
import { Button } from "./ui/button";
const descriptions: Record = {
@@ -97,7 +98,7 @@ export function ThemeSetting() {
value={mode}
{...stylex.props(
styles.mode,
- current.mode === mode && styles.selected,
+ current.mode === mode && styles.selectedMode,
)}
>
{mode === "system" ? "System" : mode === "light" ? "Light" : "Dark"}
@@ -109,8 +110,9 @@ export function ThemeSetting() {
@@ -355,18 +357,9 @@ const styles = stylex.create({
},
searchRow: { display: "flex", gap: 8, alignItems: "center" },
searchInput: {
- width: "100%",
minWidth: 0,
- minHeight: 44,
- paddingInline: 12,
- borderWidth: 1,
- borderStyle: "solid",
- borderColor: colors.border,
- borderRadius: 8,
- backgroundColor: colors.surface,
- color: colors.foreground,
- fontSize: 16,
- outlineOffset: 3,
+ minHeight: 40,
+ fontSize: { default: 14, "@media (max-width: 700px)": 16 },
},
layout: {
display: "grid",
@@ -386,16 +379,25 @@ const styles = stylex.create({
groupLink: {
display: "flex",
alignItems: "center",
- minHeight: 44,
+ minHeight: { default: 36, "@media (max-width: 700px)": 44 },
paddingInline: 12,
- borderRadius: 8,
+ borderRadius: radii.md,
fontSize: 13,
- color: colors.foreground,
+ color: { default: colors.muted, ":hover": colors.foreground },
textDecoration: "none",
- outlineOffset: 3,
- backgroundColor: { default: "transparent", ":hover": colors.bubble },
+ outlineOffset: 2,
+ backgroundColor: {
+ default: "transparent",
+ ":hover": `color-mix(in srgb, ${colors.foreground} 5%, transparent)`,
+ },
+ transitionProperty: "background-color, color",
+ transitionDuration: motion.fast,
+ },
+ activeGroup: {
+ color: colors.foreground,
+ backgroundColor: { default: colors.bubble, ":hover": colors.bubble },
+ fontWeight: 500,
},
- activeGroup: { backgroundColor: colors.selected, fontWeight: 500 },
content: { minWidth: 0 },
results: { margin: 0, fontSize: 13, color: colors.muted, lineHeight: 1.6 },
groupCaption: {
@@ -415,7 +417,13 @@ const styles = stylex.create({
lineHeight: 1.6,
color: colors.muted,
},
- title: { marginTop: 0, fontSize: 26, fontWeight: 500, marginBottom: 8 },
+ title: {
+ marginTop: 0,
+ fontSize: 28,
+ fontWeight: 600,
+ letterSpacing: "-0.03em",
+ marginBottom: 6,
+ },
muted: { color: colors.muted },
responseSetting: { marginTop: 32 },
responseLabel: { fontSize: 14, fontWeight: 500, margin: 0, marginBottom: 12 },
@@ -423,15 +431,16 @@ const styles = stylex.create({
display: "flex",
gap: 4,
width: "fit-content",
- padding: 4,
- borderRadius: 8,
+ padding: 3,
+ borderRadius: radii.md,
backgroundColor: colors.bubble,
},
styleOption: {
- paddingBlock: 7,
- paddingInline: 20,
- borderRadius: 5,
+ paddingBlock: 6,
+ paddingInline: 18,
+ borderRadius: radii.sm,
fontSize: 12,
+ fontWeight: 500,
cursor: "pointer",
color: colors.muted,
outlineOffset: 3,
@@ -439,6 +448,7 @@ const styles = stylex.create({
selectedOption: {
backgroundColor: colors.background,
color: colors.foreground,
+ boxShadow: shadows.sm,
},
setting: {
display: "flex",
@@ -468,7 +478,9 @@ const styles = stylex.create({
borderWidth: 1,
borderStyle: "solid",
borderColor: colors.border,
- borderRadius: 10,
+ borderRadius: radii.lg,
+ backgroundColor: colors.surface,
+ boxShadow: shadows.xs,
},
previewTitle: { fontSize: 12, fontWeight: 500, margin: 0 },
previewDescription: {
@@ -485,11 +497,13 @@ const styles = stylex.create({
},
switch: {
width: 36,
- height: 22,
+ height: 20,
borderWidth: 0,
- borderRadius: 20,
- padding: 3,
- backgroundColor: colors.bubble,
+ borderRadius: radii.full,
+ padding: 2,
+ backgroundColor: `color-mix(in srgb, ${colors.foreground} 16%, transparent)`,
+ transitionProperty: "background-color",
+ transitionDuration: motion.fast,
cursor: "pointer",
flexShrink: 0,
display: "flex",
@@ -500,11 +514,15 @@ const styles = stylex.create({
width: 16,
height: 16,
borderRadius: "50%",
- backgroundColor: colors.foreground,
+ backgroundColor: colors.background,
+ boxShadow: shadows.sm,
transform: "translateX(0)",
+ transitionProperty: "transform",
+ transitionDuration: motion.fast,
+ transitionTimingFunction: motion.easeOut,
},
thumbChecked: {
- transform: "translateX(14px)",
+ transform: "translateX(16px)",
backgroundColor: colors.onAccent,
},
});
diff --git a/apps/web/src/styles/feed.stylex.ts b/apps/web/src/styles/feed.stylex.ts
index 7736122..539eb9a 100644
--- a/apps/web/src/styles/feed.stylex.ts
+++ b/apps/web/src/styles/feed.stylex.ts
@@ -1,6 +1,6 @@
import * as stylex from "@stylexjs/stylex";
import { motion } from "./motion.stylex";
-import { colors } from "./tokens.stylex";
+import { colors, fonts, radii, shadows } from "./tokens.stylex";
const arrive = stylex.keyframes({
from: { opacity: 0, transform: "translateY(6px)" },
@@ -34,7 +34,7 @@ export const feedStyles = stylex.create({
marginTop: 8,
marginBottom: 0,
},
- headerActions: { display: "flex", alignItems: "center", gap: 5 },
+ headerActions: { display: "flex", alignItems: "center", gap: 6 },
buttonLabel: {
display: { default: "inline", "@media (max-width: 500px)": "none" },
},
@@ -51,17 +51,24 @@ export const feedStyles = stylex.create({
},
filters: {
display: "flex",
- gap: 4,
+ gap: 2,
borderWidth: 0,
- padding: 0,
+ padding: 3,
margin: 0,
minWidth: 0,
+ borderRadius: radii.md,
+ backgroundColor: colors.bubble,
+ },
+ filter: {
+ paddingInline: 14,
+ borderRadius: radii.sm,
+ minHeight: { default: 26, "@media (max-width: 700px)": 36 },
+ fontWeight: 500,
},
- filter: { paddingInline: 12, borderRadius: 6, minHeight: 32 },
selectedFilter: {
color: colors.foreground,
- backgroundColor: colors.selected,
- fontWeight: 500,
+ backgroundColor: colors.background,
+ boxShadow: shadows.sm,
},
status: { fontSize: 11, color: colors.muted, margin: 0 },
statusAction: {
@@ -141,7 +148,7 @@ export const feedStyles = stylex.create({
padding: 0,
borderWidth: 0,
overflow: "hidden",
- borderRadius: 4,
+ borderRadius: radii.lg,
cursor: "pointer",
backgroundColor: colors.surface,
outlineOffset: 4,
@@ -279,8 +286,7 @@ export const feedStyles = stylex.create({
borderRadius: { default: 10, "@media (max-width: 700px)": 0 },
backgroundColor: colors.background,
color: colors.foreground,
- fontFamily:
- "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
+ fontFamily: fonts.sans,
fontSize: 13,
lineHeight: 1.5,
boxShadow: "0 12px 70px #00000030",
diff --git a/apps/web/src/styles/jobs.stylex.ts b/apps/web/src/styles/jobs.stylex.ts
index 1aa5ff3..d348099 100644
--- a/apps/web/src/styles/jobs.stylex.ts
+++ b/apps/web/src/styles/jobs.stylex.ts
@@ -1,6 +1,6 @@
import * as stylex from "@stylexjs/stylex";
import { motion } from "./motion.stylex";
-import { colors } from "./tokens.stylex";
+import { colors, radii, shadows } from "./tokens.stylex";
export const jobsStyles = stylex.create({
desktopOnly: {
@@ -194,10 +194,18 @@ export const jobsStyles = stylex.create({
},
filters: {
display: "flex",
- gap: { default: 8, "@media(max-width:700px)": 4 },
+ gap: 2,
flexWrap: "wrap",
+ padding: 3,
+ borderRadius: radii.md,
+ backgroundColor: colors.bubble,
+ },
+ selected: {
+ backgroundColor: colors.background,
+ color: colors.foreground,
+ fontWeight: 500,
+ boxShadow: shadows.sm,
},
- selected: { backgroundColor: colors.selected, color: colors.foreground },
title: {
fontSize: 18,
fontWeight: 500,
diff --git a/apps/web/src/styles/tokens.stylex.ts b/apps/web/src/styles/tokens.stylex.ts
index e0a8404..1069adf 100644
--- a/apps/web/src/styles/tokens.stylex.ts
+++ b/apps/web/src/styles/tokens.stylex.ts
@@ -6,7 +6,7 @@ export const colors = stylex.defineVars({
"@media (prefers-color-scheme: dark)": "var(--roost-background, #20221E)",
},
sidebar: {
- default: "var(--roost-sidebar, #F2F2E9)",
+ default: "var(--roost-sidebar, #F6F6F1)",
"@media (prefers-color-scheme: dark)": "var(--roost-sidebar, #25281F)",
},
surface: {
@@ -54,3 +54,26 @@ export const colors = stylex.defineVars({
"@media (prefers-color-scheme: dark)": "var(--roost-review, #C8B080)",
},
});
+
+/* Type, shape, and depth shared by the shadcn-derived components in
+ components/ui. Shadows mix the foreground colour so they read in every
+ theme without per-palette values. */
+export const fonts = stylex.defineVars({
+ sans: "'Inter Variable', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
+ mono: "ui-monospace, 'SF Mono', Menlo, Consolas, monospace",
+});
+
+export const radii = stylex.defineVars({
+ sm: "6px",
+ md: "8px",
+ lg: "12px",
+ xl: "16px",
+ full: "9999px",
+});
+
+export const shadows = stylex.defineVars({
+ xs: `0 1px 2px color-mix(in srgb, ${colors.foreground} 6%, transparent)`,
+ sm: `0 1px 2px color-mix(in srgb, ${colors.foreground} 5%, transparent), 0 1px 3px color-mix(in srgb, ${colors.foreground} 6%, transparent)`,
+ md: `0 2px 4px color-mix(in srgb, ${colors.foreground} 4%, transparent), 0 6px 16px color-mix(in srgb, ${colors.foreground} 7%, transparent)`,
+ ring: `0 0 0 3px color-mix(in srgb, ${colors.accent} 22%, transparent)`,
+});
diff --git a/docs/development.md b/docs/development.md
index 7caae22..87ec879 100644
--- a/docs/development.md
+++ b/docs/development.md
@@ -104,6 +104,14 @@ and styled with StyleX. New components are locally owned source: adapt shadcn's
Base UI components and translate their styles to StyleX. Stock `shadcn add` is
not configured because it assumes Tailwind.
+The local shadcn set lives in `apps/web/src/components/ui`: Button (`ghost`,
+`default`, `secondary`, `outline`, and `destructive` variants; `sm`, `default`,
+`lg`, and `icon` sizes), Card, Input, Badge, Scroll Area, Collapsible, and Sheet.
+They read the shared tokens in `apps/web/src/styles/tokens.stylex.ts`: palette
+`colors`, `fonts`, `radii`, and `shadows`. Shadows mix the active foreground
+colour, so they work in every theme. Inter is bundled through
+`@fontsource-variable/inter` and loaded by the root route.
+
The StyleX Vite plugin runs before React and compiles styles for the client and
server builds. The root route links the emitted stylesheet so the server-rendered
page is styled before hydration.
diff --git a/docs/visual-refresh-evidence/chat-dark.png b/docs/visual-refresh-evidence/chat-dark.png
new file mode 100644
index 0000000000000000000000000000000000000000..793bd40b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