# Incline design reference
Version: 1.0
The foundations and real components behind Incline. A living reference for the people and agents building thoughtful tools for work.
Manifest: /style/guide.json
CSS tokens: /style/tokens.css
## Instructions for agents
- Use the documented components and their import paths before creating new primitives.
- Use semantic CSS tokens instead of hard-coded values.
- Treat example code as executable usage and follow the accessibility requirements.
- Preserve documented variants. Propose an addition when an existing component does not fit.
- This is Incline's production design contract. Read docs/frontend-style-guide.md before changing product UI.
- Use Calibre 400 and 500 for body text, controls, and the wordmark preview. Page and pane titles use Calibre Regular/400. Use type-heading-page or apply font-heading when keeping another existing heading size. SidebarListHeader uses the 16px component heading with font-medium for weight 500. Keep title counts, supporting copy, dialog headings, and empty-state headings at 400.
- All Calibre font faces use size-adjust: 120% to normalize their apparent size against Inter. Preserve the documented logical type sizes and layout dimensions.
- web/src/fonts/calibre.css registers Calibre 200, 300, 400, 500, 600, 700, and 900 in normal and italic styles. Use explicit font-weight and font-style when selecting these additional faces; preserve the existing interface hierarchy.
- Use the existing type-body, type-supporting, type-heading-component, type-heading-context, and type-heading-page classes. Body is 14px with -0.01em (-1%) letter spacing; code retains normal spacing. Supporting text is 13px; headings are 16, 22, and 36px.
- IBM Plex Mono is for code and structured data. Labels, metadata, identifiers, timestamps, and metrics stay in Calibre. Use font-numeric for numeric alignment.
- Use the documented Tailwind spacing, radius, and duration utilities. Utility-only foundations are not new global CSS variables.
- Use uppercase sparingly with at most 0.04em tracking. Favor white backgrounds and negative space; borders clarify essential structure only.
- Use warm charcoal for filled primary buttons and deep olive for links, selection, and focus. Terracotta, sand, and ochre are supporting accents. Reserve status colors for runtime state. Avoid broad muted page backgrounds.
- Standard controls are 36px and compact controls 32px. Buttons, single-line inputs, selects, dropdown triggers, and badges use rounded-full. Textareas, compound input surfaces, and HumanInputCard answer choices share rounded-input-surface, backed by --input-surface-radius (18px).
- Reuse the imports documented here. Add variants to primitives before introducing new one-off components. Do not override primitive corner radii outside compound interior joins.
- Dropdown ghost and outline share geometry; fullWidth is independent of variant. width sizes the popup, not the trigger. Use options/value/onValueChange for selection and DropdownItem for actions.
- Use AppNavigation for direct Chat, Workflows, Apps, and Knowledge links in the app header. Keep workflow selection in its own contextual dropdown.
- Wrap the authenticated app in WorkspaceCanvas for a shared warm off-white frame and a white main pane.
- Retain focus rings and accessible labels, including icon-only actions. Input and Textarea call sites must supply the documented focus-visible ring classes.
- Use Surface for shared material, GlassSurface only for functional floating layers, and DialogTitle for the 22px heading with its automatic close action.
- Use ConversationUserMessage for sent bubbles and PendingConversationMessage for optimistic submissions. Assistant prose uses MarkdownMessage; progress uses its muted tone without changing the 14px body size.
- Use RunDetails for collapsible thinking blocks. Prefer the existing tool catalog name and workflow name over raw identifiers; do not maintain another label table. Keep exact tool and model details inspectable.
- Samples use local state and never call the API. Their renderer wrappers are in web/src/style-guide/previews.tsx; implementation imports point to production components.
- Maintain web/src/style-guide/guide.ts and previews.tsx together. Run pnpm --dir web style:reference after edits; dev and build do this automatically. Never edit generated public/style files directly.
## Principles
- Information first: A professional control surface with a clear grid and Swiss editorial discipline.
- A little breathing room: White canvas, authored content, and deliberate negative space. Keep the chrome compact.
- One shared language: Production components, honest states, and accessible interactions. Extend before inventing.
## Typography
Font: Calibre; stack: "Calibre", "Inter", "Helvetica Neue", Arial, sans-serif
- --font-size-heading-page: 2.25rem; line height 1.08; weight 400. Page.
- --font-size-heading-context: 1.375rem; line height 28px; weight 400. Context.
- --font-size-heading-component: 1rem; line height 1.5; weight 500. Component.
- --font-size-body: 0.875rem; line height 1.5; weight 400. Body.
- --font-size-supporting: 0.8125rem; line height 1.5; weight 400. Supporting.
## Color
- --foreground: #191917. Ink. Primary type and icons.
- --background: #ffffff. Canvas. The white workspace.
- --surface-subtle: #f9f9f8. Subtle. Quiet local grouping.
- --border: #e8e8e3. Line. Essential structure only.
- --muted-foreground: #6a6963. Supporting. Secondary attributes and context.
- --primary: #62682f. Olive. Links, selection, and focus.
- --primary-button: #292824. Warm charcoal. Filled primary buttons.
- --surface-brand-subtle: color-mix(in srgb, #62682f 7%, #ffffff). Olive tint. A restrained interactive tint.
- --surface-brand-selected: color-mix(in srgb, #62682f 16%, #ffffff). Olive selection. Editor selection and stronger interactive tint.
- --workflow-accent-olive: #9da744. Olive accent. Chat navigation and decorative card accents.
- --workflow-accent-warm: #c78059. Terracotta. Warm decorative card accents and Settings connections icon.
- --workflow-accent-steel: #829eab. Steel. Workflows navigation icon.
- --workflow-accent-ink: #b29a70. Sand. App navigation and decorative card accents.
- --workflow-accent-ochre: #d3a03b. Ochre. Knowledge navigation and decorative card accents.
- --workflow-accent-lavender: #a38ab8. Lavender. Profile navigation icon.
- --workflow-accent-teal: #5a9e9a. Teal. Model execution spans and their cost highlights.
- --surface-inverse: #292c1a. Inverse surface. Dark olive assistant and inspection controls.
- --surface-inverse-raised: #373d25. Inverse raised. Raised and hovered dark olive surfaces.
- --foreground-inverse: #edf0d4. Inverse text. Readable pale olive text on inverse surfaces.
- --accent-inverse: #dce4a4. Inverse accent. Actions and accents on inverse surfaces.
- --success: #37c991. Success. Positive runtime state.
- --success-foreground: #087653. Success text. Readable positive status text.
- --warning: #f4b33d. Warning. A state that needs attention.
- --warning-foreground: #8a4b08. Warning text. Readable caution labels.
- --destructive: #d83a4e. Destructive. Errors and destructive actions.
- --notification-unread: color-mix(in srgb, #62682f 50%, #ffffff). Unseen results. Pastel olive for unseen conversation results.
- --notification-warning: color-mix(in srgb, #f4b33d 50%, #ffffff). Needs you. Pastel yellow for conversations awaiting input.
- --notification-error: color-mix(in srgb, #d83a4e 50%, #ffffff). Needs attention. Pastel red for conversation errors.
## Foundations
A 4px spacing rhythm. Semicircular controls. Softness reserved for surfaces that need it.
- class gap-1: 4px. 1.
- class gap-2: 8px. 2.
- class gap-3: 12px. 3.
- class gap-4: 16px. 4.
- class gap-6: 24px. 6.
- class gap-8: 32px. 8.
- class gap-12: 48px. 12.
- class gap-16: 64px. 16.
- class rounded-xl: 12px. Surface.
- class rounded-input-surface: 18px. Input surface.
- class rounded-full: 999px. Control.
- class duration-150: 150ms. Feedback.
- class duration-300: 300ms. Transition.
## App navigation
The main sections stay visible and take one click to open.
### Workflow publication
One explicit publishing action makes reviewed workflow changes available to future runs.
Import: @/components/app-header
Usage:
- Use Publish workflow for the first publication and Publish changes for an existing published workflow. Compact headers may shorten the visible action to Publish while retaining the full accessible name. Publishing a manual workflow makes it available; running it remains a separate action.
- A proposal's publishing action accepts the reviewed changes and publishes them in one step. Offer Keep as draft for ordinary proposals, preserving existing workflow drafts across reloads against their current published base. Trying a workflow stays separate from publishing.
- Keep the published version available while edits accumulate. Show Published · Unpublished changes rather than replacing the published status with a draft-only status. A durable unpublished draft can be published even without further edits.
- Use workflowPublicationConsequence from @/lib/workflow-publication to explain configured enabled triggers beside the review action. Include schedule time and timezone, use Available to run from chat for manual workflows, and preserve paused triggers when publishing unrelated changes.
Accessibility:
- Retain full action names, keyboard focus, publishing and read-only disabled states, and a textual status that does not rely on color.
#### Review, then publish [workflow-publication-default]
The production workflow header with fictional draft, published, unpublished-change, publishing, and read-only states. Publishing changes only this local sample. Switch the trigger summary between manual use and a weekday schedule.
```tsx
{workflowPublicationConsequence(configuration)}
```
### AppNavigation
Four direct links with dark medium-weight labels, grayscale icons for inactive sections, and a full-color icon and contoured glass pill for the current section.
Import: @/components/app-navigation
Usage:
- Use in the app header for Chat, Workflows, Apps, and Knowledge; workflow selection remains a separate dropdown.
- Pass the current section and route changes through onNavigate so unsaved-change guards still apply.
- Compact widths keep all four icon links visible; wider widths also show their labels.
- Keep every label in foreground at weight 500. Use filled 16px icons with olive for Chat, soft steel blue for Workflows, sand (ink) for Apps, and ochre for Knowledge. Gradients reuse the corresponding --workflow-accent-* and --glass-tint-* tokens with a soft surface highlight. Show the current section's gradient in color and render inactive icons in grayscale, including on hover and keyboard focus. Only the pill background and shadow animate.
- Place the navbar on the warm off-white frame with a tone-free ProgressiveBlurBackdrop. Use Button's glass variant for the active link, with its shared translucent material, inset lighting, and compact cast shadow. Preserve its existing dimensions.
- Inactive links use a 50% translucent hover-surface fill on hover.
Accessibility:
- Expose a Main navigation landmark and aria-current=page on the active link.
- Retain accessible names, visible keyboard focus, native link destinations, and modified-click behavior.
#### One click to each section [app-navigation-default]
Select a section to move the active glass pill and bring its icon into color. Inactive icons retain their gradient shading in grayscale.
```tsx
```
### WorkspaceCanvas
A solid warm off-white frame around the white main pane.
Import: @/components/workspace-canvas
Usage:
- Wrap the authenticated app frame in WorkspaceCanvas.
- Use #f8f7f4 for the navbar, sidebar, and gutters, including compact single-pane lists and the Chat drawer. Use a tone-free navbar blur.
- Use the shared foreground and muted foreground tokens for primary and supporting text across sections.
- Shared list surfaces reveal the frame. Main panes use a white base at every width. Retain pane geometry, contact shadows, scroll behavior, text contrast, and interaction states. Cards, expanded charts, and document previews retain their own materials.
- Switching Build, Activity, and Code within the same app fades only the active tab body. Keep the app sidebar, navbar, tab strip, and main pane surface steady; skip pane resizing. Use the same scope for browser Back/Forward, and navigate immediately with reduced motion.
Accessibility:
- Use Canvas and CanvasText in forced-colors mode. Primary and supporting inks must retain at least 4.5:1 contrast against their backgrounds, including selected and hovered rows.
#### One frame across sections [workspace-canvas-default]
Switch sections to see the shared off-white frame and base text colors.
```tsx
{/* Content */}
```
### SettingsNavigation
Settings areas with filled gradient glyphs and shared text colors on the off-white frame.
Import: @/components/settings-navigation
Usage:
- Compose inside SettingsView's SidebarSurface. Pass area, isAdmin, and onAreaChange; keep Tool access visible only to administrators.
- Reuse GradientIcon for the same 16px filled silhouettes, diagonal gradient, and surface highlights as the header. Profile is lavender, Connections terracotta, People olive, Teams sand, and Tool access ochre. Keep icon hues constant on selection, hover, and focus.
- Retain existing row geometry and text weight, translucent hover and active fills, and the horizontally scrolling compact navigation. Settings keeps a white main pane and uses the shared olive focus ring.
Accessibility:
- Expose Settings areas as a navigation landmark and aria-current=page on the selected button. Keep text labels and keyboard focus visible; glyphs are decorative.
#### Settings areas [settings-navigation-default]
Select an area to inspect the production navigation. Toggle administrator access to check the available destinations.
```tsx
```
## Actions
One clear next step. The same familiar geometry, at every level of emphasis.
### Button
The shared shadcn-style action, with pill geometry and a visible focus ring.
Import: @/components/ui/button
Usage:
- Choose an existing variant; keep the primitive's radius.
- Use the default variant for a warm charcoal primary action.
- Use type="button" outside intentional form submission.
- Use asChild with a link for navigation.
- Use glass for a selected or floating control over visible content. It shares Surface's translucent material and GlassSurface's highlights with a compact control shadow.
Accessibility:
- Label every icon-only action.
- Preserve disabled, aria-busy, and keyboard-focus states.
Props:
- variant: 'default' | 'outline' | 'secondary' | 'ghost' | 'glass' | 'destructive' | 'link' (default: default). Action emphasis.
- size: 'default' | 'sm' | 'icon' | 'icon-sm' (default: default). 36px standard or 32px compact.
#### A useful hierarchy [button-variants]
Primary, outline, secondary, ghost, destructive, and link. Click an action to try its local loading state.
```tsx
```
#### Every state counts [button-states]
Compact, disabled, and busy. Loading feedback stays in place.
```tsx
```
#### A little less chrome [button-icons]
A labeled icon action with a pressed state. Try adding it to favorites.
```tsx
```
### SplitButton
An independent main action and an adjacent menu.
Import: @/components/ui/split-button
Usage:
- Keep the main action independent of its menu.
Accessibility:
- Supply menuLabel for the secondary trigger.
#### Two related choices [split-button-default]
Try opens a local dialog; the menu offers a separate continuous run.
```tsx
Try>} onAction={openRunDialog} menuLabel="More run options">
{(close) => { close(); openContinuousDialog(); }} />}
```
### AccessBadge / sharing controls
A current-access pill and shared sharing-dialog rows for workflows and apps, beside quiet history actions.
Import: @/components/sharing-controls
Usage:
- Use AccessBadge to show a share icon beside current access, such as Private, You and Jordan Lee, You and Customer success, You and 2 others, or Public, and open the sharing dialog. Keep the icon visible and truncate long labels at compact widths. Use EditorHeaderButton from @/components/editor-header for background-free history actions.
- Compose SharingAccessList, SharingAccessRow, and SharingInviteControl in the default 512px DialogContent with sharingDialogContentClassName and sharingDialogBodyClassName. Show the principal icon, name with optional secondary detail, role selector, and remove action without a table header or row dividers. Keep the person/team picker and Add action visible, followed by a selectable resource URL; contain long lists in the body.
- Preserve resource permissions and save behavior. Workflow access changes persist immediately, the footer closes with Done, and no public web option is offered. Keep existing workflow team-account configuration where applicable. Apps retain Public web access and staged Cancel/Save access actions.
Accessibility:
- Name access triggers by resource and current access, label each role and remove action by principal, and return focus to the opening trigger after dismissal.
- Retain dropdown keyboard navigation and visible focus, expose loading and error feedback, disable Add until a person or team is selected, and allow the dialog body to scroll at compact heights.
#### Access and sharing [header-actions-default]
The production access badge, sharing rows, person/team picker, and dialog shell with local sample grants. Add a person or team, change their role, or remove access; the badge follows the local state. History stays a quiet adjacent action.
```tsx
Live v3Share Customer renewal
```
## Inputs
A clear label, a comfortable target, and useful guidance. Native behavior comes first.
### CanvasPropertySection / CanvasPropertyGrid
Compact inspector sections with a shared four-column grid, inline labels, and rules between property groups.
Import: @/canvas/property-grid
Usage:
- Compose the inspector with CanvasPropertySection: Transform, Path, Typography, Fill & stroke, Image, Mask, and Effects as applicable. Each section owns a heading, optional actions, 12px insets, an 8px content gap, and a full-width top rule. Keep blur and the shadow stack together in Effects. Remove instructional paragraphs from the inspector; keyboard help stays in Shortcuts.
- Use CanvasPropertyGrid and CanvasPropertyCell for four equal columns with an 8px gutter. span=4 fills a row, span=2 takes half, and span=1 takes a quarter. Each cell owns its complete control. Use asChild to compose existing controls without a wrapper.
- CanvasPropertyField places a short visible caption inside a 32px control. CanvasNumberInput from @/canvas/property-input composes this field and shares live numeric edits, bounds, mixed values, formatting, native arrow-key stepping, and Enter/Escape behavior. Keep full accessible labels when captions are abbreviated to W, H, R, or an icon.
- Width/Height, layer X/Y position above Rotation, rotation/radius, and shadow X/Y and Blur/Spread use half-width cells. X/Y appear for every selected layer, group and multiple selection; retain negative and fractional world coordinates without display rounding. Shadow position and color span the full row. Fill style and paint rows span the grid; gradient angle and Reverse share halves. Retain Input, Dropdown, and CanvasColorControl primitives without shrinking type to fit.
- Keep the same grid and spacing at compact and desktop sizes. The compact properties panel uses available room beside the layer list, capped at its desktop width. Let the owning panel scroll vertically and narrow numeric values scroll within their fields.
- Relative to spans the Transform grid above X/Y. Use the shared native select for Canvas, enclosing groups and other layers or groups. With a reference, show signed gaps in two columns and keep Pin gaps and Match gaps together below them. Let the actions wrap in compact panels.
Accessibility:
- Give each section a visible heading and a corresponding accessible name. Preserve explicit accessible names and visible captions for every control. Use a native label for inputs and the Dropdown label for selection controls.
- Retain visible keyboard focus, logical keyboard order, and full accessible numeric values. Use title text for units and abbreviated or icon captions. Show compact state metadata such as Mixed and the anchor count without adding explainer paragraphs.
Props:
- title: string. The property section heading and accessible name.
- actions: ReactNode. Optional controls or state beside the section heading.
- span: 1 | 2 | 4 (default: 4 (cell), 2 (field)). Quarter, half, or full width of the four-column grid.
- asChild: boolean (default: false). Apply the cell layout to an existing label or control.
#### One system, every section [canvas-property-grid-default]
Transform and Effects use the production section, grid, numeric field, and shadow components with shared insets and gutters.
```tsx
```
### CanvasColorControl
A persistent paint row with an inline hex editor and an independent color-picker swatch; a red X means no paint.
Import: @/canvas/color-control
Usage:
- Reuse for text, pencil, shape fill and stroke, and shadows. Keep Fill and Stroke visible even when disabled. Put the value before the swatch; click the value to edit hex inline and the swatch to open the picker. None displays a red X, while enabled swatches show exact color alpha over a checkerboard.
- Pass colors from the current document for reusable presets. The popup also reads the app's semantic palette tokens. Supply enabled/onEnabledChange for optional paints; the picker offers None and Color. Color edits enable the paint in the same authored edit, keeping the saved color while disabled. New vector tools start with no fill and a visible stroke.
- Place the hue slider above the HSL plane. Saturation increases to the left; lightness increases downward. Retain exact alpha bytes for preset and HSL changes. Inline and popup hex accept 3, 4, 6, or 8 digits; shorthand expands and RGB-only entry means fully opaque. Show six digits for opaque colors (including explicit ff alpha), and eight for every other alpha byte. Opacity remains in the popup. Use allowAnchorOverlap to keep the picker within short viewports.
Accessibility:
- Keep Dropdown's dialog semantics, outside dismissal, Escape handling and focus restoration. Label hex and swatch actions independently; Enter commits inline hex, Escape cancels, and invalid values have an associated error without changing paint.
- Arrow keys adjust the plane; Shift increases the step. Retain visible focus rings, accessible hue/opacity sliders and hex validation feedback.
#### Paint on demand [canvas-color-default]
Edit hex inline or open a swatch to choose None, a color, HSL, or opacity. Fill starts disabled and Stroke enabled.
```tsx
{ setFill(color); setFillEnabled(true); }} />
```
### CanvasBrushControls
A curated brush picker with stroke previews from the production canvas renderer, independent of the ink color.
Import: @/canvas/appearance-controls
Usage:
- Offer Round pen, Graphite, Marker, Chalk, and Dry brush from the shared brush preset registry. Show a real stroke preview for each choice so shape, grain and coverage can be compared before drawing. Brush changes texture; Color sets the ink.
- Imported document images are not brushes and must never populate the picker automatically. Preserve a saved custom image brush as the current choice only when the stroke already references that asset. Changing to a default brush must not modify or remove document images.
- Keep technical spacing, scatter, rotation and randomness controls inside the collapsed Brush settings disclosure. Preserve editable preset identifiers and custom asset references through the shared document model, connector and export renderer.
Accessibility:
- Keep Dropdown selection semantics, named choices, visible keyboard focus, Escape dismissal and trigger focus restoration. Decorative stroke previews supplement the text label and must not add keyboard stops.
- Show Mixed for selections with different brushes. Keep the settings disclosure keyboard operable and preserve full accessible labels for recipe fields.
Props:
- brush: CanvasBrush | undefined. The selected named preset or saved custom image brush; undefined uses the round pen.
- mixed: boolean (default: false). Displays a mixed selection until a brush is chosen.
- assets: Record. Document assets for resolving an existing custom brush, never an automatic brush catalog.
- onChange: (brush: CanvasBrush | undefined) => void. Authors the shared editable brush recipe.
#### Choose the mark [canvas-brush-default]
Try the production brush picker and its live stroke preview, change the ink color, or inspect a mixed selection. An unrelated imported image stays outside the brush choices.
```tsx
```
### Input
A pill-shaped text input with standard and compact control sizes.
Import: @/components/ui/input
Usage:
- Use a visible, associated label.
- Add the shared focus-visible ring at the call site.
- Use controlSize=sm beside compact buttons so height and text size match: 32px with 13px text. The default remains 36px with 14px text. Preserve the native size attribute for character width.
Accessibility:
- Connect hints and errors with aria-describedby.
- Use aria-invalid for an invalid field and an appropriate input type.
Props:
- controlSize: 'default' | 'sm' (default: default). Paired control height and type size: 36px/14px standard or 32px/13px compact.
#### Start with a name [input-default]
A persistent label and the shared focus treatment.
```tsx
```
#### Consider the edges [input-states]
Compact, disabled, and overflowing values.
```tsx
```
### Textarea
A multiline input with an 18px corner radius.
Import: @/components/ui/textarea
Usage:
- Use for freeform instructions; allow vertical resizing.
- Use controlSize=sm in compact workflow dialogs: 13px text, 64px minimum height, and the same 18px radius. The default keeps 14px text and a 96px minimum height.
Accessibility:
- Provide a label and a visible focus ring.
Props:
- controlSize: 'default' | 'sm' (default: default). Standard 14px text/96px minimum height or compact 13px text/64px minimum height.
#### Room for a thought [textarea-default]
Freeform instructions, with the production compound-control geometry.
```tsx
```
#### Compact run instructions [textarea-compact]
The production compact textarea used by scheduled workflow triggers.
```tsx
```
### NativeSelect
A native picker with the shared control shape and one chevron.
Import: @/components/ui/native-select
Usage:
- Keep the platform picker; do not add a second chevron.
Accessibility:
- Associate a label with the select.
#### A familiar choice [native-select-default]
Choose a date range using the native platform control.
```tsx
```
## Selection
Menus, values, and views. Consistent controls with the right semantics for each choice.
### Dropdown
The shared popup for action menus and single-value selection.
Import: @/components/ui/dropdown
Usage:
- Use DropdownItem children for actions; options/value/onValueChange for selection.
- ghost and outline share geometry. fullWidth controls the trigger; width controls the popup.
- Use an option's preview for a decorative sample beneath its name, such as an actual brush stroke. Keep the option label readable and the selected trigger compact; previews belong inside the popup.
- Small forms may opt into allowAnchorOverlap to use the full viewport height when neither side of the trigger has enough room. Other dropdowns retain their anchored placement.
Accessibility:
- Provide a label. Keep built-in menu/listbox semantics and arrow-key behavior.
- Option previews are decorative and must not contain focusable controls or replace the option's text label.
Props:
- options[].preview: ReactNode. Optional decorative sample shown beneath an option's label in the popup.
#### Actions in context [dropdown-menu]
The outline and ghost triggers share geometry. Choose an action to update the label.
```tsx
{(close) => { rename(); close(); }} />}
```
#### One selected value [dropdown-selection]
Grouped options, descriptions, a long label, and a disabled option.
```tsx
```
#### An intentional width [dropdown-full-width]
fullWidth affects the trigger independently of its visual variant.
```tsx
```
#### Even when nothing is ready [dropdown-states]
Disabled, loading, and an empty option list.
```tsx
undefined} options={modelOptions} />
undefined} options={[]} />
```
### SegmentedControl
A compact switch between closely related views.
Import: @/components/ui/segmented-control
Usage:
- Use for closely related modes, not independent actions.
Accessibility:
- Supply ariaLabel and keep arrow, Home, and End navigation.
- Connect tab IDs and controls to corresponding panels.
#### A change of perspective [segmented-control-default]
Switch between a focused conversation and a split preview using a click or the keyboard.
```tsx
```
### Tabs
Related views with an anchored active indicator.
Import: @/components/ui/tabs
Usage:
- Compose Tabs, TabsList, TabsTrigger, and TabsContent.
Accessibility:
- Label the tab list and retain Radix keyboard semantics.
#### A place for each view [tabs-default]
Change the selected view to show its local content.
```tsx
WorkflowTasksCustomer renewal3 tasks in progress
```
## Feedback
Small, readable signals that say what is happening. Color always comes with words.
### ConversationSidebarList
Chat and app builder navigation with quiet attention indicators.
Import: @/components/conversation-sidebar-list
Usage:
- Use SidebarListHeader with 12px top padding. Set newChatFirst for the main Chat sidebar to place the labeled outline New chat button on the left and search on the right. The app builder's conversation drawer, Workflows, Apps, and Knowledge use a visible heading and place search immediately left of the outline plus action. Keep search hidden by default. Expand it below the header and focus its input on activation. Reveal the workflow health filter in the same panel, while keeping the compact Overview shortcut available. Closing search clears its query and health filter and returns focus to the trigger. Respect reduced motion and keep collapsed search inert.
- Start chat rows directly below the header and use the 14px body size for their titles. Keep progressive blur at the scrollport edges. Place Ink and connected shared chats in footerContent below the conversation scrollport, capped at 40% of the sidebar with independent scrolling. Place the Create group plus beside Ink's status indicator at the trailing edge of the Ink row. Show Shared with Ink only when a connected task-backed group exists.
- Use sidebar-section-label for Shared with Ink, Drafts, and Settings groups at the 14px body size and regular weight, with the shared muted foreground color. Keep existing section spacing and row and control emphasis.
- Use 8px pastel dots derived equally from the core hue and surface: olive for unseen results, yellow for needed input, and red for errors.
- Center attention dots, row spinners, and Ink's trailing indicators in a 32px-wide slot. Keep the slot height intrinsic to preserve row heights and vertical spacing.
- Opening a healthy conversation clears its dot and remembers the viewed update. New results can become unseen again.
- Needs you and error dots persist after viewing until their condition changes. Working states use a neutral spinner.
Accessibility:
- Label the search toggle, field, and New chat action. Expose the toggle's expanded state and controlled panel. Give every indicator a text label and tooltip; preserve keyboard focus on conversation buttons. Give Create group its own labeled button and return focus to it when dismissing the dialog.
#### Only when there is something to see [conversation-indicators-default]
Reveal search to filter chat titles, or select a chat to clear its unseen result. Errors and requests for input retain their dots.
```tsx
```
### SidebarListRow and SidebarListScrollArea
Shared compact navigation rows and overflow fades for Chat and Knowledge.
Import: @/components/sidebar-list
Usage:
- Compose SidebarListHeader above SidebarListScrollArea, keeping the header and footer outside the scrollport. Rows share 14px titles, spacing, translucent hover and selected fills, and keyboard focus. Use asChild for file rows with separate open, selection, and action controls.
- Personal Knowledge offers New file before New canvas in its plus menu. Its illustrated empty state offers Create file as the primary action, followed by Create canvas and Upload files as outline actions, with no privacy footer. At the root, list owned durable canvases above Files under a Canvases section with a New canvas action. Canvas rows are native links to the saved document; title search applies before pagination. Canvases are independent of folders and task links. Keep workflow Knowledge file-only.
- The scroll area measures its own container and content. Show tone-free progressive blurs only at overflowing edges; resetKey returns changed folders or searches to the top. Reuse FileTypeIcon variant=sidebar for compact file glyphs.
- Knowledge uses a 304px sidebar and the shared rounded white main pane. Keep folder breadcrumbs in the sidebar, every supported file type in FileViewerPane on the right, and counts and storage in the footer. Use shared Dropdown actions for creation, sorting, and file actions; reveal the file-type filter with search. Right-click Rename on one file or folder activates its inline contenteditable name field: Enter commits and Escape cancels. Background refreshes preserve open context menus while their items remain available. Compact widths show either the list or preview and restore focus on return.
- Apps has Build, Activity, and Code tabs. Code reuses FilesView with a read-only SOURCE scope and the same FileViewerPane/CodePreview components as Knowledge. Keep its version selector aligned with the app preview; display text files as exact source, including HTML, without running them. Retain folder navigation, search, downloads, overflow handling, and compact focus return.
Accessibility:
- Label navigation and each file action. Expose the selected file on its open button, retain full names in accessible labels, and keep clipped titles within the row. Loading and empty states announce their status.
#### The same navigation rhythm [sidebar-list-files]
Real sidebar rows and file glyphs on the Knowledge frame. Create a sample canvas or file from the plus menu, or switch to loading, empty, and overflowing lists.
```tsx
{files.map(name => setSelected(name)}>
{name})}
```
### RunStatusBadge
The product's shared runtime status labels, built on Badge.
Import: @/components/status-badge
Usage:
- Use the real RunStatus value; do not invent display labels.
- Keep sentence case, Calibre 500, and no letter spacing.
Accessibility:
- Communicate status with text as well as color.
#### Keep people in the loop [run-status-default]
Starting, Working, Needs you, Done, and Needs attention.
```tsx
```
## Overlays
A focused moment, above the work. Translucent surfaces with familiar keyboard behavior.
### CanvasLoading
A quiet opening state shared by canvas retrieval and editor initialization.
Import: @/canvas/loading
Usage:
- Center the small spinner and Opening canvas… label within a positioned workspace. Keep the same neutral surface throughout retrieval and font loading, without a floating card or dashed file-drop border.
- Keep editor chrome and empty-state copy hidden and inert until initialization completes. Preserve drawing-surface dimensions while loading so the first fitted view is correct. Offer retry if initialization fails.
Accessibility:
- Announce opening with role=status, hide the decorative spinner, and respect reduced motion. Release inert before focusing the ready drawing surface.
#### Opening a canvas [canvas-loading-default]
The production opening state, centered in its owning workspace.
```tsx
```
### CanvasDocumentPreview
A live fitted view of an editable native canvas, shared by floating Chat and workflow Activity previews and document viewers.
Import: @/canvas/document-preview
Usage:
- Render the actual document through the native canvas renderer and bundled fonts. Fit all content inside a sized parent; never flatten or approximate editable objects.
- Chat and workflow Activity reuse TaskCanvasPreview from @/components/task-canvas-preview. Fit the live artwork without added padding, matching its aspect ratio between 1:1 and 2:1 and using 16:10 when empty or loading.
- Floating Browser and Canvas previews share their corner radius, shadow, and inset title overlay on hover or keyboard focus. Dock them inside the owning task scrollport with drag and keyboard corner controls. Stack them vertically in the same corner or when corners on the same edge overlap at compact widths.
- Click or press Enter to animate from the preview into only the owning main pane marked with data-task-preview-surface, leaving sidebar and navbar visible. X animates back to the same preview corner. Prepare the editor and its first paint before starting the opening animation clock; keep the preview visible during preparation and use transform/opacity compositing with the same easing in both directions. Keep the lower-right expand icon background-free and hidden until hover or keyboard focus. Keep the conversation mounted, restore focus on close, and preserve the camera across agent revisions.
- Subscribe to pushed canvas revisions and merge independent property edits. Resolve competing writes to the same property in commit order and keep valid group structure. Show retry or reload actions if a save fails. Live cursors and drag previews are transient and use the native renderer.
Accessibility:
- Name the canvas image and open action. Support keyboard positioning, visible focus, Escape, and an accessible Close canvas action. Task viewers receive a read-only view until the creator explicitly enables collaboration.
#### A canvas beside the conversation [canvas-preview-default]
The production renderer and floating preview chrome with populated and empty states. Hover or focus the preview to reveal its title.
```tsx
{document.title}
```
### CanvasTextInput
Native editable canvas text with block weights and mixed inline emphasis.
Import: @/canvas/text-input
Usage:
- The text sidebar sets whole-block font weight, italic and underline. During editing, the floating toolbar applies weights and B/I/U to selected characters; Cmd/Ctrl+B/I/U uses the same formatting and editing undo. Preserve browser selection and IME while typing. Route Cmd/Ctrl+Z, Cmd/Ctrl+Shift+Z and Ctrl+Y through text history even with formatting controls focused. The host can use the input ref and onHistoryChange to connect canvas Undo/Redo to that same history while editing; preserve focus/selection and return to document history after commit. Save acknowledgements must retain document history regardless of JSON object-key order. Disable CSS transitions in authored text so serialization reads final styles under every motion preference.
- Store only supported styles in sorted textStyles ranges with absolute UTF-16 offsets; retain verbatim text and block defaults. The shared renderer handles wrapping, alignment, clipping, previews and PNG export with the same bundled fonts. Keep the edit outline and a transparent background so text retains its contrast against the artwork beneath it. Clamp the toolbar to the drawing surface. Hide the compact settings panel during text editing so it cannot cover the toolbar or authored text.
Accessibility:
- Name the multiline text box, weight picker and formatting group. Expose toggles with aria-pressed and a Mixed weight when selection spans weights. Preserve keyboard focus, selection across popup interaction, Escape cancellation, and Cmd/Ctrl+Enter commit.
#### Emphasis inside one block [canvas-text-default]
Edit the sample, select words, and apply weights, bold, italic or underline. Changes remain local to this sample.
```tsx
```
### CanvasSaveState
A visible save label in a stable slot beside canvas actions.
Import: @/components/canvas-save-state
Usage:
- Place first in the right-hand canvas action group, before sharing or download. Show Saved as text and Saving… with a spinner in the same 88px slot at every viewport width. Keep the editable title fitted to its text in the separate left-hand control.
- Keep opening, editing, view-only, disconnected, and failed-save states explicit. Put browser-local persistence and live connection details in the accessible description and tooltip.
Accessibility:
- Announce status changes through role=status, hide the decorative spinner, and respect reduced motion. Keep the label visible on compact screens.
#### Saving without movement [canvas-save-state-default]
Switch states while the sharing and download controls stay in place.
```tsx
```
### Remote canvas presence
Smooth remote cursors and editable gesture previews with an identity label that stays readable over authored artwork.
Import: @/canvas/presence
Usage:
- Use CanvasPresenceMotion to interpolate received cursor and layer geometry at display refresh rate. Keep network presence bounded; rendering does not wait for the next packet. Hover movement publishes without a pressed button, and idle heartbeats retain a stationary pointer.
- Render identity with drawCanvasPeerCursor: a black cursor with a white outline and white name on a black badge with 4px corners. Keep the cursor and label at constant screen size when zooming. Clamp the name badge to the owning drawing surface and truncate long names. These fixed black/white paints are deliberate contrast colors, independent of canvas paint and the olive selection accent.
- Retain the final interpolated gesture until canonical content arrives, then remove the transient preview without a jump. Cancellation clears previews. Presence never changes authored content, undo or export.
Accessibility:
- Respect reduced motion by displaying the latest received position immediately. Use a readable 13px label with high contrast over light, dark and patterned artwork; avoid live announcements for every pointer sample.
#### Follow a collaborator [canvas-presence-default]
The production renderer and interpolator; toggle motion or a dark background. The moving sample receives ten updates per second.
```tsx
drawCanvasPeerCursor(context, position, name, width, height)
```
### CanvasCollaborationButton
The canvas people button opens organization sharing and read-only link settings.
Import: @/components/canvas-collaboration-control
Usage:
- Place beside the canvas download/reload actions. CanvasCollaborationControl opens the production CanvasSharingDialog and loads current access, active organization members and teams.
- Offer Editor and Viewer roles, grant removal, the whole organization, Copy editor link and the linked-chat editing checkbox. Keep grants independent of tasks and portable content; only the creator manages them.
- Open the shared Markdown link dialog from Read-only link. It supports Anyone with link and Specific people and lets the owner copy URLs for the canvas and its presentation. Both use the same access and revocation.
- Public canvases use the editor drawing surface with mouse, trackpad, touch and keyboard navigation. Keep the artwork clear of editing controls and reuse the editor’s Present action when the canvas has slides.
- Keep the collaboration dialog compact. Reserve no blank space for success messages; show feedback only when present.
Accessibility:
- Label the people button Share canvas and expose dialog semantics. Retain focus trapping, Escape dismissal and focus return; announce loading, saved access and errors. Scroll the access list within the dialog on compact screens.
#### Share a canvas [canvas-collaboration-default]
Open the production sharing dialog with fictional people and teams, then create or revoke a read-only link.
```tsx
```
### Dialog
The shared Radix dialog, with a 22px title and automatic close action.
Import: @/components/ui/dialog
Usage:
- Use for focused transient work. Put DialogTitle inside DialogHeader.
- Use the shared material and overlay rather than recreating them.
- DialogContent variant=lightbox keeps the blurred backdrop, darkens it, and omits the panel material for all file previews.
- DialogTitle defaults to the 22px context size; use size=component for a compact 16px file preview filename.
Accessibility:
- Include DialogTitle and DialogDescription.
- Keep focus trapping, Escape dismissal, and return focus intact.
#### Make one small change [dialog-default]
Rename a local sample workflow. Save and Cancel remain fully interactive.
```tsx
```
### Image preview
Images float on a dark blurred backdrop with a compact white filename and floating controls.
Import: @/components/file-viewer
Usage:
- Use FileViewer for image dialogs. Images initially fit both available dimensions, including margins and controls, without enlarging small originals.
- Zoom is relative to the fitted image; Reset zoom returns to the complete image. Resizing refits it to the owning viewport.
- ConversationAttachmentGallery shares images across a chat or task. Pass imageNavigation to FileViewer for previous/next controls and a position counter; switching images resets zoom and skips non-image attachments.
Accessibility:
- Keep the filename, image alternative text, download action, keyboard focus, Escape dismissal, and return focus.
- Keep controls visible while zoomed images scroll. Long filenames truncate without pushing actions offscreen.
- Support Left/Right arrow keys while the gallery is open, disable controls at the ends, and keep navigation available during loading and errors. Preserve focus when switching images and return it to the original attachment on close.
#### See the whole image [image-lightbox-default]
Compare portrait, landscape, small, long-name, loading, unavailable, and empty images, or browse them with the thread gallery's buttons and arrow keys.
```tsx
setSource(null)} imageNavigation={{ index, count: images.length, onPrevious, onNext }} />
```
### File previews
Every file dialog shares the image lightbox's dark blurred backdrop, compact filename, and quiet controls.
Import: @/components/file-viewer
Usage:
- Use FileViewer for all file preview dialogs and saved task artifact links. PDF pages and slides float directly on the backdrop; text, spreadsheets, HTML, and email retain readable document surfaces inside it.
- PDF pages fit the available viewport on opening and resize. Zoom is relative to that fit; Reset zoom restores it. Page and zoom controls stay outside the scrolling content.
- FileViewerPane keeps its embedded light appearance. Preserve save, share, download, unsaved-change guards, and format-specific controls.
- Set FileViewerSource.displayMode to source to inspect a text file in the shared code viewer, preserving its original formatting and bypassing rendered HTML or Markdown previews. Omit saveText for read-only source versions.
- Canvas snapshots use the native canvas renderer and bundled fonts. Show a fitted preview with Open editable copy, which opens an independent browser-local document. Live canvas links open /canvas/:canvasId and save the original through revision-checked API writes.
Accessibility:
- Keep filenames and actions visible at compact widths, with truncated long names, labeled controls, visible keyboard focus, Escape dismissal, and return focus.
- Loading, empty files, and unavailable previews remain readable against the backdrop. File content retains its own foreground color.
- Left/Right arrow keys move between PDF pages while focus is in the viewer, including its header and controls. Stop at the first and last page; leave modified shortcuts, text inputs, and nested dialogs alone.
#### One place for every file [file-lightbox-default]
Compare canvas, PDF, Word, PowerPoint, spreadsheet, Markdown, code, HTML, and email previews, including loading, empty, unavailable, and long-name states. The pane example uses the same production viewer.
```tsx
setSource(null)} />
```
## Materials
A shared foundation for elevation. Glass is a functional floating layer, used with restraint.
### HalftoneCanvas
Live content rendered as four overlapping ink screens on textured paper.
Import: @/components/halftone-canvas
Usage:
- Use as a decorative material; keep controls and readable copy in HTML above it. Keep the app navbar free of halftone decoration.
- Set dimensions through style or a sized parent with height: 100%. Dot spacing stays constant in CSS pixels.
- Reuse one shared GPU print pass per page, copying finished pixels into independent 2D output canvases. Mounting cards and switching sections must not allocate new WebGL contexts or force context loss. Keep card prints at stack level zero with readable content above them so WebKit also paints the 2D output.
- Use the built-in aurora, a draw(context, frame) callback, or an image/video/canvas source. Tune ink, dotSize, grain, bleed, registration, paper, and seed through options.
- The /halftone playground demonstrates print presets, palettes, and local image input. See docs/halftone-canvas.md for integration.
Accessibility:
- Decorative by default. Supply label only for meaningful visual content, and retain readable text in the DOM.
- Provide a pause control for continuous motion. Reduced motion freezes the composition automatically; offscreen and hidden canvases stop rendering.
- Canvas 2D provides a lower-frequency fallback when WebGL is unavailable. Use onError to handle unsupported rendering or a source without CORS access.
#### Light, in print [halftone-default]
A faint, moving aurora with stationary paper grain and a pause control.
```tsx
```
### HalftoneBackground
A printed aurora for the material reference and Meet Ink's introductory illustration.
Import: @/components/halftone-background
Usage:
- Place as a direct child of a positioned, isolated owning container, with readable HTML and glass cards above it. Clip it at the pane boundary rather than each card.
- Reuse the exact /halftone Iris aurora with its multiplying pigments and rich, muddy overprint. The default is a still frame; animate enables its subtle gradient motion with a pause/resume control and automatic reduced-motion support. Paper grain stays fixed. The default subtle variant uses 36% ink and 46% canvas opacity on white paper; variant=illustration uses 80% ink at full opacity for Meet Ink. There is no opaque colored backing or per-card print.
- Use in /halftone, the material reference, and the Meet Ink setup dialog's right-hand card illustration. Meet Ink uses one still print anchored to the entire dialog, filling the right side and fading toward the clear setup column behind unmasked cards and their shadows. Ordinary Chat and Workflows canvases remain neutral without halftone rendering.
- The reference background fades through its owning container. Keep production workflow overviews, inboxes, and sidebars neutral, and expanded charts opaque white.
Accessibility:
- Decoration is hidden from assistive technology, ignores pointer events, and disappears silently if rendering fails. Animated backgrounds expose a labeled pause/resume button, hidden under reduced motion when the aurora freezes. Keep text contrast and existing focus behavior.
#### Glass over printed paper [halftone-background-default]
One shared print fades beneath the workflow bento group; the glass cards contain no halftone canvases.
```tsx
}>Success rate
98.6%
```
### ContourRelief
A white-on-white contour engraving with related patterns and a slow, subtle morph inside workflow overview cards.
Import: @/components/ui/contour-relief
Usage:
- Place as a direct child of a positioned, isolated, clipped card, with readable content and charts above it. The absolute layer covers the whole card, including its padding, and never changes layout.
- Use the default corner variant for workflow overview metrics. The featured variant spans a taller composition. Choose basin, ridge, or ripple through pattern. A stable seed gives neighboring cards subtle variation. spacing and strength tune line density and contrast.
- ResizeObserver measures the layer in CSS pixels. Geometry is regenerated at the owning card's actual width and height, preserving line spacing and stroke weight across tall, compact, and wide cards.
- Use the shared neutral contour-shadow and contour-highlight tokens. The pattern keeps its neutral colors on hover, focus, loading, and disabled states. Preserve the owning card's existing interaction feedback and focus ring.
- Production cards compose the relief over GlassSurface's optional ink, olive, warm, or ochre tint: warm ink, yellow olive, umber, and ochre. All card washes have warm undertones at a restrained opacity over neutral white glass. The translucent gradient wash is separate from the neutral engraving and never changes color with interaction or motion.
- Opt into animated for a slow shape morph with no rotation or content movement. duration defaults to 64 seconds plus a small seeded offset; amplitude defaults to 2.5 CSS pixels and is bounded to 30% of line spacing. One native SVG path morph supplies both engraved edges, without React updates per frame.
- Keep the surrounding page canvas and expanded inspection charts free of relief; retain chart colors and foreground contrast.
Accessibility:
- Entirely decorative: hidden from assistive technology, unfocusable, and pointer-transparent. All meaningful text, data, and interactions remain in the owning card.
- Reduced motion freezes the relief. Intersection and page visibility stop animation for offscreen cards and hidden tabs. The component is static by default; the specimen exposes Pause motion. No canvas rendering or hover color change; cards remain useful when decoration is absent.
#### Engraved into the card [contour-relief-default]
Explore Basin, Ridge, and Ripple in tall, compact, and wide cards, with white glass or a thin Warm ink, Olive, Umber, or Ochre wash. Tune motion amount, cycle time, and line spacing, or pause the morph.
```tsx
}>Success rate
98.6%
```
### SourceIcon
The shared dimensional icon tile for workflow, capability, and trigger sidebars.
Import: @/components/ui/source-icon
Usage:
- Use optional tone=olive, warm, ink, or ochre to choose a shared glass-tint token explicitly for decorative compositions. Omit tone for stable seeded colors; bundled service artwork retains its neutral base.
- Use the same 32px rounded tile, inset rim lighting, and cast shadows for workflow initials and capability glyphs. Pass a stable seed for its olive, terracotta, sand, or ochre color, using the shared glass-tint tokens, and keep sidebar canvases neutral.
- Recognized MCP servers and Apps & services pass bundled square artwork as imageSrc, resolved by capabilitySourceImage from @/lib/capability-icons. Preserve service colors on a neutral base and the same 32px geometry. Catalog keys resolve across connector kinds; saved MCP servers also match exact names. Utilities, unknown services, and failed images retain the seeded child glyph. Never fetch logos from an external service at runtime.
- Capability picker section labels use -0.01em tracking. Saved MCP servers remain visible before tools are discovered; organization administrators can add and connect them from the picker.
- Capability pickers use 32px/13px compact search and action controls, 14px body names, 13px supporting descriptions, 12px metadata and section labels, 16px source headings, and the shared 22px dialog title. Keep source tiles at 32px and align search and footer content with the 20px dialog inset.
- Ways to start uses the same neutral sidebar, 32px source tiles, typography, 880px dialog width, 232px desktop sidebar, and 20px inset as the capability picker. All four trigger panels use 32px/13px controls and compact run-instruction textareas; switches keep their standard geometry. Keep section labels at -0.01em tracking and the title free of a visible subtitle. Empty schedules use this icon material and negative space.
Accessibility:
- Hide decorative capability glyphs from assistive technology; retain workflow health labels when a tile contains a status badge.
#### A shared source material [source-icon-default]
Initials and glyphs use the same lighting and geometry.
```tsx
ST
```
#### Recognizable services [source-icon-services]
MCP servers and Apps & services share local square artwork in the same tile size. Utilities retain their existing glyphs.
```tsx
const source = { key: "gmail", name: "Gmail", kind: "LOCAL" as const };
```
### Surface
Shared rim lighting and cast shadows for raised, glass, and dialog surfaces.
Import: @/components/ui/surface
Usage:
- Surface owns material, not positioning, radius, spacing, or clipping.
Accessibility:
- Preserve a readable opaque fallback.
#### A simple foundation [surface-default]
A production raised surface with explicit spacing and geometry.
```tsx
Customer renewal
```
### BentoCard
A composed card using the shared Surface foundation.
Import: @/components/ui/bento-card
Usage:
- Use for local grouping; avoid framing every piece of content.
- Compose BentoCardHeader from the same import for workflow overview cards. It groups a 28px circular icon and 13px/500 foreground label at the top left with an 8px gap. Pass actionable for an enabled parent button or link to show a decorative up-right arrow at the far right. Keep the full card as the action target and allow long labels to wrap without displacing the arrow. Use four equal columns, switching to a two-by-two grid through 800px of overview container width. All four cards are equal in size, with a 152px minimum height and a 16px content inset (12px through 380px). Expanded inspection charts retain at least 360px of height.
- Use BentoIcon from @/components/ui/bento-icon for filled workflow metric glyphs. It shares GradientIcon with navigation, using the owning card’s --bento-accent and --glass-tint for the same highlighted diagonal gradient and light internal details. Preserve the 16px glyphs, circular badges, spacing, and interaction states. Keep icon colors constant on hover and focus.
- Use foreground text at Calibre 500 for small metric headings in overview and Quality cards. Keep descriptions, counts beside titles, and other supporting context muted at weight 400. Preserve existing type sizes and geometry.
- Workflow overview metrics compose GlassSurface in the white main pane. Keep the main pane free of halftone canvases and expanded charts on opaque white surfaces.
- Workflow overview cards compose WorkflowMetricTile, WorkflowMetricValue, and WorkflowMetricDelta from @/components/workflow-metric-tile. Use one label and a bottom-anchored stack: the 12px supporting line above the 24–25.5px/400 Inter value with -0.035em tracking. Each value is a continuous text run; currency, percent, time units, and run labels share the numerals’ size, baseline, weight, and color. Anchor the value to the lower-left content inset with the same bottom padding across all four cards. Activity’s trend is an absolute background at the owning card’s bottom-right edge, never a row below the value. Deltas use plain text and arrows without filled pills or repeated comparison copy. Omit missing comparisons; show No change for zero. Do not show explanatory hover or focus tooltips. Keep calculation details in accessible descriptions and expanded charts; static metrics do not add a keyboard tab stop. Show concise empty or unavailable text. Activity retains the failed count and a nonzero running count in its supporting line.
- Compose ContourRelief inside all four workflow overview bentos. Its neutral engraving adapts to the whole card and stays behind text and chart data. Production cards opt into a very slow morph and keep colors neutral on hover and focus.
Accessibility:
- Keep metrics labeled with meaningful text.
#### A value anchored to its card [bento-default]
Four equal compact cards share the same value inset, with brighter accents and matching chart hues. They form one row above 800px of container width and two rows below. Try local loading, empty, unavailable, comparison, and large-value states.
```tsx
}
detail="138 of 140 finished runs succeeded."
meta={} />
} reliefSeed={1}
detail="Total spend for the selected period." />
} reliefSeed={2}
detail="Median successful run duration, excluding queue time."
visual={} />
} reliefSeed={3}
detail="Workflow run activity for the selected period." supporting="8 failed · 2 running" />
```
### GlassSurface
The floating material: translucent fill, blur, highlights, and a fallback.
Import: @/components/ui/glass-surface
Usage:
- Use for functional floating surfaces, including composers and workflow overview bentos. Chat and Workflows retain neutral backgrounds without halftone canvases. Use asChild to apply the material directly to a button or link while preserving its semantics.
- Use optional tint=ink, olive, warm, or ochre for workflow overview bentos. Warm ink, yellow olive, umber, and ochre have visibly distinct warm undertones at the same restrained opacity. Retain a neutral white glass base and vary light direction and focal corner by tone. Workflow metrics use olive, terracotta, sand, and golden ochre workflow-accent tokens through --bento-accent, with a 12% radial and 4–16% directional wash. Workflow metric icons and compact and expanded charts share the card’s workflow-chart-accent hue. Use opacity or lightness for secondary series. Keep tint color and opacity stable on hover and focus. Keep other glass surfaces and expanded charts untinted.
Accessibility:
- Maintain legibility with and without backdrop-filter.
#### Clarity above the canvas [glass-default]
The production material over Incline's existing brand artwork.
```tsx
A little clarity.
```
### AssistantBackdrop
The shared graded blur behind workflow training and canvas conversations, without a panel surface.
Import: @/components/assistant-backdrop
Usage:
- Place inside the positioned region owned by the assistant. The blur extends upward by fadeHeight into clear context, then holds a readable plateau beneath the transcript and composer.
- Use the default brand tone for workflow training and neutral for canvas. Keep the transcript transparent; avoid a perimeter, card shadow or flat white container. Measure the owning region when input or history grows, and let its canvas or pane clip the outer edges.
Accessibility:
- The backdrop is decorative and never intercepts pointer input. Keep text and controls in a separate foreground layer, retain contrast, and preserve keyboard access to the underlying workspace.
#### A conversation above the work [assistant-backdrop-default]
The production backdrop over fictional canvas content, with the same shared assistant text.
```tsx
```
## Data
Dense information, clearly arranged. Search, sort, and inspect without losing the thread.
### DataView
Presentable inline charts and tables, sharing one typed dataset and independent view specifications.
Import: @/components/data-artifact
Usage:
- Use register_dataset for JSON/CSV files, then show_chart or show_table with its datasetId and column names. Values move directly from saved files into the renderer.
- Use Calibre headings, Inter numbers, olive with steel/terracotta/ochre supporting series, faint dashed grids and generous white space. Keep ECharts configuration behind the shared view schema.
- Preserve source order, null gaps and exact table values. Do transformations explicitly before registration. Tables sort locally and paginate without dropping rows.
Accessibility:
- Label charts and provide the keyboard-accessible Data tab with every exact value.
- Keep horizontal table overflow contained and focusable; label sort, pagination and CSV download controls. Respect reduced motion.
#### A hundred possibilities [data-view-default]
Switch one dataset between a line, bar, scatter plot or table; inspect values, sort, paginate and download.
```tsx
```
#### The most active users [data-view-ranked]
Horizontal bars with named categories; the Data tab retains every field and contains wide table overflow.
```tsx
```
### DataList
A shared table composition with explicit column geometry.
Import: @/components/ui/data-list
Usage:
- Compose DataListHeader, DataListBody, and DataListRow.
- Use hover:bg-hover-surface for row hover and bg-active-surface for selection. These shared tokens are translucent black at 3.5% and 5.5%, preserving the underlying surface hue.
- Keep wide data scrollable within its owning region.
Accessibility:
- Keep columnheader, cell, and sorting semantics accurate.
- Label search and filter controls; keep the overflow region keyboard reachable.
#### The work, at a glance [data-list-default]
Filter the sample workflows, sort Runs, or search for an empty result.
```tsx
```
### RuntimeHistogram
Successful run durations as a quiet card histogram or an inspectable distribution.
Import: @/components/workflow-runtime-chart
Usage:
- Use the median of successful root runs from actual start to finish, excluding queue time, incomplete timings, and evaluation or delegated child runs.
- Histogram bins cover the full selected period and workflow scope, including slow outliers. Keep the sample count in the accessible description and expanded view; use a dash when no timing data exists.
- Place the compact histogram inside a positioned, clipped card; anchor it to the card's bottom edge and fade it upward.
Accessibility:
- The compact histogram is decorative. Label its card action and keep the duration in text and the sample count in the accessible description and expanded view.
- The detailed histogram supports pointer inspection, arrow keys, Home, and End, with duration ranges and counts announced. Offer RuntimeHistogramTable for exact counts.
#### How long runs take [runtime-histogram-default]
Inspect duration ranges with a pointer or keyboard. The dashed line marks the median.
```tsx
```
#### A distribution in the background [runtime-histogram-compact]
Bars rise from the owning card's bottom edge and fade beneath the metric.
```tsx
} reliefSeed={2}
detail="Median of 145 successful runs, excluding queue time. Compared with the previous 30 days."
visual={}
meta={} />
```
## Conversations
Shared chat bubbles, assistant replies, and quiet thinking blocks for Chat, workflow builders, and app conversations.
### Chat bubbles
The production ConversationUserMessage bubble, paired with assistant prose and local message actions.
Import: @/components/conversation-user-message
Usage:
- Use ConversationUserMessage for sent user text and PendingConversationMessage from @/components/pending-conversation-message for optimistic submissions. Both share the same geometry on delivery.
- Pass workflowName to both message components for a resolved workflow mention. Reuse WorkflowMentionPill from @/components/workflow-mention-pill for the composer's olive pill; sent mentions omit editing controls. Keep mention-only messages visible, resolve saved names from the authorized invocation snapshot, and use Workflow unavailable when access is lost.
- User bubbles align right, occupy at most 78% of the column, and use Surface with rounded-3xl, subtle fill, a quiet border, and px-4 py-3. Preserve line breaks and wrap long unbroken content.
- Assistant replies remain left-aligned MarkdownMessage prose from @/components/markdown-message. User and assistant text use type-body at 14px; progress changes tone to muted, not size. Identify progress from message metadata with isProgressMessage from @/lib/chat.
- Chat, workflow Build, and workflow Activity reuse ConversationAssistantMessage from @/components/conversation-assistant-message for assistant prose, streamed text animation, attachments, and context-menu actions. Pass parsed workflow reply text while keeping proposed changes in their review card. Activity preserves its workflow attachment controls.
- Workflow Activity keeps user-visible progress in both normal and X-ray views. Show model.intermediate, task.progress, and legacy system.progress as muted Progress update rows without an Output badge; retain normal emphasis for final results. Never project internal assistant messages into visible rows.
- Use ConversationMessageActions from @/components/conversation-message-actions for reply actions. Copy, optional Share, and the message timestamp live in the context menu instead of a permanent action row.
Accessibility:
- Preserve the Your message and Sending message group labels and visible keyboard focus on assistant message actions.
- Support right-click, touch long-press, Context Menu, and Shift+F10. Keep menu arrow keys, Escape dismissal, focus return, and copy-result announcements.
- Keep text selectable, preserve multiline content, and constrain long links and attachments to the conversation column at compact widths.
#### Messages in conversation [chat-bubbles-default]
A user bubble, muted progress, and a final reply. Open the final reply’s context menu to try Copy and the local Share action.
```tsx
// Progress metadata: { source: "model.intermediate" }; fictional local ConversationEntry snapshots.
```
#### Sending to sent [chat-bubbles-delivery]
Toggle delivery state to compare the shared bubble shape, text size, padding, and alignment.
```tsx
{pending
?
: }
```
#### Long links and line breaks [chat-bubbles-overflow]
The real user bubble preserves multiline text and wraps an unbroken URL within its maximum width.
```tsx
Long links wrap inside the bubble. Multiline messages preserve their line breaks.
```
#### A workflow mention after sending [chat-bubbles-workflow-mention]
Compare sending and saved workflow pills with message text, a mention alone, a long workflow name, or lost access.
```tsx
{pending
?
: }
```
### Human input request
A shared answer card for workflow, task, and chat clarification requests.
Import: @/components/human-input-card
Usage:
- Reuse HumanInputCard for selectable answers and freeform responses. The request container, answer options, and Textarea share rounded-input-surface, backed by --input-surface-radius (18px). Preserve their existing spacing, text emphasis, and selection colors.
- Keep asynchronous action requests, acting, view-only, submitting, and error states in the shared component. Public samples use fictional reviews and local-only submission.
Accessibility:
- Keep the fieldset legend, native radio controls, textarea label, and visible keyboard focus. Long answers and links wrap within the card at compact widths.
- Retain disabled controls while acting or submitting, aria-busy during submission, and the error alert. View-only requests hide the send action.
#### Choose a direction [human-input-default]
Select an answer or write your own. Compare freeform, acting, view-only, asynchronous action, and long-content states. Send a local answer in Sending or Submission error to inspect those states; switching examples resets the card.
```tsx
// Fictional local review: @/style-guide/human-input-specimen.
```
### Email approval history
The original reviewed email remains visible after approval or a change of course, with the saved correction attached to its lower-right corner.
Import: @/components/resolved-approval-card
Usage:
- Use ResolvedApprovalCard for completed email approvals in the conversation timeline. Keep the exact reviewed recipients, subject, body, and request arguments; do not replace an earlier proposal with the revised email.
- Show the decision as Approved, Changed course, Declined, or Canceled. Approved records authorization, not successful execution; preserve a separate Action failed state when the approved tool later fails.
- Attach the saved course-correction message through ConversationUserMessage at the preview's lower-right corner. Keep it in document flow so multiline text and long links wrap and reserve their own height at compact widths. If the original message entry is available, pass it as correction so its actions and attachments remain available.
- Keep completed approvals in chronological order and show a correction once, attached to its reviewed proposal. Preserve the View reviewed request disclosure for exact inspection.
- Public specimens use fictional local snapshots and never load private email or call the API.
Accessibility:
- Expose the Reviewed email proposal article and Course correction group labels. Use visible decision text alongside status colors and decorative icons.
- Keep email text selectable, preserve line breaks, and wrap long recipients, subjects, and correction links within the conversation column. The native request disclosure must retain keyboard access and visible focus.
#### A decision stays with its proposal [approval-history-default]
Compare a changed proposal with the accepted revision. Select individual decisions, a long correction, or a failed action after approval; all states use local fictional data.
```tsx
// Optional correction={}.
// Fictional snapshots: @/style-guide/approval-history-specimen.
```
### Task performance
Trace-derived elapsed durations open an interactive performance timeline floating at the bottom of the task pane.
Import: @/components/task-flame-chart
Usage:
- ElapsedTime accepts onInspect to make an elapsed duration a keyboard-accessible timing link. Preserve the existing size, weight, and layout.
- Use TaskFlameChart in the task pane and FlameChart for local snapshots. Load full traces only while the chart is open; task sync retains compact call timing projections.
- Anchor the floating dock and its ProgressiveBlurBackdrop to the owning pane. Use a restrained warm tint, rounded pastel spans, and the shared surface material. Hide the follow-up composer while timing is open, retaining its draft.
- Clicking a call duration focuses its exact trace spans, including resumed segments. Keep the section breadcrumb beside the Task performance title; selecting the title resets the view. The header shows focused duration / total duration and the percentage of task time. Show elapsed widths, overlaps, waiting gaps, incomplete observations, and unavailable historical timing honestly.
- Use muted blue-green for model work, muted olive for tools, lavender for sandbox execution, sand for platform work, and neutral hatching for waits. Keep model and tool fills at the same tint opacity, with matching legend keys. Model cost highlights use the same blue-green hue. Deep olive outlines mark selection; failures retain a separate status indicator.
- The task cost opens the timeline in cost view; its header cost toggles that view. Highlight only the model-call bars in the shared model color; provider, stream, and all other detail rows remain grey without changing time widths. Show prices once on the model-call bars and the full call price when inspecting a detail. Join receipts by exact run and model-call IDs, keep missing prices unknown, and flag receipts with missing timing. Do not invent continuous cost-per-millisecond estimates.
Accessibility:
- Give timing links a contextual accessible name that includes the elapsed value. Restore focus to the trigger after closing; Escape closes the chart.
- Arrow keys select graph operations, Enter zooms, Up zooms out, and Home/End select the first/last operation. Preserve visible focus and text descriptions alongside color.
- Keep axis labels, cost toggle, and close action visible at compact widths. The cost toggle uses aria-pressed; call prices are included in operation descriptions. The plot scrolls independently; empty, loading, retry, and partial states remain inspectable.
#### Time in context [flame-chart-default]
Explore a fictional recorded trace, including its cost view, then try loading, historical, and unavailable states. Toggle the header cost to highlight model legs, select a span to zoom, and select the Task performance title to reset.
```tsx
// Fictional local snapshot; no API requests.
```
### Thinking blocks
The production RunDetails disclosure for current activity, elapsed thinking time, and inspectable execution steps.
Import: @/components/run-details
Usage:
- Use RunDetails rather than rebuilding the thinking label or execution list. Keep the collapsed summary quiet, in supporting text, without framing borders or a separate card.
- Let latestRunActivity and runCompletionLabel choose the live activity and completed duration labels. Keep activity groups interleaved chronologically with messages and retain stable group identities as results stream.
- Workflow Build reuses RunConversationTimeline from Chat, including live activity labels and inspectable steps. Collapse earlier messages together with their activity, retain proposals and approvals, and pause automatic scrolling when the reader inspects execution details.
- Workflow Activity with X-ray off reuses RunDetails between visible timeline steps. Group internal model and tool calls behind the shared disclosure while preserving inputs, messages, workflow calls, and actionable reviews as numbered rows. Use latestRunActivity for live labels and retain expandable completed history and stable group identities. X-ray and workflow improvement retain full action timelines.
- Display existing tool catalog names and resolved workflow names. Fall back to readable identifiers when a name is unavailable. Use regular-weight, muted text for all RunDetails step labels and weight 500 for full timeline titles. Interactive step labels and model links use foreground on hover and keyboard focus.
- Web search previews up to three distinct source domains with saved favicons or initials, followed by a muted count of additional domains. Expand to show the query in curly quotes and linked results with domains and available excerpts. Align result icons to the first title line and use the neutral hover-surface fill with foreground titles on hover. Tool discovery expands to show the request and matched tools or capability groups. Show readable loading, empty, and failure states for both previews.
- Register recognized tool results in tool-output. Use ToolResultPanel, ToolResultRow, ToolResultFacts, and ToolResultMessage for compact result lists, receipts, and statuses. Canvas and task-file results link to the existing document and file views and preserve saved task context. Keep additional items and exact call details behind disclosures. Reuse existing image and data previews for visual outputs.
- RunDetails and full X-ray/workflow-improvement timelines fold a successful model call that dispatched visible tools into the resulting tool actions. Lead with each tool's name, own status, and own duration; retain a Model NN inspection link to the originating model call.
- Workflow Activity folds successful model calls that produced an explicitly linked visible assistant message into that message's header with a Model NN inspection link. Show the message text once. Failed or running model calls and calls without a matched tool or visible message remain separate rows.
- Keep the Output pill outline transparent to match User, preserving its existing color, fill, size, and text emphasis.
- In full Activity, select a tool title to inspect its arguments and result. Titles that open child workflow activity keep navigation and offer Inspect in metadata alongside the model Inspect pattern. Input rows place Inspect in their header. Use descriptive tooltips and let metadata wrap when space requires it.
- Keep timeline title rows at a consistent 28px minimum height and vertically center each step number and icon against that header. Omit routine Succeeded labels for successful tool and model calls in the timeline and tool inspector; retain explicit running, failure, warning, and error states.
- Chat and Workflow Activity use TaskInspectorLayout with model call inspectors in presentation=pane. Workflow Activity also uses this presentation for tool and input inspectors. Float the ResourcePreviewPane inspector over the right side of the owning main pane, with a neutral backdrop bounded by that pane. Preserve the timeline's original width, metadata wrapping, and scroll position. Close, Escape, and the backdrop dismiss it and return focus to the inspection action.
- Preserve workflow and review steps and exact model input/output and tool arguments, result, error, and timing. Grouping changes presentation, never the original execution records.
- Model input and output default to Readable: gray sans serif headings above full, unstyled IBM Plex Mono content. Preserve message order and line breaks. Included tools use workflow-style pills that open their captured descriptions and definitions. Output shows assistant text and tool calls, with provider metadata and usage in Response details. Preserve Structured and Raw JSON modes and copy the complete original payload. Show image references explicitly and retain request metadata in a disclosure; never infer tool permissions from a name.
- Production uses the default API detail source. Public reference samples supply local getToolCall and getModelCall functions through detailSource; never fetch real run data in a specimen.
Accessibility:
- Keep aria-expanded, aria-controls, and the hidden/inert collapsed content. Enter and Space toggle the summary without leaving hidden steps in the tab order.
- Announce changing activity politely, preserve focus rings and dialog focus return, and retain reduced-motion behavior.
- Show failures with words as well as status color. Truncate long activity names with a full-text title and stack summary metadata at compact widths.
#### From thinking to details [thinking-blocks-default]
Expand the completed 23-second block and inspect the fictional tool actions, their Model NN links, and the separate response model call. Details load locally.
```tsx
const run = useMemo(() => conversationSampleRun("SUCCEEDED"), []);
const detailSource = useMemo(() => conversationSampleDetails(run), [run]);
// Fixtures: @/style-guide/conversation-fixtures. Production omits detailSource.
```
#### Working, waiting, and stopped [thinking-blocks-states]
Choose completed, thinking, queued with no steps, or failed. Inspect text, images and long content, empty context, or an unavailable input capture. Each is a local snapshot using the production disclosure and inspector.
```tsx
const [status, setStatus] = useState("SUCCEEDED");
const run = useMemo(() => conversationSampleRun(status), [status]);
const detailSource = useMemo(() => conversationSampleDetails(run), [run]);
setStatus(event.target.value as RunStatus)}>
```
#### Web search and tool discovery [thinking-blocks-search]
Expand the execution details to see search sources and discovered tools. Try a search with results, an empty response, a search in progress, or a failure.
```tsx
const run = useMemo(() => searchToolSampleRun(state), [state]);
const detailSource = useMemo(() => conversationSampleDetails(run), [run]);
```
#### Canvas and task files [thinking-blocks-native-tools]
Expand the Canvas list, created canvas, or saved file to see its preview. Exact call details are available in each step.
```tsx
const run = useMemo(nativeToolSampleRun, []);
const detailSource = useMemo(() => conversationSampleDetails(run), [run]);
```
## Patterns
Primitives working together. Production compositions, with their behavior intact.
### MasterDetailLayout
Shared workflow, app, and Activity split view with independently scrolling panes.
Import: @/components/master-detail-layout
Usage:
- Compose an aside list and a main.task-detail-surface to share the pane geometry, rounding, and shadow.
- Keep workflow Activity and Inbox row wrappers transparent over the off-white frame and use translucent hover and selection fills. Their sticky toolbars use a tone-free ProgressiveBlurBackdrop without a white gradient.
- Keep the workflows sidebar heading and filters outside its row scrollport. Use the solid off-white frame color on the sticky column header. Start the separate top edge blur below the measured column header. Match Chat's tone-free blur at both row edges only while content extends beyond them. Recheck overflow when the content or pane resizes and include the header and blur in keyboard scroll padding.
- Use compact olive activity bars beside aligned run counts, with a shared scale across workflows, gaps for zero counts, and hourly bins for 72 hours or daily bins for longer ranges. Right-align spend, match Activity's faint row dividers, and use a softer cast shadow on source icons in both the workflow and app sidebars.
- MasterDetailLayout composes SidebarLayout, the same direct aside/main navigation contract used by Chat and Settings. App surface/view navigation and Back/Forward fade live content out over 90ms, mount the destination at zero opacity, resize empty pane boundaries over 300ms, then fade settled content in over 160ms. Keep phases sequential, preserve each child’s underlying opacity, and never scale content; item selection and streaming remain local. Reduced motion and browsers without Web Animations navigate immediately.
- Resize a single measured empty DOM surface while the real destination pane stays hidden. Keep the navbar live and anchored. Never take browser View Transition snapshots or enumerate document animations; WebKit can crash or leave a blank page.
- Set activePane to list or detail. At widths through 640px, show one pane and provide a back action.
- Rounded main panes start below the constant --app-navbar-height. Use detailTopInset=tabs for workflow Activity and Inbox to extend the split detail surface above local tabs while stopping below the navbar. Preserve content spacing inside its scroller; compact panes keep their normal position.
- Improve future runs keeps the Activity pane at its full height throughout resource and history loading. During evidence, resource, and history loading, immediately replace the header sparkle with a spinner as the sole loading indicator and preserve the circular action's footprint. Mark it busy, disable repeat clicks, hide its tooltip, and restore it on failure or cancellation; reduced motion keeps the loading icon still. Show resource setup errors and a retry action with WorkflowTaskAssistantError in the floating dock. Keep the ordinary task appearance and timeline until history is ready, then reveal the improvement tint, backdrop, transcript, and composer in the same paint. Ordinary row and run-boundary improvement actions remain hidden until row hover or keyboard focus in both modes, including when disabled during preparation; never reveal every action and rely on the blur to cover it. Learning suggestions keep their existing visibility. Use WorkflowContextAssistant onReadyChange and RunsView builderReady to separate a pending request from its ready appearance, preserving cancellation while loading. Use no entrance or tint animations so the blur does not need to animate. Do not expose a compact composer while saved history is still loading.
- At split widths, float the rounded pane with the neutral --shadow-pane and a 10px --app-pane-gutter at the right and bottom. Soft 2–4px contact shadows define the curved edges without a perimeter line. Keep outer containers overflow-visible for the shadow and clip scrolling content inside the pane.
- Selecting a workflow previews its overview; Open workflow or double-click enters Activity.
- Apps uses resources-grid for a fixed 304px sidebar at split widths, matching Chat and leaving the remaining space for the app editor and preview. With no selection, show ResourceCreationEmptyState. Compact screens provide an Apps return action with focus restored to the selected row, and Overview opens the creation state.
- Show private unpublished builders in a Drafts section of the workflow list. Resume their persistent draft links with the same conversation, editor changes, editing mode, and unsent message; creating a runnable workflow preserves the conversation and redirects the draft link to that workflow. Apps also lists new builders under Drafts, autosaving unsent text and binding the conversation before a first preview exists. After staging, the original app draft link opens the app and its conversation.
- Default to the combined overview with no selected row. Clear workflow selection through the icon-only Back to all workflows action beside the workflow title; compact lists expose an Overview action.
- When no saved workflows exist, replace analytics and inbox metrics with WorkflowCreationEmptyState and skip overview requests. Keep unpublished drafts available in the sidebar. Compact screens open the creation state directly only when both workflows and drafts are empty; otherwise retain the draft list and Overview shortcut. Filtered empty results keep the normal overview.
- Keep sidebar headings near the pane's top edge. Use SidebarListHeader for the list heading and font-heading for overview page titles. Keep title counts at 400. Place the return arrow inline to the left of the workflow title, in light muted gray with foreground color on hover and keyboard focus. Retain its accessible label and focus ring. Keep the heading vertically aligned on selection.
Accessibility:
- Label both regions and expose selection on list buttons. Move focus into the compact detail and restore it on return.
#### Browse, then focus [master-detail-default]
The combined overview is the default. Select a fictional workflow to scope its metrics, then use the detail header to return to all workflows.
```tsx
{/* Overview and compact back action */}
```
### TaskInspectorLayout
Execution details floating over the task pane, using the same inset surface as app previews.
Import: @/components/task-inspector-layout
Usage:
- Place TaskInspectorLayout inside the owning task main pane. Pass the timeline as children, the current execution inspector as inspector, open only while a payload is selected, and onDismiss to clear that selection.
- Give ModelCallDialog presentation=pane in Chat and Workflow Activity. In Workflow Activity, also use it for ToolCallDialog and RunInputDialog. Their ExecutionInspector reuses ResourcePreviewPane for the shared 10px inset, 22px pane radius, shadow, and clipped content. The app navbar and conversation or activity list remain available.
- Float the inspector over the task's right side with a neutral, dismissible backdrop confined to the owning main pane. Keep the timeline at its original width, metadata wrapping, and scroll position beneath it at every viewport. Compact overlays retain an inset and visible outside strip for dismissal; never replace or reflow the timeline.
- Slide and fade the inspector in over 200ms and out over 160ms while fading the backdrop. Keep the last payload mounted and the underlying timeline inert until the exit completes, then return focus to the opener. Reduced motion opens and closes immediately without changing timeline geometry.
- Use the same subdued backdrop as Dialog, with 10% opacity of the shared foreground color.
- Reuse ExecutionInspectorHeader from @/components/execution-inspector for model, tool, and input headers. Put the icon, regular title, and Close on the first row with a 20px header inset, then align metadata below the title. Omit the redundant Input pill; retain meaningful workflow, running, failure, warning, and error labels.
- Open the tool inspector from the tool title. Keep Inspect in metadata for model calls and tools whose titles open child workflow activity. Input rows place Inspect in their header. Preserve payload tabs, viewer modes, copy, timing, loading, empty, error, and retry behavior.
- Public specimens use fictional payloads and omit runId so no real execution data is requested.
Accessibility:
- Retain the inspector's labeled dialog content and visible Close action. Close, Escape, and clicking the backdrop dismiss the inspector and return focus to the inspection action.
- Keep focus behavior within the inspector while it is open. Long titles and structured payloads must scroll inside the overlay without widening the owning pane or changing the timeline below it.
#### Inspect within the task [task-inspector-default]
Select the tool title to open the production inspector with a fictional payload. Switch between compact and wide task panes, confirm the timeline keeps its width beneath the overlay, inspect a long name and payload, change viewer modes, and dismiss with Escape or the backdrop. No API requests are made.
```tsx
setSelected(null)}
inspector={ !open && setSelected(null)} />}>
// Fictional tool payload; omit runId to keep the specimen local.
```
### App editor and preview controls
One app header for access and publishing, with preview controls beside the editor tabs and a rounded floating preview surface.
Import: @/components/resource-editor-controls
Usage:
- Keep the app title, quiet live/building/stopped status, clickable access badge, Publish vN, and App actions menu in one shared ResourceEditorHeader above the Build, Activity, and Code tabs. Pass the current accessLabel and keep its badge visible at compact widths. Let long titles truncate within their width while preserving enough line height for Calibre ascenders and descenders.
- Place API keys, Open live app, Rename app, and Stop or Resume in App actions. Keep the layout selector as one labeled icon offering Assistant only, Split view, and Preview only. At compact widths use one Assistant/Preview switch for the active pane.
- ResourceEditorNavigation places Build, Activity, and Code on the left and the inline ResourcePreviewToolbar on the same row while Build is active. Keep preview actions outside the tablist so keyboard tab navigation includes only the editor tabs. At compact widths keep one row, reduce tab gaps, and hide the Preview caption and Open preview text while retaining the accessible version selector and open icon.
- ResourcePreviewToolbar owns the preview version dropdown, Version history, Reload preview, and Open preview action. Mark the published version and current draft clearly; private previews use separate app data. In navigation use inline and showNotice={false}; Code keeps its Source version selector in the file sidebar.
- Compose ResourcePreviewPane from @/components/resource-preview-pane for the shared inset pane and clipped surface used by app previews and embedded execution inspectors. It owns resource-preview-pane and resource-preview-surface, using --chat-surface-radius (1.375rem fallback), --shadow-pane, and --app-pane-gutter around all four edges. Pass ResourcePreviewNotice through notice. Keep the frame steady in split and preview-only layouts and leave the assistant typography and emphasis unchanged.
- Treat version browsing as read-only with respect to the publish target. Previewing an earlier version must leave Publish vN on the current draft. Place ResourcePreviewNotice above the floating preview surface to show the viewed and draft versions together, with Return to draft and an explicit Restore as draft action.
- Restoring an earlier version creates a new immutable draft version. It does not publish or move the current live version. Keep publishing explicit and disable it while loading, building, publishing, or when no unpublished draft exists.
- Conversation change cards use ResourceVersionCard with one Preview vN action. Do not repeat draft-selection buttons or add a second history control beneath the app title. Code follows the same viewed version as the preview without changing the publish target.
- Compose ResourceStandaloneLayout and ResourceStandaloneHeader from @/components/resource-standalone-header when an app opens in its own tab. Private previews pair the warm off-white WorkspaceCanvas frame with the builder's resource-preview-pane / resource-preview-surface, shared pane radius and shadow, and clipped app content. In standalone previews, the surface starts directly below the 44px header with 10px side and bottom gutters and no additional top gutter. Live apps retain their neutral edge-to-edge layout and compact header.
- Place the 44px private-preview header directly on the workspace frame. Use circular return and Reload controls, the original 14px title at semibold/600, and a separate Preview caption beside the version selector. Show the return arrow at half opacity until hover or keyboard focus, then use full opacity and the shared circular hover background while retaining its focus ring and transition. Keep long names and version controls contained at compact widths without hiding the selector. A private preview has no publishing, API key, or sharing controls in this header; live apps retain their review and sharing controls when available.
- Standalone private previews reuse ResourceVersionDropdown with align=end, all versions available, and Latest draft and Published labels. Selecting a version changes only the preview being viewed. Retain the current preview while versions load, are empty, or fail, and offer retry inside the dropdown without hiding the app.
Accessibility:
- Give layout, actions, and preview-version menus accessible names, retain keyboard navigation and focus rings, and return focus to their triggers after dialogs close.
- Expose working and publish status without relying on color, keep title text readable while editing, and contain long titles, history rows, and action menus at both compact and desktop widths.
#### Ask, preview, publish [resource-editor-controls-default]
Use the real production controls with three fictional versions. Browse history without changing Publish v3, then explicitly restore an earlier version. Try long titles, loading, building, new, and stopped states; every action stays local.
```tsx
Shelving 3D} status="Live v2" publishLabel="Publish v3"
publishDisabled={working} onPublish={publishDraft} onShare={openSharing} accessLabel={accessLabel}
layout={layout} onLayoutChange={setLayout} />
: undefined}>
BuildActivityCode
{/* Place beside the assistant in the responsive builder grid. */}
setViewedId(draftId)} />
}>
{preview}
```
#### Private preview in its own tab [resource-standalone-preview-default]
The production sand preview frame, rounded app surface, header, and shared version menu with fictional versions. Switch among the latest draft, published, and earlier versions; inspect a long title, compact width, loading, empty versions, and retry state. The app stays visible and no action publishes a version.
```tsx
}
onReload={reloadPreview} />}>
{preview}
```
### ResourceCreationEmptyState
An invitation to build an app or tool when no app is selected.
Import: @/components/resource-creation-empty-state
Usage:
- Place inside the app main pane with no default selection. Pass the same create action as the sidebar plus button.
- Compose the illustration from shared Surface and SourceIcon components. Keep it static, decorative, and separate from the visible heading and creation action.
- Reuse workflow-accent and glass-tint tokens for olive dashboard details, terracotta chat details, sand placeholders, and ochre accents. Preserve the white raised cards, existing geometry, copy, and shared primary action.
Accessibility:
- Hide decorative app sketches from assistive technology. Keep the creation button labeled and keyboard accessible, and let short panes scroll without clipping the action.
#### An idea becomes an app [resource-creation-default]
The production creation state, with a local action for this sample.
```tsx
setCreating(true)} />
```
### ResourceBuildEmptyState
An illustrated invitation to build or improve an app in its empty assistant pane.
Import: @/components/resource-editor-empty-states
Usage:
- Place inside AssistantEditorSurface with centered enabled, above its in-flow composer. Pass existing for an app that already exists; new apps use the build invitation.
- Match the Apps creation illustration with static white raised Surface cards, SourceIcon details, and shared workflow-accent and glass-tint colors. Keep the regular context heading and body copy; the owning assistant surface supplies scrolling and outer spacing.
Accessibility:
- Hide the decorative illustration from assistive technology. Keep the real composer keyboard accessible and let short panes scroll the invitation without clipping the composer.
#### Build or improve an app [resource-build-empty-default]
The production invitation and assistant surface with a local composer. Switch between a new and existing app, try a short pane, and type or attach a sample direction without changing an app.
```tsx
```
### ResourceSourceEmptyState
An illustrated source-selection state for an app's read-only Code pane.
Import: @/components/resource-editor-empty-states
Usage:
- Show in FilesView for read-only app source when no file is selected. Preserve the current folder title, source guidance, and optional version description without adding creation actions.
- Compose static source sketches from Surface and SourceIcon using the Apps illustration's white raised cards and shared accent tokens. The component owns its centered layout and scroll area.
Accessibility:
- Hide decorative code marks from assistive technology, wrap long folder titles, and keep the complete invitation reachable in compact and short panes.
#### Choose a source file [resource-source-empty-default]
The production source-selection state with a Code title, long folder title, and short-pane overflow control.
```tsx
```
### WorkflowCreationEmptyState
An invitation to create the team's first workflow, in the same visual language as Apps.
Import: @/components/workflow-creation-empty-state
Usage:
- Show in the workflows main pane when no saved workflows exist, with the same creation action as the sidebar plus button. Existing workflows retain their combined overview even when filters match no rows.
- Compose static steps, a trigger, and a result from Surface and SourceIcon with shared workflow-accent and glass-tint tokens. Keep white raised cards, a regular context heading, supporting copy, and a shared primary action.
- Set hasDrafts only when unpublished drafts exist so the resume hint is actionable. Keep drafts visible in the list; compact screens open this invitation directly when workflows and drafts are both empty.
Accessibility:
- Hide the decorative illustration from assistive technology. Keep Create workflow keyboard accessible, let short panes scroll, and restore focus when returning to the compact draft list.
#### Repeat work becomes a workflow [workflow-creation-default]
The production first-workflow invitation, with local creation and draft states.
```tsx
setCreating(true)} hasDrafts={hasDrafts} />
```
### KnowledgeCreationEmptyState
An invitation to create and collect files when no knowledge file is selected.
Import: @/components/knowledge-creation-empty-state
Usage:
- Use in the Knowledge main pane when no file is selected. Keep folder titles and reuse the existing file, canvas, and upload handlers.
- Match the Apps creation state's centered layout, typography, spacing, and static raised-card illustration. Use shared Surface, SourceIcon, workflow-accent, and glass-tint tokens for document, image, canvas, and folder details.
- Offer Create file as the primary action, followed by outline Create canvas and Upload files actions. Omit canvas creation for workflow Knowledge. Disable file actions while loading, busy, read-only, or write-locked, and canvas creation while loading, busy, or read-only. Keep personal Knowledge free of privacy footer copy.
Accessibility:
- Hide the decorative illustration from assistive technology. Preserve labeled buttons and visible keyboard focus. Let actions wrap at compact widths and short panes scroll without clipping content or long folder titles.
#### A place for your files and ideas [knowledge-creation-default]
The production Knowledge state with local file, canvas, and upload actions. Inspect personal, workflow, loading, read-only, and long-title states.
```tsx
```
### ChatSuggestions
Three suggested next steps beneath the new chat composer.
Import: @/components/chat-suggestions
Usage:
- Center the recommendations below the new chat composer in a group up to 38rem wide with space above the buttons. Show the first three recommendations in one column in narrow panes and three equal columns from 36rem of available width. Use 13px supporting type and cap titles at two lines with an ellipsis. Show the full title on hover.
- Compose each button with GlassSurface and the compact control shadow. Keep the shared hover fill and vertically center the title and small muted right arrow.
- Selecting a suggestion fills and focuses the composer so the user can review the prompt before sending. Keep starter suggestions available while personalized follow-ups load.
Accessibility:
- Give the group the accessible name Suggested next steps. Use native buttons with the full titles as accessible names. Hide the decorative arrows from assistive technology. Retain visible keyboard focus, keep suggestions stable while the list has focus, and announce loading politely.
#### Suggested next steps [chat-suggestions-default]
Choose a suggestion to fill and focus the sample composer. Switch between starters and personalized follow-ups, or toggle loading.
```tsx
{
setValue(prompt);
setFocusRequest((request) => request + 1);
}} />
```
### ChatWorkflowRunCard
A compact live link from a chat invocation to its workflow task.
Import: @/components/chat-workflow-run-card
Usage:
- Show the current workflow name, task title, shared RunStatusBadge, current activity, and action counts. Keep execution details in the linked task. Resolve names from IDs on refresh and show an unavailable state when access is lost.
- Refresh active linked workflows even though their chat launch turn is complete. Keep the card inside the conversation column, truncate long labels with full titles, and allow status metadata to wrap on compact screens.
Accessibility:
- Keep a native task link with a full accessible name, visible keyboard focus, and text status alongside color. Announce activity changes with a polite status.
#### A workflow in the conversation [chat-workflow-run]
Inspect working, waiting, completed, failed, canceled, and unavailable states.
```tsx
```
### ConversationComposer
The shared composer with the bentos' dimensional glass material, shown here with local-only submission.
Import: @/components/conversation-composer
Usage:
- Reuse this composition rather than rebuilding chat controls.
- Chat workflow mentions open the shared searchable Dropdown only when @ is the first character. Enter resolves a runnable workflow into a removable inline pill. Store the selected workflow ID separately from message text; unresolved text never launches a workflow. Show the current name from workflow data, and use workflow execution defaults when a pill is present. With an empty message, the first Backspace selects and darkens the pill; the next removes it. Clicking the pill selects it, while typing or Escape clears its selection. Keep a real caret box for empty input, including without a pill, and show the placeholder immediately when the last character is deleted.
- Default composers reuse GlassSurface for translucent fill, directional highlights, and inset rim lighting, with the shared --shadow-bento contact and cast shadows. Preserve the existing radius, padding, placement, and text emphasis; keep the writing surface untinted and free of contour decoration. The meta variant uses the shared dark olive surface-inverse tokens and pale foreground-inverse and accent-inverse inks.
- Keep overflow visible for aboveComposer progress and control popovers. The lighting follows the complete composer edge as text and attachments grow; file-drop feedback retains the shared rim and shadow.
- Center the composer in a new web chat with recommendations below. On first send, slide it to the bottom as the outgoing message plays its existing entrance animation. Respect reduced motion for both movements.
- Use embedded placement inside an existing flow.
- Use toolbar placement inside the canvas dock: keep the writing row at the drawing toolbar's footprint, grow attachments and multiline text upward, and expose the same execution controls through Conversation settings. The canvas host reuses ChatView for its transcript and preserves drafts and active work when closed.
- Native checkboxes, radio buttons, and range controls inherit the shared olive primary accent.
- New workflow tasks compose ComposerAttachmentPicker and ComposerAttachmentPreviews beside Start, using the same icon-only paperclip button as chat with the accessible name Attach files, removable previews, paste and file drop. A file alone can start a task; failed uploads or starts retain selected files for retry.
- Use belowComposer for a quiet secondary action beneath the input, such as manual workflow editing.
Accessibility:
- Provide ariaLabel. Preserve keyboard submission and disabled states.
#### Start a conversation [composer-default]
Write a message and submit it. This sample renders locally and never calls the API.
```tsx
undefined}
onRemoveAttachment={() => undefined} onSubmit={handleLocalSubmit} />
```
#### Invoke a workflow [composer-workflow-mention]
Type @ as the first character, search, and press Enter. Inspect populated, loading, empty, and failed states with fictional workflows.
```tsx
undefined }} />
```
#### Create on the canvas [composer-toolbar]
The production compact composer, with shared file attachments and execution settings. This specimen submits locally.
```tsx
} value={value} attachments={attachments} disabled={false} placeholder="Ask AI to create or change anything…" onChange={setValue} onAddAttachments={addAttachments} onRemoveAttachment={removeAttachment} onSubmit={submit} />
```
#### Improve future runs [composer-meta]
The workflow improvement composer uses a dark olive surface and pale olive controls. Submission remains local to this sample.
```tsx
undefined}
onRemoveAttachment={() => undefined} onSubmit={handleLocalSubmit} />
```
#### A secondary action below the input [composer-secondary-action]
Keep the input focused on the message. Clear conversation resets only this local sample.
```tsx
Clear conversation}
onChange={setValue} onAddAttachments={() => undefined}
onRemoveAttachment={() => undefined} onSubmit={handleLocalSubmit} />
```
## Identity
The name, the mark, and the typefaces that make the system feel like Incline.
### InclineWordmark
The real wordmark and compact mark used by the product.
Import: @/components/incline-wordmark
Usage:
- Use the shared identity components for product branding.
- Use InclineLogo for the app header's organization switcher. It renders lowercase incline in Calibre Semibold/600 at 22px with -1px letter spacing and an upward 8° tilt. Align the trigger with sidebar headings at a 20px left inset and use the shared foreground color. Give the switcher button an accessible name.
Accessibility:
- Provide an accessible name when the mark is a standalone navigation link.
#### A recognizable signature [wordmark-default]
The app header's tilted text logo alongside the typographic wordmark and compact product mark.
```tsx
```
### InkAvatar
Ink's dimensional olive ink drop with two eyes and a smile.
Import: @/components/ink-avatar
Usage:
- Use size-[18px] in the assistant sidebar and size-5 or size-6 in existing larger identity slots. Reuse GradientIcon's olive diagonal gradient, surface highlight and darker glass tint to match the navigation. Keep the white face legible at the smallest size.
- Pair the sidebar mark with the name Ink at gap-2 and no secondary text. Reuse the same SVG across Ink's identity surfaces.
- Preserve size, spacing and text emphasis. Keep the gradient constant across normal, hover, focus, selected and loading states.
Accessibility:
- The SVG is decorative and hidden from assistive technology. Give its parent a visible Ink label or an accessible name when used in an icon-only action.
#### A small companion [ink-avatar-default]
The sidebar mark and its 20px and 24px identity sizes.
```tsx
Ink
```
#### Ink in the sidebar [ink-sidebar-states]
Inspect the real sidebar across local setup, selection, paused, unread, loading, and error states. Clicking Ink selects it locally.
```tsx
const [state, setState] = useState("Unconfigured");
const assistant: ComponentProps["assistant"] = state === "Unconfigured" ? null : {
enabled: state !== "Paused", status: state === "Paused" ? "PAUSED" : "ACTIVE",
taskId: "sample-ink", workflowId: "sample-ink-workflow", latestRunId: null,
timezone: "America/New_York", cadenceMinutes: 60, nextWakeAt: null,
};
// PersonalAssistantSidebar: @/components/personal-assistant. Fictional data; no API calls.
```
### InkGroupAvatar
Filled people with the same dimensional olive material as Ink and the Chat navigation icon.
Import: @/components/ink-group-avatar
Usage:
- Use size-[18px] in InkGroupList for shared conversations such as Family. Reuse GradientIcon's olive gradient and soft surface highlight, with a layered rear figure instead of an outline glyph.
- Preserve row geometry, label weight and gap-2 spacing. Icon colors stay constant across hover, focus and selection; long group names truncate while the icon keeps its size.
Accessibility:
- Keep the SVG decorative and the group name visible on its parent button. Retain keyboard focus and aria-current on the selected conversation.
#### A shared identity [ink-group-avatar-default]
The filled group mark at sidebar, 20px and 24px sizes.
```tsx
Family
```
#### Ink and shared chats [ink-group-sidebar-states]
The real sidebar with conversations above a bottom-anchored Ink footer. Open the sample group dialog from the plus on the Ink row. Shared with Ink appears only for connected chats. Inspect normal, selected, loading, empty and overflow states using fictional data.
```tsx
```
### Typefaces
The production font roles, loaded from the product's permanent local assets.
Import: @/index.css
Usage:
- Calibre for the current web interface and wordmark preview; Inter for numeric alignment; IBM Plex Mono for code.
- Calibre's dedicated stylesheet is @/fonts/calibre.css, imported by @/index.css. All seven weights have real italic faces and share size-adjust: 120%. Use an explicit font-weight and font-style to select a variant.
Accessibility:
- Use text rather than an image of text; preserve the supplied fallback stacks.
#### A role for every family [typefaces-default]
Calibre 400 and 500 for interface text, 400 for page titles, IBM Plex Mono, and aligned Inter numerals.
```tsx
Calibre · 400Calibre · 500Page titles · 400IBM Plex Mono0123456789
```
#### Every Calibre weight [typefaces-calibre-weights]
Seven weights, each with its true italic, at the current 120% size adjustment.
```tsx