The keer-style style
A graphite-and-champagne style taken from an earlier product: tokens in one CSS file, elements in plain CSS, showcases and three norms: color, corner radius and shadow only from tokens.
关于该包
这段内容尚未翻译,下面是英文原文。
The style: "Draft, graphite, champagne" from an earlier product. The package suits any project.
What it puts in the project:
/design/keer-style.md: what the style is, principles, the formula, when to apply what, how to connect it;/design/keer-style/tokens.css: all the values: colors, corner radii, shadows, spacing, fonts, motion; two themes ("Draft" and "Grain") and a dark variant of "Draft" (draft-dark) for the lens skin;/design/keer-style/elements.css: buttons, cards, fields, a table, badges, empty states in plain CSS (classesks-…);/design/keer-style/showcase.htmlandtokens.html: showcases, opened with a double click;- norms KS-R01 (color), KS-R02 (corner radius), KS-R03 (shadow) with checks on Bun.
The checks look at the project's CSS, HTML and code. Value files are marked with the word @tokens in the first lines; raw values are allowed in them.
From these tokens the kit-style package builds the "Draft" lens skin (skins/keer.css, the script scripts/skin-keer.ts). If you change the tokens, rebuild the skin.
Boundary: the package does not install the Geist font (without it, the system font is used) and does not bring the ten themes of the source application. The dark draft-dark lies in the tokens only as a source for the lens skin; the style's pages do not turn it on themselves. React components are in the keer-ui package.
Source: An earlier product, shtuks/design/ and packages/ui/src/styles/tokens.css, state as of 28.11.2026.
规范 3
| ID | 规范 | 级别 | 模式 | Enforcer |
|---|---|---|---|---|
| KS-R01 | 项目的 CSS、HTML 和代码中不得有原始颜色:十六进制、带数字的 rgb()、hsl()、oklch(),颜色属性中的颜色名,以及 Tailwind 色板(bg-gray-500、text-white)。颜色须取自 keer-style 风格的 var(--ds-…)。 |
MUST | 拦截 | 检查 |
| KS-R02 | CSS 和 HTML 中的 border-radius 只能取 var(--ds-radius-…)(或其上的 calc())、0 或 50%;在 Tailwind 中,只能用 rounded-none|xs|sm|md|lg|xl|2xl|3xl|4xl|full,任意值 rounded-[…] 仅在使用圆角变量时允许。 |
MUST | 拦截 | 检查 |
| KS-R03 | CSS 和 HTML 中的 box-shadow 只能是 none 或一组 var(--…);唯一允许的复合形式是描边 [inset] 0 0 0 <宽度(至多 2px 或变量)> <颜色变量>。在 Tailwind 中,任意值 shadow-[…] 受同样约束。 |
SHOULD | 拦截 | 检查 |
“拦截”:enforcer 会阻止违规;“观察”:只记录违规。MUST 级别表示必须遵守;SHOULD 表示默认应当遵守。
动作 3
| 名称 | 作用 | 文件 | 时机 |
|---|---|---|---|
| colors | Color only from tokens 规范 KS-R01 | checks/colors.ts | 检查 |
| radii | Corner radius only from the scale 规范 KS-R02 | checks/radii.ts | 检查 |
| shadows | Shadow only from tokens 规范 KS-R03 | checks/shadows.ts | 检查 |
shtuk check 运行检查;shtuk run keer-style <名称> 运行任意动作。“安装后”动作只有在包来自可信来源时才会自动运行。
页面 8
这些页面会放到项目中的以下路径。
- /design/
- keer-style 风格 页面
- /design/keer-style/
- elements.css 文件
- showcase.html 文件
- tokens.css 文件
- tokens.html 文件
- /norms/rules/keer-style/
- 颜色只能来自令牌 KS-R01
- 圆角只能取自刻度 KS-R02
- 阴影只能来自令牌 KS-R03
包文件 5
它们会放到 .shtukbase/packages/keer-style/,动作从那里运行。