Code as lines of coloured tokens, read by Shiki with its regular expressions in JavaScript (no WebAssembly). Shiki and each language load the first time they are needed, in the browser or on a server, and the colours are CSS variables.
pnpm dlx shadcn@latest add "https://kinoui.com/r/syntax.json"