@codeatlasdev/ui

中文文档
4.6.0发布于 2026/10/26MITTypeScriptES Module构建来源已验证近 30 天下载 4098

Svelte 5 UI framework. DX-first, AI-ready. Build complete interfaces with zero CSS decisions.

原始使用文档
文档目录6 节
  1. ship the whole screen, not the button.
  2. a whole page in 12 lines
  3. your brand in one hex
  4. why it hits different
  5. what's inside
  6. hack on it

@codeatlasdev/ui

ship the whole screen, not the button.

svelte 5 · one theme object · your agent already knows it

npm svelte 5 license

live demo · docs · theme editor · changelog


bunx @codeatlasdev/ui init --write

that's the setup. theme, dark mode, error pages, no white flash. sveltekit or astro.


a whole page in 12 lines

<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 ✓ empty state ✓ cards on mobile ✓ css you wrote: 0


your brand in one hex

export const theme = defineTheme({
  presets: [{ id: 'acme', color: '#2563eb' }],
  defaultPreset: 'acme',
});

every token derives from it, light and dark, on the first frame. want a vibe? designStyle('swiss'), 'brutalism', 'sketchbook', 'liquid' (the glass one)… same components, new language.


why it hits different

🧱 pages, not bricksAppList AppForm AppSettings AppShellLayout AuthLayout DocsShell
🎨 tokens all the way downno raw px in components, a lint fails the build if one sneaks in
🪟 style is a theme knobdefaultStyle picks solid (default), flat, outlined, tonal, clay, frosted, glass…; <Surface material="auto"> follows it
🧭 real layersnative <dialog> + popover top layer, no z-index wars
♿ boring stuff, guaranteedaa/aaa contrast, 44px touch targets, no sideways scroll. tested
🤖 agent-nativeskills, llms.txt and an MCP server (ca-ui-mcp) generated from the code

what's inside

layout Box Flex Stack Grid Container Section Surface Card shells AppShellLayout PageShell MobilePane StickyActions DocsShell inputs Button TextField Select Combobox DatePicker PinInput MoneyInput … overlays Dialog AlertDialog Sheet Drawer Popover Tooltip CommandPalette data DataTable SimpleTable KpiGrid LiveList + 8 charts (/charts) seo Seo, json-ld, sitemap, generated favicons + og images (/seo, /vite)

heavy stuff is opt-in: /charts needs echarts, /table needs @tanstack/svelte-table, /code needs shiki.


hack on it

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

contributing · code of conduct · security · MIT


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

made by codeatlas

版本与发布记录

@codeatlasdev/ui 共发布 35 个版本,首次发布于 2026/09/27;过去 12 个月发布了 35 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
4.6.0latest2026/10/2615 天前
4.5.02026/10/1723 天前
4.4.02026/10/1723 天前
4.3.02026/10/1724 天前
4.2.02026/10/1724 天前
4.1.02026/10/1624 天前

关于 @codeatlasdev/ui 的常见问题

@codeatlasdev/ui 是什么?

Svelte 5 UI framework. DX-first, AI-ready. Build complete interfaces with zero CSS decisions.

如何安装 @codeatlasdev/ui?

在项目目录运行 npm install @codeatlasdev/ui,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:svelte(^5.33.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。它还提供命令行工具 ca-ui-mcp、codeatlas-ui,可以用 npx ca-ui-mcp 直接运行。

@codeatlasdev/ui 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@codeatlasdev/ui 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@codeatlasdev/ui 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22.12.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@codeatlasdev/ui 可以商用吗?

@codeatlasdev/ui 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@codeatlasdev/ui 的下载量有多少?

根据 npm 官方下载统计,@codeatlasdev/ui 在 2026/10/10 – 2026/11/08 这 30 天内被下载 4,098 次,日均约 137 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@codeatlasdev/ui 还在维护吗?

最新版本 4.6.0 发布于 2026/10/26(15 天前);至今共发布 35 个版本,其中过去 12 个月发布了 35 个;首次发布于 2026/09/27。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。