Getting started
Introduction
CodeAtlas UI is an open-source Svelte 5 component library with a sober solid default, opt-in glass materials, an OKLCH theme engine and native-feeling mobile behavior.
CodeAtlas UI gives Svelte 5 apps full screens, not just bricks: page templates, an app shell, data tables, charts, forms and overlays, all built on a headless layer of our own and themed through CSS custom properties.
<AppList title="Users" data={users} searchKeys={["name", "email"]}>
{#snippet children(list)}
<SimpleTable>
{#each list.rows as u (u.id)}
<tr><td><UserCell name={u.name} email={u.email} /></td></tr>
{/each}
</SimpleTable>
{/snippet}
</AppList>
That is a whole users page: header, search, pagination and empty state, with no CSS written.
What you get
- Page templates instead of primitives:
AppList,AppForm,AppSettings,PageShellandAppShellLayoutbring layout, spacing and empty states. - Sober by default, glass on request: surfaces are solid and opaque out of the box. The
liquidrecipe (ordefaultStyle: "glass") brings back Liquid Glass, with five material tiers over a realbackdrop-filterand opaque fallbacks for reduced transparency. - A theme engine with eight OKLCH presets, brand presets from one hex color, nine surface styles, fifteen design-style recipes and no flash on load.
- Native feel on mobile: safe areas, keyboard handling, 44px touch targets, bottom sheets with swipe to dismiss and a browser chrome color that follows the page.
- Accessibility: WAI-ARIA keyboard and focus behavior, axe-tested components, reduced motion and reduced transparency support.
- Small bundles: Charts, DataTable and CodeSnippet are separate entry points with optional peers, so they stay out of your bundle unless imported.
- Agent-ready: closed prop vocabularies, typed props, an MCP server,
llms.txtand installable skills.
Install
bun add @codeatlasdev/uinpm install @codeatlasdev/uipnpm add @codeatlasdev/uiStart here
Installation SvelteKit, Astro and plain Vite setup.Theming Theme options, presets, schemes, surface styles and token overrides.Mobile Safe areas, keyboard, browser chrome and layout components.Accessibility What is handled for you and what is not.Internationalization English by default, pt-BR built in, overridable.AI agents Skills, llms.txt and the agent guide.