# 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 v3 Share 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