Layout

App shell, grids, page background.

Desktop first: designs are 1440 wide, the shell works down to the 1024 tablet breakpoint. The content area always fills the space next to the rail (width 100 %), never fit-content, or the page shrinks to its cards.

88
Top bar · 72
Content · width 100% · padding 24 · gap 16

App shell

  • Rail 88 at the left, full height. Main items top; Pengaturan + Bantuan at the bottom.
  • Top bar 72: page title left; bell, company pill, avatar right.
  • Content: padding 24 at the sides, 8 at the top, 40 at the bottom; gap 16 between blocks.
  • Page heading row: title + note left, the one primary button right, above the data it acts on.
  • Below 1024 the rail items move into a left Sheet opened by a menu button; no bottom tab bar. Phone (<768) is parked.
--breakpoint-desktop1440 · design width--breakpoint-tablet1024 · rail → sheet

Content patterns · 3, nothing else

Cards in one row always share one height (stretch). Pick the pattern by what the page shows.

A · Tile row

3 equal tiles (flex 1). Balances, Gajian, Slip. One figure + one action each.

B · Profile column 320 + flex

Beranda: profile and HR contact at the left (320), tiles and lists at the right.

C · Flex + side 400

Cuti, Slip gaji: the list or document wide, a 400 helper card (calendar, months) at the right.

Sheet · 480, floating

Right side, 12 inset on top/right/bottom, radius 16, over --backdrop. Footer: two equal buttons (Batal + primary). Used for every form with 2+ fields (Ajukan cuti, Ubah kontak).

Toast · bottom centre

Centred in the content area, 24 from the bottom; 96 from the bottom on screens with a pager so it never covers paging. One at a time. Dialog: 460 wide, centred.

Page background

One background for every full page: the app shell, login and invite pages. Never on cards, panels or dialogs. Defined once as --page-gradient; apply bg-page in AppShell and AuthLayout.

bg-background + --page-gradient
css
background-color: var(--background);background-image:  radial-gradient(ellipse 25% 27.5% at 34% 0% in oklab,    #E91E780D 0%, #FFFFFF00 100%),   /* brand pink 5% */  radial-gradient(ellipse 45% 55% at 100% 0% in oklab,    #2D3DEC1F 0%, #FFFFFF00 100%),   /* blue 12%, top right */  radial-gradient(ellipse 65% 65% at 8% 0% in oklab,    #2D3DEC17 0%, #FFFFFF00 100%);   /* blue 9%, top left *//* Tailwind: bg-page  (defined once in globals.css as --page-gradient) */