#781
Full page
Full-page ThemeIsland with `document`: html and body take the island's preset and scheme while it is mounted.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Full page" pattern (@codeatlasdev/ui demo #781, layout/theme-island) in my app.
Call get_demo({ ids: ["#781"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: A public landing or auth page with its own preset and scheme inside an app that uses another one.
Keep these library parts, with the props and tokens the demo uses:
- Button, ThemeIsland from "@codeatlasdev/ui"
Behaviour to keep:
- `<ThemeIsland preset="rose" scheme="light" document>` is the page root
- Closing it restores the app preset and scheme
Reduced motion: the demo handles it; keep that branch.
Keyboard: operable; keep the focus order and key handling.
Change only the copy and the data. Use the theme tokens (--ca-*), never raw colours. Library parts
- Button
@codeatlasdev/ui - ThemeIsland
@codeatlasdev/ui
How it is built
- `<ThemeIsland preset="rose" scheme="light" document>` is the page root
- Closing it restores the app preset and scheme
Related
Loading source.