ThiloDesign System
DV

Spacing

Foundation

4px base grid. All spacing values are multiples of 4px. High-density UI — prefer compact patterns over spacious ones.

Gap scale

gap-0.52px
Tightest spacing — icon + label, dot + text
gap-14px
Between very close elements
gap-1.56px
Pill button contents, nav item icon + label
gap-28px
Badge groups, small button groups
gap-312px
Form field spacing, toolbar items
gap-416px
Section spacing, card grid
gap-624px
Between sections on a page
gap-832px
Major section separation

Padding patterns

PatternClassesUsed for
Compact table cellpy-2.5 px-3Table rows, dense lists
Toolbar / headerpx-4 py-2.5Page header, panel header
Page sectionpx-6 py-5Component showcase sections
Page headerpx-6 py-4Sticky top header bars
Card contentp-6shadcn CardContent default
Sidebar nav itempx-2.5 py-1.5Sidebar links
Compact button (sm)h-7 px-3Toolbar buttons, inline actions
App shell outer gapp-1.5 gap-1.5AppShell panel gaps

Border radius

rounded4px
rounded-md6px
rounded-lg8px
rounded-xl12px
rounded-full999px
ClassWhen to use
roundedSmall elements — code spans, badges (inner)
rounded-mdInput, button, select
rounded-lgDropdown, table container, cards
rounded-xlPanel, AppShell content areas
rounded-fullPills, status dots, avatar

On this page