Component mockups showing current inconsistencies alongside the proposed standardized versions from docs/ui-font-spacing-audit.md. Each section isolates a specific problem area.
The current UI uses 18 distinct font sizes. The proposed scale reduces this to 7 well-defined stops. Sizes shown at actual rendered pixels (root = 13px).
Messages are mostly consistent already. The main issue is leading-[1.7] vs leading-[1.55] for thinking blocks, and the body text using text-[13px] while the textarea uses text-base.
Can you refactor the authentication module to use JWT tokens instead of session cookies?
I'll refactor the auth module. Let me start by examining the current implementation.
Can you refactor the authentication module to use JWT tokens instead of session cookies?
I'll refactor the auth module. Let me start by examining the current implementation.
The "uppercase semibold" section header is a core pattern used across the sidebar, dropdowns, and settings. Currently 5+ variations exist with different font sizes and tracking values.
Currently, buttons use 4+ different size/weight/padding combinations for similar roles. The proposal standardizes to 3 tiers.
Dropdown items vary in font size and padding across CommandMenu, FileMenu, ModelSelector, ProjectSwitcher, SessionContextMenu, and Header dropdowns.
Sidebar horizontal padding varies (px-1 through px-3.5) across different sections. Brand font is applied via inline style everywhere.
ToolItem uses different padding and max-height for its result area vs SkillItem and ToolGroupItem.
Currently 10 distinct line-height values. The proposal reduces to 4 semantic tiers.
Uppercase section headers alone use 5+ different tracking values. Brand text uses two different values.
Gaps currently range from gap-px to gap-4 with 10+ distinct values. The proposal defines 4 semantic tiers.
Modal body text and button sizing differ between ConfirmModal, RewindBanner, and QrModal.
Are you sure you want to delete this session? This action cannot be undone.
Are you sure you want to delete this session? This action cannot be undone.
| Property | Before (count) | After (count) | Reduction |
|---|---|---|---|
| Font sizes | 18 values | 7 values | -61% |
| Line-heights | 10 values | 4 tiers | -60% |
| Letter-spacings | 11 values | 3 values | -73% |
| Section header variants | 9 variants | 2 tiers | -78% |
| Button patterns | 5+ patterns | 3 tiers | -40% |
| Dropdown item patterns | 6 patterns | 1 pattern | -83% |
| Gap values | 10+ values | 4 tiers | -60% |
| Inline font-family styles | 30+ instances | 0 (use font-brand class) | -100% |