Recipe R08
The AI Workspace
A dark AI chat app that works: your conversations in the sidebar, a fresh chat one click away, answers that stream in.
Teams building an assistant, a research tool or an internal AI product.
ScenarioAn internal assistant for a small company: past conversations grouped by when they happened, New chat that opens a clean greeting, replies that stream in, and every conversation there to reopen with its history.
The page, section by section
- 01
Conversations
Conversation SidebarHistory grouped by time, search and inline rename; its New chat and selection are wired to the app, and collapsing keeps titles as initials.
- 02
The chat
Ask BarA greeting for a new chat, a bar that grows as you write, files, voice and model in one place, and replies that stream in word by word.
Change first
The first things to replace to make this page yours.
- Replace the simulated replies with your model's streaming API, including stop, retry and error states.
- Set the models in the bar to the ones you actually offer, with honest one-line descriptions, or remove the menu if there's only one.
- Store conversations for real: titles from the first message, renames, and history that survives a reload.
- Rewrite the greeting and placeholder in your product's voice.
The build brief
Paste it into Claude, Cursor or ChatGPT with the component files, and ask for your own version: your name, your work, your product. It names each component and where to copy it from.
# Build brief: The AI Workspace A dark AI chat app that works: your conversations in the sidebar, a fresh chat one click away, answers that stream in. For: Teams building an assistant, a research tool or an internal AI product. Scenario: An internal assistant for a small company: past conversations grouped by when they happened, New chat that opens a clean greeting, replies that stream in, and every conversation there to reopen with its history. ## Direction - Dark throughout: the chat's own night (#0e0f14) with a deep blue glow that breathes slowly behind the conversation, and a darker sidebar (#0a0b0f) set to match through its tokens. - The conversation is the interface. The header holds only the chat's title; the model choice lives in the bar, where you use it, not in a corner. - New chat really starts one: a clean greeting, and the chat appears at the top of Today the moment you send, titled from your first words. - Every conversation reopens with its history, in the same component, so past and present chats look the same. - Geist throughout, one blue accent (#8ab4f8) for focus, the active chat and the assistant's mark. ## Page map 1. Conversations: Conversation Sidebar. History grouped by time, search and inline rename; its New chat and selection are wired to the app, and collapsing keeps titles as initials. 2. The chat: Ask Bar. A greeting for a new chat, a bar that grows as you write, files, voice and model in one place, and replies that stream in word by word. ## Change first - Replace the simulated replies with your model's streaming API, including stop, retry and error states. - Set the models in the bar to the ones you actually offer, with honest one-line descriptions, or remove the menu if there's only one. - Store conversations for real: titles from the first message, renames, and history that survives a reload. - Rewrite the greeting and placeholder in your product's voice. ## Components Copy each component's files from its page (Code tab) into your project before you start, and use them as given: change props and content, not internals. - Conversation Sidebar: https://tryvitrine.dev/components/conversation-sidebar (A chat history sidebar grouped by when, not what — it collapses into a narrow rail where each conversation becomes its initials, and titles can be renamed in place.) - Ask Bar: https://tryvitrine.dev/components/ask-bar (A quiet place to start a conversation: a greeting over a deep blue glow and one rounded bar to ask in.) ## Build - Next.js (App Router), TypeScript, Tailwind CSS. No extra UI libraries. - Write real content for this site: real names, dates, numbers and sentences. No lorem ipsum, no "Feature one". - Compose the sections in the order of the page map. Keep each component's own spacing; add page rhythm with consistent section padding. - Mobile first: every section must work at 375px wide without horizontal scrolling. - Respect prefers-reduced-motion everywhere; every Vitrine component already does. ## Before you ship - Run `/interface-copy` (https://tryvitrine.dev/workshop/skills/interface-copy): Empty, streaming, stopped and error states are most of an AI interface's text. - Run `/component-adaptation` (https://tryvitrine.dev/workshop/skills/component-adaptation): The sidebar and the chat come from different sets and must read as one dark product. - Run `/conversion-ux-review` (https://tryvitrine.dev/workshop/skills/conversion-ux-review): The first message is the whole onboarding; nothing should stand between New chat and typing. - Run `/responsive-audit` (https://tryvitrine.dev/workshop/skills/responsive-audit): On phones the sidebar goes and New chat moves to the header; check the bar fits at 375px. - Run `/accessibility-pass` (https://tryvitrine.dev/workshop/skills/accessibility-pass): Streaming replies are announced through a live log, menus work by keyboard, and focus returns to the field.
Direction
- Dark throughout: the chat's own night (#0e0f14) with a deep blue glow that breathes slowly behind the conversation, and a darker sidebar (#0a0b0f) set to match through its tokens.
- The conversation is the interface. The header holds only the chat's title; the model choice lives in the bar, where you use it, not in a corner.
- New chat really starts one: a clean greeting, and the chat appears at the top of Today the moment you send, titled from your first words.
- Every conversation reopens with its history, in the same component, so past and present chats look the same.
- Geist throughout, one blue accent (#8ab4f8) for focus, the active chat and the assistant's mark.