Native Shell
Native Shell:AI 生成的 UI,在你的應用中原生呈現,涵蓋每個平台。iOS、Android、macOS、Windows 與 Linux 上的應用、GPUI 應用與網頁在執行時載入已簽名、沙箱隔離的 TSX 模組並繪製 th
AI 翻譯
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證A design system that applies what research has measured, such as tap size and contrast, and decides everything else once, so every screen stays consistent.
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗Kookie UI is a design system. A component library gives you parts and leaves the decisions to you. Kookie UI is the decisions: the rules, the patterns and the reason for each one. The components are how those decisions reach your screen.
Some design questions have measured answers. A fingertip needs a target of about 44 pixels, text needs enough contrast to read, and people group things that sit close together. Kookie UI applies these answers on every screen, and no prop can override them. Every other question is a judgment, such as a corner radius or the accent colour. Kookie UI makes each judgment once, in one place, so one change reaches every screen.
The same idea decides what a component is. Components are sorted by what they do, not by how they look, so tabs and a segmented control are two components, although both are a row of segments. Patterns, such as an app frame, a form or a dialog, are part of the system too, because consistency is won or lost where components meet.
The result is an app that stays consistent as it grows, because each decision is made in the system and not again in each file. Read the principles and the patterns at ui.kookie.design.
Pre-release. @kushagradhawan/kookie-ui-react is not on npm yet. Build the workspace to use it.
variant prop. tone states what a thing means. emphasis states how loud it
is. The two questions stay apart, so a quiet destructive action is expressible.gap on Flex, Stack and Grid.size is an index, not a measurement. One numeral joins a designed set: the height, the
inline padding, the corner, the icon box and the label step.depth is one word on the Theme. Each family then decides
what it does with light.Each of those is a refusal, and each refusal has a written reason and a stated escape.
The site in apps/docs is the documentation. It has four parts.
| route | what it holds |
|---|---|
/ | 26 guideline chapters: getting started, patterns and foundations |
/components | the reference for 64 components, with generated props tables and the refusals |
/builder | a composition editor that exports React code and reviews the result |
/preview and /matrix | the judging surfaces: real screens, and the axis grid |
any path + .md, or Accept: text/markdown | the same page as markdown, for an agent |
/llms.txt and /llms-full.txt | the index of every page, and the whole site in one file |
Run it:
pnpm install
pnpm run build
cd apps/docs && pnpm run dev
Build the package first. The documentation app imports the built output.
The library is built so that a coding agent learns it from the package rather than from you.
variant points at tone and emphasis, a margin prop points at Box..d.ts.@kushagradhawan/kookie-ui-react/eslint-plugin catches the three mistakes the compiler cannot see: a data-
axis attribute, utility classes or raw values in className and style, and a refused prop
inside a spread. It brings no parser, so a TypeScript project puts it after its own parser
entry.npx @kushagradhawan/kookie-ui-react init writes the library's rules into your AGENTS.md, CLAUDE.md or
.cursor/rules. It prints its plan first and changes nothing without --write.@kookie-ui/mcp is an MCP server with four tools, including check_usage, which reports
every refused prop, attribute, utility class and raw value in a piece of JSX..md, and /llms.txt lists them all.The AI agents chapter explains each one.
packages/ui @kushagradhawan/kookie-ui-react: the components, the token generator, the ESLint plugin and the tests
packages/mcp @kookie-ui/mcp: the MCP server, built from the documentation's own data
apps/docs the documentation site, the component reference and the builder
docs/ the governance documents
Run these from the repository root. They need pnpm 12 and Node 24.
| command | what it does |
|---|---|
pnpm run ci | build, test, lint and the CSS budget gate. Run this before you push. |
pnpm run build | checks the generated tokens, builds the JS and the types, bundles the stylesheet, then verifies the packed artifact |
pnpm run test | two projects: the generator laws in Node, the computed values in a browser |
pnpm run lint | ESLint and tsc --noEmit |
pnpm run measure | the CSS budget gate. The numbers live in packages/ui/budget.json. |
The token layer is generated. Regenerate it after you change packages/ui/src/tokens/config.ts:
pnpm --filter @kushagradhawan/kookie-ui-react run tokens
Read them in this order.
docs/THESIS.md states what the system is for and how it governs itself.docs/DECISIONS.md is the specification. It states what the system is now.docs/REVIEW.md holds the audits and what each one resolved.docs/ENGINEERING.md states the code conventions and the testing rules.docs/LOG.md is the dated decision log. It states how the system became this,
and what was rejected on the way.DECISIONS.md is what the system is. LOG.md is how it got there. The chapters in apps/docs
state both for a reader who did not make the decisions.
See CONTRIBUTING.md. The tests assert system laws, never snapshots, and a
law reads the value the browser computes rather than the value a stylesheet declares.
@shadcn/react package. Many part names, such as those of Dialog, Menu and Select, follow
shadcn/ui's.MIT.