Your UI is just a table
Describe the whole screen every frame. If it should be there, return it. There are no instance trees to keep in sync.
Why immediate mode

Describe the whole screen every frame. If it should be there, return it. There are no instance trees to keep in sync.
Why immediate mode
Everything is a flat list of shapes you can measure, pad, tint, clip and move after it's made.
Learn composites
Stacks, alignment, padding and fractional sizing are plain functions over composites. No UIListLayout in sight.
Learn layout
Springs and tweens for numbers, colours, vectors, UDims and more, with colours blended in Oklab.
Learn animation
Hit regions for hover, press, click, drag and scroll, ordered by what's drawn on top.
Learn hit regions
Instances are pooled and only changed properties are written. A typical frame takes a fraction of a millisecond.
Learn mounting
const function button(s: ink.Scope, label: string): (ink.Composite, boolean)
local content = ink.text(label, STYLE)
content = ink.pad(content, ink.edges.xy(16, 8))
const hit = ink.hit_region(s:key("hit"), content.bounds)
const color = ink.tween(s:key("color"), if hit.state == Enum.GuiState.Hover then HOVER else IDLE, 0.2)
local bg = ink.solid(content.bounds, color)
bg = ink.round(bg, ink.corners.all(8))
return ink.compose({ bg, content, hit }), hit.clicked
endconst play, play_clicked = button(s:key("play"), "Play")
const quit, quit_clicked = button(s:key("quit"), "Quit")
return ink.align(ink.v_stack({ play, quit }, 8), screen, ink.ALIGN_MID, ink.ALIGN_MID)