From f3951be3eb04b746e54a2e5514c06a3676d73d04 Mon Sep 17 00:00:00 2001 From: Jake Ruesink Date: Wed, 2 Dec 2026 02:22:40 -0600 Subject: [PATCH 1/3] feat(sbo-18): screen-tone, seal and annotated-figure primitives, live techniques gallery, v0.1.17 Three optional, static, zero-JS design primitives (category primitive, 0.1.0): - screen-tone: a two-token ramp through a dot, line, hatch or grain screen. Mask mode keeps the ramp fixed to the field while the screen turns, and --screen-fade gives the textured-gradient fade. Threshold mode is a halftone whose marks grow with tone, on light or dark grounds. - seal: a circular textPath ink stamp for one real owner fact, sized by textLength, with an optional worn-ink mask. Over-long text fails the build. - annotated-figure: numbered markers on a photo or SVG, with optional leader lines and an
    key beside it, or below at phone widths. All three drop their decoration under forced-colors and prefers-contrast: more. tokens 0.1.6: --action-shadow wording is neutral (none, subtle elevation or a crisp offset). Values are unchanged. Gallery: /techniques renders all nine SBO-18 techniques in two fixture brands, with the six merged recipe cards' CSS verbatim, knob values and Brand grammar lines. It is linked from the index and nav and added to the gallery-sync manifest. Release prep: version 0.1.17, and every #v0.1.16 pin moved to #v0.1.17. Co-Authored-By: Claude Opus 5.5 --- README.md | 9 +- docs/blocks-audit.md | 5 + package.json | 2 +- public/gallery/motif-chainring.svg | 1 + public/gallery/motif-lantern.svg | 1 + public/r/annotated-figure.json | 42 + public/r/article.json | 4 +- public/r/collection.json | 4 +- public/r/features-editorial.json | 2 +- public/r/footer-columns.json | 2 +- public/r/footer-cta.json | 2 +- public/r/form-status.json | 2 +- public/r/header-editorial.json | 2 +- public/r/header-floating.json | 2 +- public/r/header-minimal.json | 2 +- public/r/header-transparent.json | 2 +- public/r/hero-immersive.json | 2 +- public/r/hero-split.json | 2 +- public/r/hero-typographic.json | 2 +- public/r/pairing-editorial.json | 4 +- public/r/pairing-product.json | 4 +- public/r/pairing-warm.json | 2 +- public/r/registry.json | 164 ++- public/r/screen-tone.json | 44 + public/r/seal.json | 42 + public/r/tokens.json | 4 +- registry.json | 164 ++- scripts/gallery-sync.mjs | 1 + .../examples/annotated-figure.astro | 36 + src/components/examples/screen-tone.astro | 34 + src/components/examples/seal.astro | 16 + src/components/gallery/BlockExample.astro | 6 + src/components/gallery/BlockSources.astro | 30 +- src/components/gallery/BlockUsage.astro | 106 +- src/components/gallery/TechniquePanel.astro | 165 +++ src/components/ui/AnnotatedFigure.astro | 251 ++++ src/components/ui/ScreenTone.astro | 201 +++ src/components/ui/Seal.astro | 116 ++ src/data/catalog.json | 355 ++++- src/data/gallery-catalog.json | 113 +- src/data/site.json | 1 + src/pages/index.astro | 22 +- src/pages/techniques.astro | 1166 +++++++++++++++++ src/styles/tokens.css | 3 +- 44 files changed, 2888 insertions(+), 252 deletions(-) create mode 100644 public/gallery/motif-chainring.svg create mode 100644 public/gallery/motif-lantern.svg create mode 100644 public/r/annotated-figure.json create mode 100644 public/r/screen-tone.json create mode 100644 public/r/seal.json create mode 100644 src/components/examples/annotated-figure.astro create mode 100644 src/components/examples/screen-tone.astro create mode 100644 src/components/examples/seal.astro create mode 100644 src/components/gallery/TechniquePanel.astro create mode 100644 src/components/ui/AnnotatedFigure.astro create mode 100644 src/components/ui/ScreenTone.astro create mode 100644 src/components/ui/Seal.astro create mode 100644 src/pages/techniques.astro diff --git a/README.md b/README.md index c12e1aa..d2ec984 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Polished website sections for Astro, distributed as source you own. Every block Astro Blocks is a [shadcn](https://ui.shadcn.com/docs/registry)-compatible registry. Installing a block copies ordinary, editable files into your project. Nothing stays linked: no runtime package, no hidden updates. Change anything. ```sh -npx shadcn@latest add lambda-curry/astro-blocks/hero-split#v0.1.16 +npx shadcn@latest add lambda-curry/astro-blocks/hero-split#v0.1.17 ``` That writes `src/components/blocks/HeroSplit.astro` and its one dependency, `src/components/ui/Button.astro`. It works in any Astro project, without Tailwind, React or a `components.json`. Then: @@ -39,16 +39,17 @@ import HeroSplit from "../components/blocks/HeroSplit.astro"; List, search or inspect them from the CLI: ```sh -npx shadcn@latest list lambda-curry/astro-blocks#v0.1.16 -npx shadcn@latest view lambda-curry/astro-blocks/timeline#v0.1.16 +npx shadcn@latest list lambda-curry/astro-blocks#v0.1.17 +npx shadcn@latest view lambda-curry/astro-blocks/timeline#v0.1.17 ``` Each item in [`registry.json`](registry.json) says when to use it and, as importantly, when not to. A numbered list is for a real sequence, a bento grid is for related items of different weight, and a giant footer wordmark is for a short name on an otherwise quiet site. ## Design -- **Tokens, not themes.** Blocks read semantic custom properties: `--color-bg`, `--color-surface`, `--color-text`, `--color-muted`, `--color-accent`, `--color-on-accent`, `--font-display`, `--font-body`, the `--step-*` type scale, `--leading-display` and `--leading-tight`, `--space-gutter`, `--section-gap`, `--radius-sm` and `--radius-lg`. Set them once, in your own theme, and every block follows. Each block also falls back to the neutral defaults in [`tokens.css`](src/styles/tokens.css) (`npx shadcn@latest add lambda-curry/astro-blocks/tokens#v0.1.16`), so nothing breaks without them. One more is optional and absent from `tokens.css`: `--color-rule` recolors every structural hairline (row and table rules, dividers, header and footer rules, and the outlines of bars, panels and tiles). Unset, each keeps its own translucent mix of the text color. Write it with `currentColor`, such as `--color-rule: color-mix(in oklab, currentColor 20%, transparent)`, so rules stay right on inverse footers. Forms read one more optional token, `--color-error`, for error text, borders and the error summary. Unset, it is a red mixed with the text color, which measured at least 4.7:1 on the background and surface of the four gallery themes (default, paper, ink and grove). Check it against a theme with a strongly colored surface, and set the token there if needed. +- **Tokens, not themes.** Blocks read semantic custom properties: `--color-bg`, `--color-surface`, `--color-text`, `--color-muted`, `--color-accent`, `--color-on-accent`, `--font-display`, `--font-body`, the `--step-*` type scale, `--leading-display` and `--leading-tight`, `--space-gutter`, `--section-gap`, `--radius-sm` and `--radius-lg`. Set them once, in your own theme, and every block follows. Each block also falls back to the neutral defaults in [`tokens.css`](src/styles/tokens.css) (`npx shadcn@latest add lambda-curry/astro-blocks/tokens#v0.1.17`), so nothing breaks without them. One more is optional and absent from `tokens.css`: `--color-rule` recolors every structural hairline (row and table rules, dividers, header and footer rules, and the outlines of bars, panels and tiles). Unset, each keeps its own translucent mix of the text color. Write it with `currentColor`, such as `--color-rule: color-mix(in oklab, currentColor 20%, transparent)`, so rules stay right on inverse footers. Forms read one more optional token, `--color-error`, for error text, borders and the error summary. Unset, it is a red mixed with the text color, which measured at least 4.7:1 on the background and surface of the four gallery themes (default, paper, ink and grove). Check it against a theme with a strongly colored surface, and set the token there if needed. - **Optional type.** Sixteen curated self-hosted typefaces, each its own `font-*` item installing a small stylesheet that loads pinned WOFF2 by sha256, plus three pairings built from them (`pairing-editorial`, `pairing-product`, `pairing-warm`) that set only type tokens. Installs stay on the system font until a site adds one. See [docs/type-pairings.md](docs/type-pairings.md) and the live specimens at `/typography`. +- **Optional design devices.** `screen-tone` (a token ramp through a dot, line, hatch or grain screen, or a threshold halftone), `seal` (an ink stamp for one real owner fact) and `annotated-figure` (numbered callouts with a key). Each is static, uses no JavaScript, and drops its decoration under forced colors and more contrast. `/techniques` renders them beside Site Boulder's six technique recipes in two contrasting brands, and each use there names its source and job. - **Container queries.** Blocks lay out from the width they are given, so they work full-width or inside a narrow column. - **Zero JS for static blocks; opt-in `@ui-sdk/web` for interactive blocks.** Narrow-screen menus use the HTML `popover` attribute, the transparent header turns solid via CSS scroll-driven animation, and the wordmark footer sizes with container units—shipping 0 B JS across all 32 static blocks. Only `detail-dialog`, `filter-collection`, and `compare-tray` import exact-pinned `@ui-sdk/core@0.1.0-beta.23` and `@ui-sdk/web@0.1.0-beta.23` in `