Getting started
Introduction
CodeAtlas UI is an open-source Svelte 5 component library with a theme engine (one object sets the color, surface style, radius, density and fonts), a sober solid default, an OKLCH palette 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. - Theme-driven: one
ThemeOptionsobject decides how every component looks. Surfaces are solid paper by default;defaultStyleswitches the whole app toflat,outlined,tonal,clay,neumorphic,frosted,glassorchrome, and blurred styles fall back to opaque for reduced transparency. - A theme engine with eight OKLCH presets, brand presets from one hex color, nine surface styles (
styleis one knob among radius, density, fonts, paper and motion), 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
Gallery 236 numbered demos. Pick pages and hand the list to your AI.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.
Explore
Colors Brand, surface, text, outline and semantic tokens.Materials The five surface tiers, tint, glow and how the surface style changes them.Inputs Buttons, fields, selects and pickers.Templates Full-app pages built with the library.Theme editor Tune a preset and export it as a theme.GitHub Source, issues and changelog.