ui

mcp
Guvenlik Denetimi
Uyari
Health Uyari
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 6 GitHub stars
Code Gecti
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Svelte 5 UI library and design system for SvelteKit and Astro. 380+ accessible components and full page templates (app shell, lists, forms, settings, dashboards, auth, docs), OKLCH themes from one brand color, 14 design styles, mobile-first. Agent-ready: MCP server, skills and llms.txt so coding agents use the real API.

README.md

CodeAtlas UI

The Svelte 5 UI library that ships whole screens, not buttons.

380+ components · full page templates · one theme object · built for you and your coding agent

npm
downloads
svelte 5
license

Docs · Gallery · Theme Studio · Templates · Changelog · llms.txt

What is CodeAtlas UI?

@codeatlasdev/ui is a Svelte 5 component library and design system for SvelteKit and Astro. You get finished page layouts (list, form, settings, dashboard, auth, docs) on top of 380+ accessible components, themed from a single brand color. It runs on its own headless primitives, with no other component library underneath, and every component is written in Svelte 5 runes.

It is also built to be read by coding agents: the package ships an MCP server, agent skills and a generated API manifest, so Claude Code, Codex, Cursor and others use the real props instead of guessing.

How do I install it?

bunx @codeatlasdev/ui init --write

init detects SvelteKit 2, SvelteKit 3 or Astro and wires everything: the stylesheet, the theme, dark mode with no white flash on first paint, error pages and the server hook. Prefer to do it by hand? bun add @codeatlasdev/ui, then follow installation.

Using a coding agent? init --agents also sets up its MCP server, skills and AGENTS.md block. In Claude Code:

/plugin install codeatlas-ui --marketplace codeatlasdev/ui

How do I build a full page?

Pick the page component that matches the screen. This is a complete users list:

<AppList title="Users" data={users} searchKeys={['name', 'email']}>
  {#snippet children(list)}
    <SimpleTable responsive="cards">
      <thead><tr><th>User</th><th>Role</th></tr></thead>
      <tbody>
        {#each list.rows as u (u.id)}
          <tr><td><UserCell name={u.name} email={u.email} /></td><td>{u.role}</td></tr>
        {/each}
      </tbody>
    </SimpleTable>
  {/snippet}
</AppList>

Search, pagination, the empty state and the card layout on phones come with it. CSS you wrote: none.

Screen Component
App frame with rail, panel and mobile nav AppShellLayout
List or CRUD table AppList
Create or edit form AppForm
Settings with side tabs AppSettings
Dashboard or report PageShell + KpiGrid + charts
Sign in, sign up, reset AuthLayout
Documentation site DocsShell
Full-screen view on mobile MobilePane

Every one of them has a copy-paste recipe in the docs and in llms.txt.

How do I make it look like my brand?

Give it one hex color:

// src/lib/theme.ts
import type { ThemeOptions } from "@codeatlasdev/ui/vite";

export const theme: ThemeOptions = {
  presets: [{ id: "acme", color: "#2563eb" }],
  defaultPreset: "acme",
};

The whole palette is derived from it in OKLCH, light and dark, with contrast checked at build time. From there you choose how far to go:

  • 8 built-in color presets, radius, density and fonts in the same object.
  • 9 surface styles through defaultStyle: solid (the default), flat, outlined, tonal, clay, neumorphic, frosted, glass and chrome.
  • 14 design styles (designStyle('swiss'), 'brutalism', 'editorial', 'terminal', 'sketchbook', 'liquid'…): same components, a different visual language.
  • The Theme Studio to tune it all live and copy the result.

Does it work with AI coding agents?

Yes. The agent tools are generated from the same source as the components, so they cannot drift from the code you install.

What What it gives the agent
ca-ui-mcp (MCP server, 27 tools) get_component for real props, search_ui across the gallery, get_recipe for whole pages, check_svelte to validate a file, audit_screen to inspect a rendered page
Agent skills The rules of the library and a reference per component, generated from the source
codeatlas-ui check Static check of .svelte files: unknown components and props (with the nearest real name), deep imports, unstable selectors. No browser
codeatlas-ui audit Renders your routes from 320 to 1280 px in light and dark and reports layout and accessibility findings
llms.txt and markdown twins Every docs page and all 450+ numbered demos as plain markdown

Is it accessible?

Accessibility is checked in the build, not left to each app:

  • Text contrast is measured at 7:1 and outlines at 3:1 in every preset when prefers-contrast: more is on, and the theme build fails a pair under WCAG AA.
  • Touch targets grow to 44 px on coarse pointers, with no override in your app.
  • Overlays use the native <dialog> and popover top layer, so focus, Escape and stacking behave like the platform.
  • Forced colors (Windows high contrast) has its own rules for every blurred or borderless surface.
  • Component tests run axe on every state they render.

What else is in the box?

Area Highlights Import
Layout Box Flex Stack Grid Container Section Surface Card @codeatlasdev/ui
Inputs TextField Select Combobox DatePicker ColorPicker PinInput FileUpload @codeatlasdev/ui
Brazilian forms CPF, CNPJ, CEP and phone masks, MoneyInput in minor units /forms
Overlays Dialog AlertDialog Sheet Drawer Popover CommandPalette @codeatlasdev/ui
Data DataTable (TanStack Table), SimpleTable, LiveList, CSV and JSON export /table
Charts Line, bar, pie, scatter, heatmap, gauge, radar, sparkline (ECharts) /charts
Canvas Infinite canvas, flow editor, whiteboard, auto layout, Yjs collaboration /canvas
Content Markdown, code highlighting, block editor, PDF, maps, motion, sound /markdown /code /map …
SEO <Seo>, JSON-LD, sitemap, generated favicons and Open Graph images /seo /vite

Heavy pieces are opt-in subpaths with optional peers: install echarts, @tanstack/svelte-table or shiki only when you import them.

Coming from React?

codeatlas-ui migrate-react lists the shadcn, Radix, Base UI and MUI imports of a React app with their replacement here, and fixes React props in ported .svelte files (guide). Upgrading between majors is codeatlas-ui migrate; see upgrading.

How do I contribute?

git clone https://github.com/codeatlasdev/ui && cd ui
bun install && bun dev     # package watcher and docs site, one command

One issue, one small PR: bun run issue:start <n>, a failing test first, bun run test before pushing. The same commands work on Windows, macOS and Linux. Read CONTRIBUTING.md and AGENTS.md.

Code of conduct · Security · MIT license


Thanks to our main supporters Fábio Henrique Araújo (@FabioHAraujo) and Richardson Douglas (@Richards0nd) 💛

Made by CodeAtlas

Yorumlar (0)

Sonuc bulunamadi