Skip to content

An open-source, faster Devin alternative

TypeScript

feat(web): brand + typography pass to match the docs

Igor Zalutski8edf75e62eac
diff --git a/web/package-lock.json b/web/package-lock.json
index 776b249b..07c03ce4 100644
--- a/web/package-lock.json
+++ b/web/package-lock.json
@@ -10,6 +10,7 @@
"dependencies": {
"@fontsource-variable/geist-mono": "^5.2.8",
"@fontsource-variable/inter": "^5.2.8",
+ "@fontsource-variable/newsreader": "^5.2.10",
"@posthog/react": "^1.9.0",
"@tanstack/react-query": "^5.60.0",
"@xterm/addon-fit": "^0.11.0",
@@ -1409,6 +1410,15 @@
"url": "https://github.com/sponsors/ayuhito"
}
},
+ "node_modules/@fontsource-variable/newsreader": {
+ "version": "5.2.10",
+ "resolved": "https://registry.npmjs.org/@fontsource-variable/newsreader/-/newsreader-5.2.10.tgz",
+ "integrity": "sha512-MdI2iRwrqWpMOU/2aV2BgfZ4dJNlj/XlYaY8Zb7t87mWqHskYW0XiUANkt1cyOCiEfW2VQ0bQ5vZgGPp6B2B4w==",
+ "license": "OFL-1.1",
+ "funding": {
+ "url": "https://github.com/sponsors/ayuhito"
+ }
+ },
"node_modules/@hono/node-server": {
"version": "1.19.14",
"resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-1.19.14.tgz",
diff --git a/web/package.json b/web/package.json
index c9833af5..3e7f4aed 100644
--- a/web/package.json
+++ b/web/package.json
@@ -16,6 +16,7 @@
"dependencies": {
"@fontsource-variable/geist-mono": "^5.2.8",
"@fontsource-variable/inter": "^5.2.8",
+ "@fontsource-variable/newsreader": "^5.2.10",
"@posthog/react": "^1.9.0",
"@tanstack/react-query": "^5.60.0",
"@xterm/addon-fit": "^0.11.0",
diff --git a/web/src/assets/logo-mark.svg b/web/src/assets/logo-mark.svg
deleted file mode 100644
index 6bd25645..00000000
--- a/web/src/assets/logo-mark.svg
+++ /dev/null
@@ -1,7 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none">
- <rect width="32" height="32" rx="6" fill="#6366F1"/>
- <path d="M8 12L16 7L24 12V20L16 25L8 20V12Z" stroke="white" stroke-width="2" fill="none"/>
- <path d="M16 7V25" stroke="white" stroke-width="1.5" opacity="0.5"/>
- <path d="M8 12L24 20" stroke="white" stroke-width="1.5" opacity="0.5"/>
- <path d="M24 12L8 20" stroke="white" stroke-width="1.5" opacity="0.5"/>
-</svg>
diff --git a/web/src/components/app-shell.tsx b/web/src/components/app-shell.tsx
index b13ea7d3..014213ba 100644
--- a/web/src/components/app-shell.tsx
+++ b/web/src/components/app-shell.tsx
@@ -17,7 +17,6 @@ import {
} from 'lucide-react'
import { useAuth } from '@/hooks/useAuth'
import { logout, getAutumnBilling } from '@/api/client'
-import logoMark from '@/assets/logo-mark.svg'
import { Button } from '@/components/ui/button'
import {
Sheet,
@@ -49,10 +48,9 @@ const NAV: NavItem[] = [
function Brand() {
return (
- <Link to="/" className="flex items-center gap-2" aria-label="OpenComputer">
- <img src={logoMark} alt="" className="size-6" />
- <span className="text-foreground text-[15px] font-semibold tracking-tight">
- OpenComputer
+ <Link to="/" className="flex items-center" aria-label="OpenComputer">
+ <span className="text-foreground font-mono text-[17px] font-semibold tracking-tight">
+ opencomputer
</span>
</Link>
)
@@ -111,7 +109,7 @@ function SidebarBody({ onNavigate }: { onNavigate?: () => void }) {
const { user } = useAuth()
return (
<div className="flex h-full flex-col">
- <div className="border-b px-4 py-4">
+ <div className="flex h-16 shrink-0 items-center border-b px-4">
<Brand />
</div>
@@ -130,35 +128,39 @@ function SidebarBody({ onNavigate }: { onNavigate?: () => void }) {
onClick={onNavigate}
className={({ isActive }) =>
cn(
- 'flex min-h-9 items-center gap-2.5 rounded-md px-3 text-sm transition-colors',
+ 'flex min-h-9 items-center gap-2.5 rounded-md px-3 font-mono text-[13px] tracking-tight transition-colors',
isActive
? 'bg-sidebar-accent text-foreground font-medium'
: 'text-muted-foreground hover:bg-sidebar-accent/60 hover:text-foreground',
)
}
>
- <item.icon className="size-[18px] shrink-0" aria-hidden />
+ <item.icon
+ className="size-[18px] shrink-0 opacity-50"
+ aria-hidden
+ />
{item.label}
</NavLink>
))}
</nav>
- <div className="space-y-2.5 border-t p-3">
- <div className="flex items-center gap-2.5 px-1">
+ <div className="border-t p-3">
+ <div className="flex items-center gap-2.5">
<span className="bg-secondary text-muted-foreground flex size-7 shrink-0 items-center justify-center rounded-full text-xs font-medium">
{user?.email?.charAt(0).toUpperCase() || '?'}
</span>
- <span className="text-muted-foreground truncate text-xs">
+ <span className="text-foreground min-w-0 flex-1 truncate text-xs">
{user?.email}
</span>
+ <button
+ onClick={() => logout()}
+ aria-label="Sign out"
+ title="Sign out"
+ className="text-muted-foreground hover:bg-sidebar-accent hover:text-foreground flex size-7 shrink-0 items-center justify-center rounded-md transition-colors"
+ >
+ <LogOut className="size-4" aria-hidden />
+ </button>
</div>
- <button
- onClick={() => logout()}
- className="text-muted-foreground hover:text-foreground flex items-center gap-2 px-1 text-xs transition-colors"
- >
- <LogOut className="size-3.5" aria-hidden />
- Sign out
- </button>
</div>
</div>
)
@@ -221,7 +223,7 @@ export default function AppShell() {
{/* Main content */}
<div className="md:pl-60">
<HaltBanner />
- <main className="mx-auto max-w-7xl px-4 py-6 sm:px-8 sm:py-8">
+ <main className="mx-auto max-w-7xl px-4 py-5 sm:px-8">
<Outlet />
</main>
</div>
diff --git a/web/src/components/page-header.tsx b/web/src/components/page-header.tsx
index 7d63e468..0ad1bf8b 100644
--- a/web/src/components/page-header.tsx
+++ b/web/src/components/page-header.tsx
@@ -20,7 +20,7 @@ export function PageHeader({
)}
>
<div className="space-y-1">
- <h1 className="text-foreground text-xl font-semibold tracking-tight">
+ <h1 className="font-heading text-foreground text-2xl font-semibold tracking-tight">
{title}
</h1>
{description ? (
diff --git a/web/src/index.css b/web/src/index.css
index 42149f08..3fac16a5 100644
--- a/web/src/index.css
+++ b/web/src/index.css
@@ -36,6 +36,7 @@
/* Self-hosted brand fonts (no external CDN dependency). */
@import '@fontsource-variable/inter';
@import '@fontsource-variable/geist-mono';
+@import '@fontsource-variable/newsreader';
@custom-variant dark (&:is(.dark *));
@@ -47,7 +48,8 @@
--font-mono:
'Geist Mono Variable', ui-monospace, 'SF Mono', 'Menlo', 'Consolas',
monospace;
- --font-heading: var(--font-sans);
+ /* Display/brand serif — matches the Mintlify docs heading font (Newsreader). */
+ --font-heading: 'Newsreader Variable', ui-serif, Georgia, serif;
/* shadcn semantic colors -> our tokens */
--color-background: var(--background);