The keer-ui component library
56 React + Tailwind components from an earlier product in the keer-style style; the code is placed in the project, as with shadcn, and the project sets the folder itself.
关于该包
这段内容尚未翻译,下面是英文原文。
Components from an earlier product that suit any project on React and Tailwind: 35 primitives and 21 composites. The look is the tokens of the keer-style package.
As with shadcn: sources are copied into the project, not installed as a dependency. The place action puts them in the folder from the target: field of the page /design/keer-ui.md (by default src/ui) and runs by itself after install and update. Files the project edited are not touched by an update.
What it puts in the project:
/design/keer-ui.md: what is inside, settings (target:,tokens:), what the project needs;/design/keer-ui/catalog.html: a catalog: components and their states, opened with a double click;- the library code in the
targetfolder; - norms KU-R01 (the library is intact) and KU-R02 (a component has a states file).
The package does not install dependencies (react, @base-ui/react, class-variance-authority, cn, lucide-react, sonner, next-themes, tailwindcss 4, tw-animate-css, shadcn); they are requirements for the project, and the list is on the page.
Boundary: An earlier product's domain components (leads, tenders, sites, the copilot task queue, the query bar, the application frame with its brand), blocks and screens, vitest tests and the registry are not included. The code is not built or type-checked on install: the package has no npm dependencies.
Source: An earlier product, packages/ui/src, 28.11.2026.
规范 2
| ID | 规范 | 级别 | 模式 | Enforcer |
|---|---|---|---|---|
| KU-R01 | keer-ui 组件库须按页面 /design/keer-ui.md 的 target 字段放入项目文件夹;其清单(.keer-ui.json)中的每个文件都已就位;该文件夹中每个 .ts/.tsx 的相对导入,以及每个 CSS 的 @import,都能找到对应文件。 |
MUST | 拦截 | 检查 |
| KU-R02 | 组件库文件夹中(lib/、hooks/、styles/ 除外)每个组件 <name>.tsx 旁边,都有导出 meta 与 states 的 <name>.states.tsx。 |
SHOULD | 拦截 | 检查 |
“拦截”:enforcer 会阻止违规;“观察”:只记录违规。MUST 级别表示必须遵守;SHOULD 表示默认应当遵守。
动作 3
| 名称 | 作用 | 文件 | 时机 |
|---|---|---|---|
| place | Place the library in the project folder (target: on /design/keer-ui.md); --force replaces edited files too | actions/place.ts | 安装后 更新后 |
| library | The library is intact: files in place, imports find their files 规范 KU-R01 | checks/library.ts | 检查 |
| states | A component has a states file 规范 KU-R02 | checks/states.ts | 检查 |
shtuk check 运行检查;shtuk run keer-ui <名称> 运行任意动作。“安装后”动作只有在包来自可信来源时才会自动运行。
页面 4
这些页面会放到项目中的以下路径。
- /design/
- keer-ui 组件库 页面
- /design/keer-ui/
- catalog.html 文件
- /norms/rules/keer-ui/
- 组件库完整 KU-R01
- 每个组件都有状态文件 KU-R02
包文件 127
它们会放到 .shtukbase/packages/keer-ui/,动作从那里运行。