Examples
Set up a new React app in this folder with Vite, TypeScript and Mantine. It is Atlas, an AI travel planner: people chat with an assistant that plans their trip with them.
Theme: follow our brand guide:
- colors: deep indigo #3730a3 as the primary color, coral #f97362 as an accent for highlights only, cool gray neutrals
- type: Geist for everything, headings at weight 700, a 15px base size because people read a lot of text in the chat
- shape: rounded, 12px corners on cards and inputs, pill-shaped buttons
- elevation: soft shadows instead of borders on cards
- light and dark color schemes
Build the chat screen.
Data, hard-coded and generated relative to today:
- 12 past conversations with a title and the time of the last message, 2 of them pinned
- the current conversation: planning a 5-day trip to Lisbon for two at the end of next spring, about 10 messages; the assistant's answers have paragraphs, lists, links and a table comparing three neighborhoods; one user message has a photo attached; two answers include tool results: 3 flight options (airline, times, stops, price) and 3 hotel options (photo from Unsplash, neighborhood, rating, price per night)
- the itinerary built so far: 5 days with morning, afternoon and evening items, some with a cost
- 4 suggested prompts for a new conversation
App shell:
- a sidebar with New chat, a search over conversations, the conversations (pinned first, then grouped by Today, Yesterday, Previous 7 days and Older) with rename, pin and delete in a menu, and the user menu at the bottom (plan, settings, light/dark color scheme, also on Cmd+J)
- the sidebar collapses to icons on desktop and opens from a burger button on phones
Page:
- the conversation: user and assistant messages; assistant messages are formatted (paragraphs, lists, tables, links) and have copy, retry and thumbs up/down actions; the time of a message shows on hover
- the composer: a text area that grows with its content, attaching files and photos (shown as removable chips with a preview), Enter sends and Shift+Enter adds a line, a model choice (Fast or Thorough), and a stop button while an answer is being written
- sending a message streams the reply word by word after a short typing indicator; the conversation follows the reply unless the reader scrolls up, and then a "Jump to latest" button appears
- tool results appear inside the answer as flight and hotel cards; choosing one adds it to the itinerary and a notification says so
- an itinerary panel beside the chat (it can be hidden on desktop and opens as a drawer on phones): the days and their items, the estimated total, export to calendar (.ics), and the items of a day can be reordered by dragging
- a new chat shows a greeting and the suggested prompts as cards
- a failed reply shows an inline error with a Retry button (the third message sent in a session fails once)
- the page works on phones and nothing scrolls the page sideways