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/ios/Roost/Resources/Themes.json b/apps/ios/Roost/Resources/Themes.json
index 72be521..de2d795 100644
--- a/apps/ios/Roost/Resources/Themes.json
+++ b/apps/ios/Roost/Resources/Themes.json
@@ -2,7 +2,7 @@
"default": {
"light": {
"background": "#FFFFFF",
- "sidebar": "#F2F2E9",
+ "sidebar": "#F6F6F1",
"surface": "#FCFCFA",
"selected": "#E8EBDD",
"bubble": "#F3F3EF",
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 7eccfc4..1988382 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();
@@ -292,8 +292,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/pnpm-lock.yaml b/pnpm-lock.yaml
index 01ab772..372b073 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -87,6 +87,9 @@ importers:
'@fluentui/react-theme':
specifier: 9.2.2
version: 9.2.2
+ '@fontsource-variable/inter':
+ specifier: 5.3.0
+ version: 5.3.0
'@novnc/novnc':
specifier: 1.5.0
version: 1.5.0
@@ -825,6 +828,9 @@ packages:
'@fluentui/tokens@1.0.0-alpha.24':
resolution: {integrity: sha512-YrjGQfnxBR+9o8wXyTflON3Ohsv7OrZWYLVRU+7RaiFO1gcu36iDm3WjudlVmYuWRLDO0Gmxotm6RQNhbZuEQQ==}
+ '@fontsource-variable/inter@5.3.0':
+ resolution: {integrity: sha512-OupL48va4JNofb97w6NYeF9S7W/kHNKM0Er8Dem5nqi4jeOLrVJDoE8tZEpnMJmtkvNbB1EIPPwHcdkF6b1oUA==}
+
'@griffel/core@1.21.3':
resolution: {integrity: sha512-FMnlwhtmCRWvXEg2j/6W90wzvW+PFqdrsWFslfmxwS6l9X73gO0dnndKphht9ZOsJODvmLdqlnU1Lh8igg2mKw==}
@@ -3507,6 +3513,8 @@ snapshots:
dependencies:
'@swc/helpers': 0.5.23
+ '@fontsource-variable/inter@5.3.0': {}
+
'@griffel/core@1.21.3':
dependencies:
'@emotion/hash': 0.9.2