Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion apps/ios/Roost/Resources/Themes.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"default": {
"light": {
"background": "#FFFFFF",
"sidebar": "#F2F2E9",
"sidebar": "#F6F6F1",
"surface": "#FCFCFA",
"selected": "#E8EBDD",
"bubble": "#F3F3EF",
Expand Down
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions apps/web/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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",
Expand Down
44 changes: 29 additions & 15 deletions apps/web/src/components/agent-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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,
},
});
5 changes: 2 additions & 3 deletions apps/web/src/components/agent-section-controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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: {
Expand Down
5 changes: 2 additions & 3 deletions apps/web/src/components/computer-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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)",
Expand Down
19 changes: 12 additions & 7 deletions apps/web/src/components/conversation/composer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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 },
},
Expand All @@ -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 },
},
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/conversation/image-preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -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: {
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/conversation/message-reactions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string> = {
Expand Down Expand Up @@ -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,
Expand Down
28 changes: 13 additions & 15 deletions apps/web/src/components/conversation/tool-activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -49,9 +50,17 @@ export const ToolActivity = memo(function ToolActivity({
<span title={label} {...stylex.props(styles.label)}>
{label}
</span>
<span {...stylex.props(styles.badge, running && styles.running)}>
<Badge
variant={
running
? "accent"
: message.status === "failed"
? "destructive"
: "secondary"
}
>
{status}
</span>
</Badge>
{showActivityDetails && (
<span {...stylex.props(styles.chevron, open && styles.chevronOpen)}>
<Icon name="chevron-right" size={12} />
Expand Down Expand Up @@ -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)": {
Expand All @@ -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)",
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/mobile-navigation-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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)",
Expand Down
Loading
Loading