Move small text onto a rem typography scale

This commit is contained in:
Chris Scott committed 2026-12-03 16:15:19 +00:00
1 parent bc8fe466d7
commit 55c731d79b
23 files changed
+35 -34

No files matched your search

@@ -14,7 +14,7 @@ export function ActivityCountPill({ needsInput, running, className }: ActivityCo
<span
aria-hidden="true"
className={cn(
'flex h-4 min-w-4 items-center justify-center rounded-full px-1 text-[10px] font-semibold leading-none',
'flex h-4 min-w-4 items-center justify-center rounded-full px-1 text-2xs font-semibold leading-none',
needsInput > 0 ? 'bg-warning text-warning-foreground' : 'bg-primary text-primary-foreground',
className,
)}
@@ -122,7 +122,7 @@ export function ContentDiffViewer({ before, after }: ContentDiffViewerProps) {
)}
>
{!isMobile && (
<div className="flex-shrink-0 w-14 flex text-muted-foreground/50 text-[10px]">
<div className="flex-shrink-0 w-14 flex text-muted-foreground/50 text-2xs">
<span className="w-7 px-1 text-right">
{line.oldLineNumber || ''}
</span>
@@ -337,7 +337,7 @@ function QueuedPromptRow({ item }: { item: SessionInboxUser }) {
/>
<div className="mt-2 flex items-center gap-2 text-xs text-muted-foreground">
<span>{new Date(item.time.created).toLocaleTimeString()}</span>
<span className="font-mono text-[11px] font-semibold tracking-wider text-warning">
<span className="font-mono text-2xs font-semibold tracking-wider text-warning">
{item.delivery === 'queue' ? 'QUEUED' : 'STEERING'}
</span>
</div>
@@ -1209,7 +1209,7 @@ if (isIOS && isSecureContext && navigator.clipboard && navigator.clipboard.read)
}`}
>
{key.symbol}
<span className="truncate font-sans text-[11px] font-medium opacity-80">{key.label}</span>
<span className="truncate font-sans text-2xs font-medium opacity-80">{key.label}</span>
</button>
)
})}
@@ -1249,7 +1249,7 @@ return (
{composerModeStyle && (
<span
data-testid="composer-mode-badge"
className={`absolute -top-2.5 left-3 z-10 px-1.5 py-0.5 rounded text-[10px] font-bold tracking-widest pointer-events-none ${composerModeStyle.badge}`}
className={`absolute -top-2.5 left-3 z-10 px-1.5 py-0.5 rounded text-2xs font-bold tracking-widest pointer-events-none ${composerModeStyle.badge}`}
>
{composerModeStyle.label}
</span>
@@ -129,7 +129,7 @@ export function PromptSuggestions<T>({
)}
</span>
{item.tag && (
<span className="flex-shrink-0 text-[10px] font-semibold uppercase tracking-wider px-1.5 py-0.5 rounded border border-border opacity-80">
<span className="flex-shrink-0 text-2xs font-semibold uppercase tracking-wider px-1.5 py-0.5 rounded border border-border opacity-80">
{item.tag}
</span>
)}
@@ -176,7 +176,7 @@ function ConfigSection({ label, children }: ConfigSectionProps) {
className="flex flex-col gap-1"
>
{label ? (
<div id={labelId} className="px-2 text-[11px] font-medium uppercase tracking-wide text-muted-foreground">
<div id={labelId} className="px-2 text-2xs font-medium uppercase tracking-wide text-muted-foreground">
{label}
</div>
) : null}
@@ -608,9 +608,9 @@ export const SessionConfigMenu = memo(function SessionConfigMenu({
· {modelName || 'Select model'}
</span>
{showVariant && currentVariant ? (
<span className="shrink-0 text-[11px] text-muted-foreground">{capitalize(currentVariant)}</span>
<span className="shrink-0 text-2xs text-muted-foreground">{capitalize(currentVariant)}</span>
) : null}
<span className={cn('shrink-0 text-[11px] font-medium', usageLabel ? usageTone : 'text-muted-foreground')}>
<span className={cn('shrink-0 text-2xs font-medium', usageLabel ? usageTone : 'text-muted-foreground')}>
{usageLabel ?? 'No context yet'}
</span>
</span>
@@ -266,7 +266,7 @@ export const ToolCallPart = memo(function ToolCallPart({ part, messageID, direct
{isCompleted && <span className="text-success text-sm font-medium">✓</span>}
{isError && <span className="text-destructive text-sm font-medium">✗</span>}
<span className="font-medium text-foreground truncate">{description}</span>
<span className="text-[11px] font-medium text-highlight shrink-0">sub-agent</span>
<span className="text-2xs font-medium text-highlight shrink-0">sub-agent</span>
{backgroundIndicator}
{subagentSessionId && <ExternalLink className="w-3 h-3 shrink-0 text-primary" />}
</div>
@@ -144,7 +144,7 @@ export function VoiceConversationBar({
</div>
</div>
<div className="flex flex-col items-center">
<p className={cn(RESERVED_LINE_CLASS, 'text-[11px] text-muted-foreground')}>{notice ?? ''}</p>
<p className={cn(RESERVED_LINE_CLASS, 'text-2xs text-muted-foreground')}>{notice ?? ''}</p>
<p className={cn(RESERVED_LINE_CLASS, 'text-xs text-muted-foreground')}>{hint}</p>
</div>
</div>
@@ -82,7 +82,7 @@ export function RepoNavGroup({
)}
>
<span className="flex min-w-0 items-center gap-1.5">
<span className="truncate text-[15px] font-bold tracking-tight text-highlight">
<span className="truncate text-sm font-bold tracking-tight text-highlight">
{name}
</span>
{indicator}
@@ -141,7 +141,7 @@ export function SessionNavRow({ item, isCurrent, onSelect, repoLabel }: SessionN
<span className="max-w-24 shrink-0 truncate text-xs text-highlight">{repoLabel}</span>
)}
{item.worktreeBranch && (
<span className="max-w-24 shrink-0 truncate font-mono text-[11px] text-primary">
<span className="max-w-24 shrink-0 truncate font-mono text-2xs text-primary">
{item.worktreeBranch}
</span>
)}
@@ -12,7 +12,7 @@ export function ScheduleReportsBadge({ total, failed, className }: ScheduleRepor
return (
<span
className={cn(
'absolute -top-1 -right-1 min-w-4 rounded-full px-1 text-center text-[10px] font-medium leading-4 text-primary-foreground',
'absolute -top-1 -right-1 min-w-4 rounded-full px-1 text-center text-2xs font-medium leading-4 text-primary-foreground',
failed > 0 ? 'bg-destructive' : 'bg-primary',
className,
)}
@@ -242,7 +242,7 @@ export function MultiRunCard({
<div className="border-t border-border">
<h4 className="flex items-center gap-2 px-3 pt-3 text-xs font-semibold uppercase tracking-wide text-muted-foreground">
Fusions
<span className="rounded-full border border-border px-1.5 text-[11px] font-medium normal-case">
<span className="rounded-full border border-border px-1.5 text-2xs font-medium normal-case">
{run.fusions.length}
</span>
</h4>
@@ -233,10 +233,10 @@ export function WorktreeSessionGroups({
<div className="flex min-w-0 items-center gap-2">
<span className="truncate text-sm font-medium">{label}</span>
{sourceLabel && source && (
<span className={`shrink-0 rounded-none border px-1.5 text-[10px] leading-4 ${OWNER_BADGE_CLASS[source]}`}>{sourceLabel}</span>
<span className={`shrink-0 rounded-none border px-1.5 text-2xs leading-4 ${OWNER_BADGE_CLASS[source]}`}>{sourceLabel}</span>
)}
{isInUse && (
<span className="inline-flex shrink-0 items-center gap-1 rounded-full border border-success/40 bg-success/15 px-1.5 text-[10px] leading-4 text-success">
<span className="inline-flex shrink-0 items-center gap-1 rounded-full border border-success/40 bg-success/15 px-1.5 text-2xs leading-4 text-success">
<span className="h-1.5 w-1.5 animate-pulse rounded-full bg-success" />
in use
</span>
@@ -245,7 +245,7 @@ export function WorktreeSessionGroups({
{group.sessions.length} {group.sessions.length === 1 ? 'session' : 'sessions'}
</span>
</div>
<div className="truncate font-mono text-[11px] text-muted-foreground" title={group.directory}>{group.directory}</div>
<div className="truncate font-mono text-2xs text-muted-foreground" title={group.directory}>{group.directory}</div>
</div>
</button>
{renderWorktreeActions(group, label, false)}
@@ -41,7 +41,7 @@ export function WorktreeTabs({
<TabsTrigger value="workspaces" className={tabClassName}>
<Layers className="h-3 w-3 shrink-0 text-primary" />
<span className={`min-w-0 truncate ${activeLabelClassName}`}>Worktrees</span>
<span className="shrink-0 rounded-full border border-border bg-card px-1.5 text-[11px] leading-4 text-muted-foreground">
<span className="shrink-0 rounded-full border border-border bg-card px-1.5 text-2xs leading-4 text-muted-foreground">
{workspaces.length}
</span>
</TabsTrigger>
@@ -35,10 +35,10 @@ export function PromptTemplateCard({ template, selected = false, onApply, onEdit
const content = (
<>
<div className="flex flex-wrap items-center gap-2">
<Badge className="border-transparent bg-highlight text-[10px] uppercase tracking-wide text-highlight-foreground">
<Badge className="border-transparent bg-highlight text-2xs uppercase tracking-wide text-highlight-foreground">
{template.category}
</Badge>
<Badge className="border-transparent bg-muted text-[10px] uppercase tracking-wide text-foreground">
<Badge className="border-transparent bg-muted text-2xs uppercase tracking-wide text-foreground">
{template.cadenceHint}
</Badge>
</div>
@@ -29,7 +29,7 @@ function isUnreadRun(lastRun: ScheduleRunSummary): boolean {
function ScheduleJobNewPill() {
return (
<span className="shrink-0 rounded-full bg-primary/15 px-1.5 py-0.5 text-[10px] font-medium text-primary">
<span className="shrink-0 rounded-full bg-primary/15 px-1.5 py-0.5 text-2xs font-medium text-primary">
NEW
</span>
)
@@ -187,7 +187,7 @@ export function ScheduleJobsTable({
{job.retainedWorktreeCount > 0 && (
<span
title="Worktrees this schedule has left on disk. Manage them from the job details."
className="shrink-0 rounded-full bg-muted px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground"
className="shrink-0 rounded-full bg-muted px-1.5 py-0.5 text-2xs font-medium text-muted-foreground"
>
{job.retainedWorktreeCount} worktree{job.retainedWorktreeCount === 1 ? '' : 's'}
</span>
@@ -98,7 +98,7 @@ export function ScheduleRunsTable({
{getRunTitle(run)}
</button>
{isUnread && (
<span className="shrink-0 rounded-full bg-primary/15 px-1.5 py-0.5 text-[10px] font-medium text-primary">NEW</span>
<span className="shrink-0 rounded-full bg-primary/15 px-1.5 py-0.5 text-2xs font-medium text-primary">NEW</span>
)}
</span>
{run.errorText && (
@@ -453,7 +453,7 @@ function FieldLabel({
{required && <span className="text-destructive ml-0.5">*</span>}
</label>
{description && (
<p id={`${id}-description`} className="text-[15px] text-foreground/70 md:text-xs">
<p id={`${id}-description`} className="text-sm text-foreground/70 md:text-xs">
{description}
</p>
)}
@@ -478,7 +478,7 @@ function FieldGroup({
{label}
{required && <span className="text-destructive ml-0.5">*</span>}
</legend>
{description && <p className="text-[15px] text-foreground/70 md:text-xs">{description}</p>}
{description && <p className="text-sm text-foreground/70 md:text-xs">{description}</p>}
{children}
</fieldset>
)
@@ -330,10 +330,10 @@ export function BranchesTab({ repoId, currentBranch }: BranchesTabProps) {
)}
<span className="flex-1 text-sm truncate">{branch.name}</span>
{(isCheckedOutElsewhere || (isCurrent && isRepoWorktree)) && (
<span className="text-[10px] px-1.5 py-0.5 rounded bg-primary/20 text-primary">worktree</span>
<span className="text-2xs px-1.5 py-0.5 rounded bg-primary/20 text-primary">worktree</span>
)}
{branch.type === 'local' && !branch.upstream && !branch.isWorktree && !(isCurrent && isRepoWorktree) && (
<span className="text-[10px] px-1.5 py-0.5 rounded bg-muted text-muted-foreground">local</span>
<span className="text-2xs px-1.5 py-0.5 rounded bg-muted text-muted-foreground">local</span>
)}
{isCurrent && <Check className={`w-4 h-4 ${GIT_UI_COLORS.current}`} />}
</button>
@@ -184,7 +184,7 @@ export function ChangesTab({ repoId, onFileSelect, onClearFileSelection, selecte
)}
Commit {stagedFiles.length > 0 && `(${stagedFiles.length} staged)`}
</Button>
<p className="text-[10px] text-muted-foreground text-center">
<p className="text-2xs text-muted-foreground text-center">
{navigator.platform.includes('Mac') ? '⌘' : 'Ctrl'}+Enter to commit
</p>
</div>
@@ -74,7 +74,7 @@ export function GitFlatFileItem({ file, isSelected, onSelect, onStage, onUnstage
)}
</div>
{file.staged && (
<span className={cn('text-[10px] px-1.5 py-0.5 rounded flex-shrink-0', GIT_UI_COLORS.stagedBadge)}>
<span className={cn('text-2xs px-1.5 py-0.5 rounded flex-shrink-0', GIT_UI_COLORS.stagedBadge)}>
staged
</span>
)}
@@ -198,7 +198,7 @@ export function TerminalWorkspace({ target, directory, isOpen, onLastTerminalExi
>
<span className="truncate">{terminal.title}</span>
{terminal.status === 'exited' && (
<span className="rounded bg-muted px-1.5 py-0.5 text-[10px] text-muted-foreground">
<span className="rounded bg-muted px-1.5 py-0.5 text-2xs text-muted-foreground">
{terminal.exitCode !== undefined ? `exited (${terminal.exitCode})` : 'exited'}
</span>
)}
+1
View File
@@ -48,6 +48,7 @@
--color-syntax-variable: #ffa657;
--color-syntax-operator: #79c0ff;
--color-syntax-punctuation: #d4d4d8;
--text-2xs: 0.625rem;
}
:root:not(.dark) {
+3 -3
View File
@@ -839,13 +839,13 @@ export function SessionDetail() {
handleParentSessionClick();
}}
aria-label="Parent session"
className="mt-0.5 inline-flex max-w-full items-center gap-1 rounded-full border border-info/40 px-2 py-0.5 text-[10px] sm:text-xs text-info transition-colors hover:bg-info/10"
className="mt-0.5 inline-flex max-w-full items-center gap-1 rounded-full border border-info/40 px-2 py-0.5 text-2xs sm:text-xs text-info transition-colors hover:bg-info/10"
>
<CornerUpLeft className="h-3 w-3 shrink-0" />
<span className="truncate">Parent session</span>
</button>
) : (
<p className="flex min-w-0 items-center gap-1 text-[10px] sm:text-xs text-muted-foreground">
<p className="flex min-w-0 items-center gap-1 text-2xs sm:text-xs text-muted-foreground">
{isRemoteServer && (
<Server aria-label="Remote server" className="h-3 w-3 shrink-0 text-highlight" />
)}
@@ -861,7 +861,7 @@ export function SessionDetail() {
variant="outline"
data-testid="session-branch"
title={`Branch: ${headerBranch}`}
className="hidden sm:inline-flex max-w-44 shrink-0 items-center gap-1 border-border bg-card px-2 font-mono text-[11px] font-normal text-muted-foreground"
className="hidden sm:inline-flex max-w-44 shrink-0 items-center gap-1 border-border bg-card px-2 font-mono text-2xs font-normal text-muted-foreground"
>
<GitBranch className="h-3 w-3 shrink-0" />
<span className="truncate">{headerBranch}</span>