Skip to content

fix(site/src): replace hardcoded text-[13px] with scale tokens outside agents - #28071

Open
tracyjohnsonux wants to merge 7 commits into
mainfrom
tracy/replace-13px-font-tokens
Open

fix(site/src): replace hardcoded text-[13px] with scale tokens outside agents#28071
tracyjohnsonux wants to merge 7 commits into
mainfrom
tracy/replace-13px-font-tokens

Conversation

@tracyjohnsonux

@tracyjohnsonux tracyjohnsonux commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Replaces the arbitrary text-[13px] value with the design-system tokens text-sm (14px) or text-xs (12px) in the 18 non-agents files that used it. AgentsPage usages and modules/resources/AgentMetadata.tsx are intentionally left alone; they'll be handled with the agents UI separately.

Because the custom Tailwind scale bakes font-weight: 500 into text-xs/text-sm, font-normal was added wherever the text previously rendered at 400 and is prose, code, or log content, so only the size changes there. Short labels, headers, and numeric values take the token's 500 weight as-is.

Token decisions

File Token Rationale
components/Logs/LogLine.tsx text-xs font-normal Dense mono log output; 12px keeps line-height close to current
components/PaginationWidget/PaginationAmount.tsx text-xs font-normal Caption-style "showing X of Y" text
pages/IconsPage/IconsPage.tsx (figcaption) text-xs font-normal 88px-wide icon captions
pages/WorkspacesPage/WorkspacesButton.tsx text-xs font-normal Secondary line under the template name in the combobox
modules/templates/TemplateExampleCard.tsx, pages/CreateTemplateGalleryPage/... text-xs font-normal Secondary card description prose (and its "Read more" link)
components/FullPageLayout/Sidebar.tsx / Topbar.tsx text-sm (Topbar adds font-normal) Nav chrome; Topbar is a container so font-normal avoids leaking 500 into all children
components/Paywall/PaywallPremium.tsx text-sm font-normal Feature list prose (compact variant)
modules/templates/TemplateFiles/TemplateFiles.tsx / TemplateFileTree.tsx text-sm File headers/tree labels (header already font-medium)
modules/workspaces/WorkspaceOutdatedTooltip.tsx text-sm font-normal Tooltip body prose
pages/WorkspacePage/ResourcesSidebar.tsx text-sm font-normal Help text prose
pages/AISettingsPage/.../CredentialField.tsx text-sm font-normal Mono credential input
pages/DeploymentSettingsPage/Option.tsx text-sm Already font-semibold
pages/HealthPage/Content.tsx text-sm font-normal Mono detail block
pages/TemplateVersionEditorPage/TemplateVersionEditor.tsx text-sm "Files" panel header label
pages/TemplatePage/TemplateInsightsPage/TemplateInsightsPage.tsx text-sm (font-normal on prose/empty state) Data labels and values in insight panels

Storybook review checklist

Stories directly covering changed components:

  • Logs/LogLine and Logs/Logs
  • Paywall/PaywallPremium
  • TemplateExampleCard
  • TemplateFiles and TemplateFileTree
  • WorkspaceOutdatedTooltip
  • CreateTemplateGalleryPageView
  • IconsPage
  • TemplateInsightsPage
  • TemplateVersionEditor (also exercises FullPageLayout Topbar/Sidebar)

Indirect coverage for components without their own stories:

  • PaginationAmountPaginationWidget/PaginationContainer stories, plus paginated page views (UsersPageView, AuditPageView, ConnectionLogPageView)
  • WorkspacesButtonWorkspacesPageView stories (open the "New workspace" combobox)
  • HealthPage/ContentHealthPage/*Page stories (DERPPage, DatabasePage, etc.)
  • ResourcesSidebarWorkspacePage/Workspace stories (failed-build state)
  • FullPageLayout Topbar/SidebarTemplateVersionEditor stories
  • CredentialFieldProviderForm / AddProviderPageView stories

No story exists for DeploymentSettingsPage/Option; verify on the deployment settings page (option value pills).


🤖 This PR was generated by Coder Agents on behalf of @tracyjohnsonux.

@linear-code

linear-code Bot commented Aug 12, 2026

Copy link
Copy Markdown

DES-22090

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant