ShtukbaseStandard

The keer-style style

keer-style · версия 0.1.2
Дизайн3 нормы3 проверки

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 (classes ks-…);
  • /design/keer-style/showcase.html and tokens.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 и коде проекта нет сырых цветов: hex, rgb(), hsl(), oklch() с числами, названий цветов в цветовых свойствах и палитры Tailwind (bg-gray-500, text-white). Цвет берётся из var(--ds-…) стиля keer-style.
MUST не пускает
проверка
KS-R02
border-radius в CSS и HTML берёт var(--ds-radius-…) (или calc() на нём), 0 или 50 %; в Tailwind — rounded-none|xs|sm|md|lg|xl|2xl|3xl|4xl|full, произвольное rounded-[…] — только с переменной радиуса.
MUST не пускает
проверка
KS-R03
box-shadow в CSS и HTML — none или список var(--…); единственная разрешённая составная форма — кольцо [inset] 0 0 0 <ширина до 2px или var> <цвет-переменная>. В Tailwind произвольное shadow-[…] подчиняется тому же.
SHOULD не пускает
проверка

«Не пускает» — enforcer останавливает нарушение; «наблюдает» — только отмечает его. Уровень MUST — обязательно, SHOULD — по умолчанию да.

Действия 3

ИмяЧто делаетФайлКогда
colorsColor only from tokens
норма KS-R01
checks/colors.ts
проверка
radiiCorner radius only from the scale
норма KS-R02
checks/radii.ts
проверка
shadowsShadow only from tokens
норма KS-R03
checks/shadows.ts
проверка

Проверки запускает shtuk check, любое действие — shtuk run keer-style <имя>. Действия «после установки» запускаются сами, только если пакет из доверенного источника.

Страницы 8

Ложатся в проект по этим путям.

Файлы пакета 5

Ложатся в .shtukbase/packages/keer-style/; отсюда запускаются действия.