The Shtukbase style
The Shtukbase identity as a style package: raspberry on white paper, a 12-hue palette, Outfit and Onest, the Viewfinder mark, even edges. Tokens in DTCG filling the shadcn theme names, built CSS, fonts, group backgrounds, the mark and wordmark, and six norms.
关于该包
这段内容尚未翻译,下面是英文原文。
The visual identity of Shtukbase as a style package of the design contract: swap it for another style and every component and lens built to the contract changes its look.
What it puts in the project, in /design/shtukbase-style/:
tokens.jsonandtokens.dark.json: the style in the W3C DTCG format. They fill every name of the contract: the shadcn theme names (--background,--primary,--card,--chart-1...), the Tailwind v4 names (--font-sans,--shadow-md) and the extension--sb-(the twelve hues with-tint,-soft,-ink, the shadows--sb-edge,--sb-shadow-lift,--sb-shadow-sheet, the glow--sb-glow, the motion--sb-ease,--sb-dur).tokens.css: the CSS built from the two files (light on:root, dark on.dark, [data-theme="dark"]). Thebuildaction writes it; the checkfreshkeeps it honest.style.css: what tokens alone do not give: the group backgrounds.sb-bg-dots,-grid,-lines,-paper,-tint,-fadeand others, the canvas.sb-canvas, edges.sb-edge,.sb-sheet,.sb-glow,.sb-glow-area,.sb-lift. Onlyvar(--...)of the contract.fonts.css: Google Fonts links for Onest, Outfit and Geist Mono (all SIL Open Font License 1.1).assets/: the mark (mark.svg), the wordmark (wordmark.svg), a favicon with fixed colours and the five package icons in icon style 79 (icons/).- the pages of the style:
style.md(principles),surfaces.md(surfaces, edges, shadows, backgrounds),mark.md(the mark and the wordmark),icons.md(icon style 79). The specimen shows them as sections. - norms in
/norms/rules/shtukbase-style/:- SBS-R01: the document is white; check
background. - SBS-R02: the icon stands left, its top level with the title; a person judges it (
judges/icon-left.md). - SBS-R03: a card is at most 3:1; check
card-ratio. - SBS-R04: edges and shadows are even on all sides; check
shadow-even. - SBS-R05: the CSS of the style is rebuilt from its tokens; check
fresh. - SBS-R06: no plate under an icon; a person judges it (
judges/no-plate.md).
- SBS-R01: the document is white; check
On install the action adopt writes style: shtukbase-style in the header of /design/design.md when it names no style yet.
How to use: put <link rel="stylesheet" href="/design/shtukbase-style/fonts.css">, then tokens.css, then style.css into a page; use var(--primary), var(--sb-hue-5-soft) and the rest. A dark theme is a class dark or data-theme="dark" on any element.
Boundary: the package gives the values and the few classes of the style itself, not components: cards, chips and buttons are in the component libraries (shtukbase-ui-html, shtukbase-ui-react). The fonts are linked, not shipped: offline the system fonts named in the tokens are used. The mark has an accent token (--sb-accent, raspberry); the open question of raspberry or blue for the mark stays open in the identity notes.
Sources: the identity decisions of 28-29.11.2026 (shtuks/projects/shtukbase/assets/logo/identity.md), the palette (palette.css) and the package map mock (card edge, glow, chips, group backgrounds).
规范 6
| ID | 规范 | 级别 | 模式 | Enforcer |
|---|---|---|---|---|
| SBS-R01 | The page of a document, a form or a screen has a white background: html, body and :root take var(--background) or white in the light theme, with no grey paper, dots, grid or gradient behind the text. Patterns and tints belong to canvases and areas. |
MUST | 拦截 | 检查 |
| SBS-R02 | In a card, a row and a header the icon stands on the left and the title and text on the right; the top of the drawn icon is level with the top of the first line of the title. The icon is not above the text and the text is not under the icon, except a tile with no description (the icon above the name). |
SHOULD | 观察 | 评审模型 |
| SBS-R03 | A card is not longer than 3:1 (width to height, or height to width); a longer element is a row of a list. A card is as tall as its content, with no empty space added. A tile without text (an icon over a name) is almost square, 5:4. |
SHOULD | 拦截 | 检查 |
| SBS-R04 | An edge, a glow or a shadow is the same on all sides: the offset is 0 (at most 1 px), the line is a ring of 1 px, the halo a blur. A shadow pushed down or sideways, or pulled in with a negative spread so that only one side shows, is not used. Take var(--sb-edge), var(--sb-shadow-lift), var(--sb-shadow-sheet) or var(--sb-glow). |
MUST | 拦截 | 检查 |
| SBS-R05 | The file /design/shtukbase-style/tokens.css is exactly what the action build writes from tokens.json and tokens.dark.json of the style. |
MUST | 拦截 | 检查 |
| SBS-R06 | An icon is drawn on the surface it stands on. No coloured or grey plate, tile, circle or square goes under an icon: not in a card, a row, a header, a tile or a button. Style 79 brings its own white rim and soft shadow; that is all the backing an icon gets. |
MUST | 观察 | 评审模型 |
“拦截”:enforcer 会阻止违规;“观察”:只记录违规。MUST 级别表示必须遵守;SHOULD 表示默认应当遵守。
动作 6
| 名称 | 作用 | 文件 | 时机 |
|---|---|---|---|
| build | Build tokens.css of the style from its tokens | actions/build.ts | 安装后 更新后 |
| adopt | Set this style in /design/design.md when the project has none | actions/adopt.ts | 安装后 更新后 |
| background | The document is white 规范 SBS-R01 | checks/background.ts | 检查 |
| card-ratio | A card is at most 3:1 规范 SBS-R03 | checks/card-ratio.ts | 检查 |
| shadow-even | Shadows are even on all sides 规范 SBS-R04 | checks/shadow-even.ts | 检查 |
| fresh | The CSS of the style is rebuilt from its tokens 规范 SBS-R05 | checks/fresh.ts | 检查 |
shtuk check 运行检查;shtuk run shtukbase-style <名称> 运行任意动作。“安装后”动作只有在包来自可信来源时才会自动运行。
页面 23
这些页面会放到项目中的以下路径。
- /design/shtukbase-style/
- fonts.css 文件
- Icons: style 79, the half sticker 页面
- The mark and the wordmark 页面
- style.css 文件
- The Shtukbase style 页面
- Surfaces, edges and backgrounds 页面
- tokens.css 文件
- tokens.dark.json 文件
- tokens.json 文件
- /design/shtukbase-style/assets/
- favicon.svg 文件
- mark.svg 文件
- wordmark.svg 文件
- /design/shtukbase-style/assets/icons/
- agents.svg 文件
- core.svg 文件
- lenses.svg 文件
- schedule.svg 文件
- tasks.svg 文件
- /norms/rules/shtukbase-style/
- The document is white SBS-R01
- The icon stands left, level with the title SBS-R02
- A card is at most 3:1 SBS-R03
- Shadows are even on all sides SBS-R04
- The CSS of the style is rebuilt from its tokens SBS-R05
- No plate under an icon SBS-R06
包文件 12
它们会放到 .shtukbase/packages/shtukbase-style/,动作从那里运行。