The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
import type { CSSProperties } from "react";
export const typeRamp = [
{ token: "3xl", size: 30, className: "text-3xl", use: "Dashboard metric values on desktop.", source: "MetricCard.tsx · sm:text-3xl" },
{ token: "2xl", size: 24, className: "text-2xl", use: "Task detail title; agent name; metrics below the sm breakpoint.", source: "IssueDetail.tsx · AgentDetail.tsx · MetricCard.tsx" },
{ token: "xl", size: 20, className: "text-xl", use: "Available heading step. Rendered Markdown H2 currently also resolves to 20px, through its own rule.", source: "index.css · .paperclip-markdown h2" },
{ token: "lg", size: 18, className: "text-lg", use: "Section headings in foundation specimens. No default product role assigned here.", source: "ColorsPreview.tsx · text-lg" },
{ token: "base", size: 16, className: "text-base", use: "Mobile text-entry controls; available larger body step. Desktop body generally uses sm.", source: "ui/input.tsx · index.css mobile editable-control tokens" },
{ token: "sm", size: 14, className: "text-sm", use: "Main content, task/activity rows, navigation, buttons, menus and composer text.", source: "TaskList · SidebarShell · ui/button · TaskChat" },
{ token: "compact", size: 13, className: "text-(length:--text-compact)", use: "Compact controls and legacy navigation recipes. Proposal navigation overrides this to sm.", source: "SidebarNavItem.tsx · SidebarAccountMenu.tsx" },
{ token: "xs", size: 12, className: "text-xs", use: "Property labels, supporting copy, hover-card metadata, activity details, message times, account email and run metrics.", source: "issue-properties/primitives.tsx · IssueLinkQuicklook · TaskChat" },
{ token: "nano", size: 10, className: "text-(length:--text-nano)", use: "Navigation/streamlined property eyebrows; chart dates, legends and subtitles.", source: "SidebarSection.tsx · issue-properties/primitives.tsx · ActivityCharts.tsx" },
] as const;
export type TypeArea = "Navigation" | "Tasks & activity" | "Dashboard & agents" | "Menus & previews" | "Detail & properties" | "Conversation & forms";
export type TypeRole = {
id: string;
area: TypeArea;
name: string;
sample: string;
className: string;
style?: CSSProperties;
recipe: string;
source: string;
use: string;
review?: string;
inheritedLeading?: boolean;
};
const taskType: CSSProperties = { fontSize: "var(--task-row-title-size)", lineHeight: "var(--task-row-title-leading)" };
const flyoutType: CSSProperties = { fontSize: "var(--flyout-type-size)", lineHeight: "var(--flyout-type-leading)" };
const monoTask: CSSProperties = { ...taskType, fontFamily: "var(--task-row-font-mono)" };
/** Source-derived recipes, not a second component implementation. Sources are repository-relative. */
export const typeRoles: TypeRole[] = [
{ id: "shell-heading", area: "Navigation", name: "Page / breadcrumb section", sample: "TASKS", className: "font-semibold uppercase text-foreground", style: { fontSize: "var(--design-page-type-size)", lineHeight: "var(--design-page-type-leading)", letterSpacing: "var(--design-page-heading-tracking)" }, recipe: "--design-page-type-size / leading / heading-tracking", source: "ui/src/index.css · .design-page-header :is(h1, h2)", use: "Compact section identity in the center-pane header." },
{ id: "organization", area: "Navigation", name: "Organization name", sample: "Design Sandbox", className: "text-sm font-semibold leading-normal text-foreground", recipe: "text-sm · font-semibold · leading-normal", source: "ui/src/components/SidebarCompanyMenu.tsx", use: "The organization trigger has a stronger weight than ordinary navigation." },
{ id: "nav-item", area: "Navigation", name: "Navigation item", sample: "Dashboard", className: "text-sm font-normal leading-normal text-muted-foreground", recipe: "--design-sidebar-label-size / leading · font-normal", source: "ui/src/index.css · .design-sidebar-navigation; ui/src/components/SidebarNavItem.tsx", use: "Muted by default; selected/hovered items use foreground." },
{ id: "nav-eyebrow", area: "Navigation", name: "Navigation group label", sample: "RECENT TASKS", className: "design-navigation-group-label", recipe: "--text-nano · --design-sidebar-heading-tracking", source: "ui/src/components/SidebarSection.tsx; ui/src/index.css · shared group-label rule", use: "Inter, 10px / 15px, normal, uppercase, 0.1em tracking and muted foreground at 60%. Shared with streamlined property sections." },
{ id: "nav-recent", area: "Navigation", name: "Recent link / account name", sample: "Improve connector reliability", className: "text-sm font-normal leading-normal text-muted-foreground", recipe: "--design-sidebar-label-size / leading", source: "ui/src/components/SidebarRecentTasks.tsx; ui/src/components/SidebarAccountMenu.tsx", use: "Single-line recent links; account name is foreground. Long links share the marquee behavior." },
{ id: "row-read", area: "Tasks & activity", name: "Read task title", sample: "Improve connector reliability", className: "font-normal text-muted-foreground", style: taskType, recipe: "--task-row-title-size / leading · weight-read", source: "ui/src/index.css · .task-row-refreshed; ui/src/components/IssueRow.tsx", use: "Default read state. Hover/focus promotes color while preserving regular weight." },
{ id: "row-unread", area: "Tasks & activity", name: "Unread task title", sample: "Review connector health states", className: "font-semibold text-foreground", style: taskType, recipe: "--task-row-title-weight-unread · --task-row-title-color-active", source: "ui/src/index.css · .task-row-refreshed", use: "Semibold and foreground; unread state is separate from density." },
{ id: "row-id", area: "Tasks & activity", name: "Task ID / parent / worktree", sample: "DES-431", className: "font-normal text-muted-foreground", style: monoTask, recipe: "--task-row-font-mono · --task-row-title-size / leading", source: "ui/src/components/TaskList.tsx; ui/src/index.css · .task-row-refreshed", use: "Paper Mono aligns identifiers across task tables and activity rows.", review: "Task table metadata is 14px, rather than the general 12px metadata guidance." },
{ id: "row-time", area: "Tasks & activity", name: "Row timestamp / column label", sample: "2h ago", className: "font-normal text-muted-foreground", style: taskType, recipe: "--task-row-title-size / leading", source: "ui/src/components/TaskList.tsx; ui/src/components/ActivityRow.tsx", use: "Same size as the title; column headings also keep regular weight.", review: "Timestamps stay 14px in the shared row; narrow presentation hides columns instead of shrinking type." },
{ id: "activity-text", area: "Tasks & activity", name: "Activity actor, verb & subject", sample: "Board updated Connector engineer", className: "font-normal text-muted-foreground", style: taskType, recipe: "task-row-refreshed · task-row-title", source: "ui/src/components/ActivityRow.tsx", use: "Task and non-task activity share row metrics, truncation and hover promotion." },
{ id: "toolbar", area: "Tasks & activity", name: "Toolbar control / search", sample: "Search tasks…", className: "text-sm font-normal leading-5 text-muted-foreground", recipe: "--design-page-type-size / leading · font-normal", source: "ui/src/components/TaskListToolbar.tsx; ui/src/index.css · .design-task-search", use: "Controls are normal; search input text is regular and foreground, placeholder muted. New Task is semibold." },
{ id: "result-count", area: "Tasks & activity", name: "Result count / empty state", sample: "10 matching tasks", className: "text-sm leading-5 text-muted-foreground", recipe: "text-sm · leading-5", source: "ui/src/pages/DesignSandboxTasks.tsx; ui/src/pages/Dashboard.tsx", use: "Supporting collection feedback without heading emphasis." },
{ id: "metric", area: "Dashboard & agents", name: "Metric value", sample: "$0.00", className: "text-2xl font-semibold tracking-tight tabular-nums text-foreground sm:text-3xl", recipe: "text-2xl sm:text-3xl · font-semibold · tabular-nums", source: "ui/src/components/MetricCard.tsx", use: "30px desktop; 24px below sm. Tabular numerals keep changing values aligned." },
{ id: "metric-label", area: "Dashboard & agents", name: "Metric label / description", sample: "Agents Enabled", className: "text-xs font-normal text-muted-foreground sm:text-sm", recipe: "text-xs sm:text-sm · font-normal", source: "ui/src/components/MetricCard.tsx", use: "Label: 14px desktop / 12px small. Description: 12px regular, muted at 70%, hidden on small screens." },
{ id: "dashboard-heading", area: "Dashboard & agents", name: "Dashboard section heading", sample: "RECENT ACTIVITY", className: "text-sm font-semibold uppercase tracking-wide text-muted-foreground", recipe: "text-sm · font-semibold · uppercase · tracking-wide", source: "ui/src/pages/Dashboard.tsx", use: "Labels dashboard sections above the cards.", review: "Currently muted; the general proposed heading rule calls for foreground." },
{ id: "chart-heading", area: "Dashboard & agents", name: "Chart title / empty chart", sample: "Tasks by Status", className: "text-xs font-normal text-muted-foreground", recipe: "text-xs · font-normal", source: "ui/src/components/ActivityCharts.tsx · ChartCard", use: "Chart title is 12px normal; an empty-chart message uses regular weight.", review: "Chart headings are currently muted rather than foreground." },
{ id: "chart-caption", area: "Dashboard & agents", name: "Chart date / legend / subtitle", sample: "10/15 · In Progress", className: "text-(length:--text-nano) tabular-nums text-muted-foreground", recipe: "--text-nano · tabular-nums for dates", source: "ui/src/components/ActivityCharts.tsx · DateLabels / ChartLegend", use: "10px chart captions; subtitles use muted foreground at 60%.", inheritedLeading: true },
{ id: "agent-name", area: "Dashboard & agents", name: "Agent name", sample: "Connector engineer", className: "text-2xl font-semibold tracking-tight text-foreground", recipe: "text-2xl · font-semibold · tracking-tight", source: "ui/src/pages/AgentDetail.tsx", use: "Agent overview identity. Panel headings below it use 14px normal; panel values use 14px regular." },
{ id: "menu-heading", area: "Menus & previews", name: "Popover heading", sample: "Views", className: "font-semibold text-foreground", style: flyoutType, recipe: "--flyout-type-size / leading · font-semibold", source: "ui/src/components/ui/flyout.tsx; ui/src/index.css · .design-flyout-heading", use: "The shared popover heading establishes menu hierarchy." },
{ id: "menu-option", area: "Menus & previews", name: "Popover option / checkmark", sample: "Needs attention", className: "font-normal text-muted-foreground", style: flyoutType, recipe: "--flyout-type-size / leading · muted-foreground", source: "ui/src/index.css · .design-flyout-option", use: "Unselected labels and accompanying checks are muted; hover/focus uses foreground. Action menus use normal weight." },
{ id: "account-name", area: "Menus & previews", name: "Account name", sample: "Riley Board", className: "text-sm font-semibold text-foreground", style: { lineHeight: "var(--profile-popover-label-line-height)" }, recipe: "text-sm · --profile-popover-label-line-height", source: "ui/src/components/SidebarAccountMenu.tsx", use: "14px semibold / 18px leading in the account header." },
{ id: "account-email", area: "Menus & previews", name: "Account email / ID", sample: "[email protected]", className: "text-xs text-muted-foreground", style: { lineHeight: "var(--profile-popover-meta-line-height)" }, recipe: "--text-xs · --profile-popover-meta-line-height", source: "ui/src/components/SidebarAccountMenu.tsx", use: "12px / 16px. Optional account ID uses Paper Mono." },
{ id: "hover-title", area: "Menus & previews", name: "Task hover-card title", sample: "Review task thread layouts", className: "font-semibold text-foreground", style: { fontSize: "var(--task-preview-title-size)", lineHeight: "var(--task-preview-content-leading)" }, recipe: "--task-preview-title-size / content-leading", source: "ui/src/components/IssueLinkQuicklook.tsx; ui/src/index.css", use: "14px / 18px; title wraps within the preview." },
{ id: "hover-body", area: "Menus & previews", name: "Hover-card description", sample: "Review shared components and foundations.", className: "text-muted-foreground", style: { fontSize: "var(--task-preview-meta-size)", lineHeight: "var(--task-preview-content-leading)" }, recipe: "--task-preview-meta-size / content-leading", source: "ui/src/components/IssueLinkQuicklook.tsx; ui/src/index.css", use: "12px / 18px; task ID, project and timestamp use 12px / 16px metadata tokens." },
{ id: "detail-title", area: "Detail & properties", name: "Task detail title", sample: "Improve connector reliability", className: "text-2xl font-normal leading-normal text-foreground", recipe: "text-2xl · font-normal · leading-normal", source: "ui/src/pages/IssueDetail.tsx · InlineEditor h2", use: "24px regular / 36px leading. Status, ID, project and people sit below the title." },
{ id: "detail-id", area: "Detail & properties", name: "Task detail identifier", sample: "DES-431", className: "font-mono text-sm text-muted-foreground", recipe: "font-mono · text-sm", source: "ui/src/pages/IssueDetail.tsx", use: "Paper Mono identifier in the task title metadata row, matching task tables." },
{ id: "property-label", area: "Detail & properties", name: "Property label / supporting metadata", sample: "Assignee", className: "text-xs text-muted-foreground", recipe: "text-xs · text-muted-foreground", source: "ui/src/components/issue-properties/primitives.tsx · PropertyRow", use: "12px labels and supporting copy in the right pane." },
{ id: "property-value", area: "Detail & properties", name: "Property value", sample: "Connector engineer", className: "text-sm text-foreground", recipe: "text-sm; contextual foreground / muted-foreground", source: "ui/src/components/issue-properties/IssueProperties.tsx", use: "Assignee, project, status and several relationship values currently use 14px.", review: "The right pane mixes 12px labels and 14px values; it does not yet follow a blanket 12px rule." },
{ id: "property-eyebrow", area: "Detail & properties", name: "Streamlined property section", sample: "RELATIONSHIPS", className: "design-navigation-group-label", recipe: "Same shared rule as navigation group label", source: "ui/src/components/issue-properties/primitives.tsx · PropertySection", use: "Matches navigation group labels exactly: Inter, 10px / 15px, normal, uppercase, 0.1em tracking and muted foreground at 60%.", inheritedLeading: true },
{ id: "panel-tab", area: "Detail & properties", name: "Pane tab / overview panel heading", sample: "Properties", className: "text-sm font-normal text-foreground", recipe: "text-sm · font-normal", source: "ui/src/components/side-panel/SidePanelTab.tsx; ui/src/pages/AgentDetail.tsx", use: "Active tab and compact card headings; inactive tabs use muted foreground." },
{ id: "message-author", area: "Conversation & forms", name: "Conversation author name", sample: "Connector engineer", className: "text-sm font-semibold text-foreground", recipe: "--conversation-body-size / --conversation-body-leading · font-semibold · foreground", source: "ui/src/components/task-chat/TaskChatBubble.tsx", use: "Proposed agent names use 14px/20px semibold in foreground. Final-response headings use 14px normal in foreground. Request and protocol card titles remain 14px normal." },
{ id: "markdown-body", area: "Conversation & forms", name: "Standalone rendered prose", sample: "I reviewed the shared components and their usage.", className: "paperclip-markdown", recipe: ".paperclip-markdown", source: "ui/src/components/MarkdownBody.tsx; ui/src/index.css · .paperclip-markdown", use: "Paragraphs, lists and message content use the shared Markdown renderer. See In context for measured heading, emphasis, quote and code roles.", review: "Standalone prose remains 15px / 24px. Inside proposed conversation regions, authored text and headings use 14px/20px; final replies use foreground and commentary uses muted foreground." },
{ id: "working", area: "Conversation & forms", name: "Live working status", sample: "Working", className: "text-sm font-normal text-foreground/80", recipe: "text-sm · font-normal · foreground/80", source: "ui/src/components/task-chat/TaskChatLiveRunPill.tsx", use: "Elapsed time and tool count use 12px with quieter muted opacity. State color can convey live execution." },
{ id: "activity-detail", area: "Conversation & forms", name: "Thinking / tool activity / system notice", sample: "Read files · 3 tools", className: "text-xs text-muted-foreground", recipe: "text-xs · text-muted-foreground", source: "ui/src/components/task-chat/TaskChatThinking.tsx; TaskChatRunnerActivityGroup.tsx; TaskChatSystemNotice.tsx", use: "Collapsed reasoning, tools, phase details and notice labels. Expanded prose is rendered separately." },
{ id: "message-time", area: "Conversation & forms", name: "Message timestamp / delivery state", sample: "4:05 PM · Sending…", className: "text-xs text-muted-foreground", recipe: "text-xs", source: "ui/src/components/task-chat/TaskChatBubble.tsx; TaskChatTurn.tsx", use: "12px message footer; not the shared task-row timestamp role." },
{ id: "run-metric", area: "Conversation & forms", name: "Run metrics / technical identifiers", sample: "42,000 tokens · 930ms", className: "font-mono text-xs text-muted-foreground", recipe: "font-mono (Paper Mono) · text-xs", source: "ui/src/components/task-chat/TaskChatTurn.tsx", use: "Compact technical counters, run IDs and activity diagnostics in Paper Mono at 12px / 16px." },
{ id: "question-prompt", area: "Conversation & forms", name: "Question / confirmation prompt", sample: "What should happen next?", className: "text-sm font-normal text-foreground", recipe: "text-sm · font-normal", source: "ui/src/components/task-chat/TaskChatProtocolCard.tsx", use: "Confirmation prompts and protocol interactions; field labels have a tighter leading recipe." },
{ id: "form-label", area: "Conversation & forms", name: "Field label", sample: "Task name", className: "text-sm font-normal leading-none text-foreground", recipe: "text-sm · leading-none · font-normal", source: "ui/src/components/ui/label.tsx", use: "The shared Label primitive uses a tight 14px line box, separate from prose or a question prompt." },
{ id: "input", area: "Conversation & forms", name: "Input / composer text", sample: "Message Connector engineer…", className: "text-sm text-muted-foreground", recipe: "text-sm on desktop; text-base for mobile entry", source: "ui/src/components/ui/input.tsx; ui/src/components/task-chat/TaskChatComposer.tsx", use: "14px desktop entry, muted placeholder; typed task-search text uses foreground. Mobile entry grows to 16px." },
{ id: "button", area: "Conversation & forms", name: "Button label", sample: "Continue", className: "text-sm font-normal text-foreground", recipe: "text-sm · font-normal; size=xs uses text-xs", source: "ui/src/components/ui/button.tsx", use: "Most buttons are 14px normal; extra-small buttons use 12px. CTA text uses the contrasting background token." },
{ id: "validation", area: "Conversation & forms", name: "Validation / helper copy", sample: "Choose an option to continue.", className: "text-xs text-destructive", recipe: "text-xs · destructive / muted-foreground", source: "ui/src/components/task-chat/TaskChatProtocolCard.tsx; TaskChatComposer.tsx", use: "12px. Errors use semantic destructive color; normal hints remain muted. Status color is an intentional exception." },
{ id: "compact-control", area: "Conversation & forms", name: "Compact control recipe", sample: "Documentation", className: "text-(length:--text-compact) font-normal text-muted-foreground", recipe: "--text-compact · font-normal", source: "ui/src/components/SidebarAccountMenu.tsx; SidebarNavItem.tsx", use: "13px base recipes exist; the proposal flyout and sidebar override these to 14px. This is not the current proposal menu size.", inheritedLeading: true },
{ id: "avatar", area: "Menus & previews", name: "Fallback avatar initial", sample: "R", className: "text-xs font-normal text-muted-foreground", recipe: "text-xs · single first initial", source: "ui/src/components/SidebarAccountMenu.tsx; ui/src/components/ui/avatar-initials.tsx", use: "One character for fallback identity; use the avatar component rather than constructing initials in each view." },
{ id: "badge", area: "Menus & previews", name: "Badge / chip label", sample: "Design system", className: "text-xs font-normal text-muted-foreground", recipe: "text-xs · font-normal", source: "ui/src/components/ui/badge.tsx", use: "12px normal in the shared Badge; filled/status variants use their own contrast colors. PropertyChip can override weight to regular." },
{ id: "tooltip", area: "Menus & previews", name: "Tooltip label", sample: "Toggle side panel", className: "w-fit rounded-md bg-foreground px-3 py-1.5 text-xs text-background", recipe: "text-xs · bg-foreground · text-background", source: "ui/src/components/ui/tooltip.tsx", use: "12px regular on an inverse surface. Distinct from the larger, structured task hover card." },
];