Skip to content

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

fix(ui): put text-xs and text-sm on the type ladder (12px and 15px) (#2619)

Raghav Chamadiya45b594b90ad0
diff --git a/packages/ui/styles/globals.css b/packages/ui/styles/globals.css
index 1312b6831..6c9dae1fe 100644
--- a/packages/ui/styles/globals.css
+++ b/packages/ui/styles/globals.css
@@ -354,11 +354,14 @@
/* Micro sizes for dense chrome: `caption` (10px) for uppercase micro-labels
and axis ticks, `2xs` (11px) for secondary metadata one step under xs.
- Use these instead of arbitrary text-[10px]/text-[11px] brackets. */
+ Use these instead of arbitrary text-[10px]/text-[11px] brackets.
+ `xs` and `sm` sit on the product scan ladder (52/22/18/15/12/10, see the
+ design language): 12px secondary copy and 15px body. They were 13 and
+ 14px, which put every caption and body line off the ladder. */
--text-caption: 0.625rem;
--text-2xs: 0.6875rem;
- --text-xs: 0.8125rem;
- --text-sm: 0.875rem;
+ --text-xs: 0.75rem;
+ --text-sm: 0.9375rem;
--text-base: 0.9375rem;
--text-lg: 1.0625rem;
--text-xl: 1.375rem;