Skip to content

SBO-18: screen-tone, seal and annotated-figure primitives, live /techniques gallery, v0.1.17 - #31

Merged
jaruesink merged 3 commits into
mainfrom
feat/sbo18-design-techniques-primitives
Dec 2, 2026
Merged

jaruesink merged 3 commits into
mainfrom
feat/sbo18-design-techniques-primitives

Conversation

@jaruesink

Copy link
Copy Markdown
Contributor

Workstream C2 of SBO-22 (con_277753cd), from the approved SBO-18 design-primitives proposal (con_056f3e54). Don't merge or tag yet. It's waiting on an independent review of the exact head.

What changes

Three optional, static, zero-JS primitives (primitive, 0.1.0, src/components/ui/). All three drop their decoration under forced-colors and prefers-contrast: more.

  • screen-tone: a two-token ramp through a dot | line | hatch | grain screen.
    • Mask mode: a ground-colored sheet with the marks cut out lies over the ramp. The sheet is a square as wide as the field's diagonal (hypot(100cqw, 100cqh)), so --screen-angle can turn it while the ramp's stops stay fixed to the visible field. --screen-fade gives the textured-gradient fade. Hatch intersects two masks (-webkit-mask-composite: source-in, then mask-composite: intersect, after the shorthand).
    • Threshold mode: a grey ramp multiplied by a tonal pattern and cut with contrast(20), on an aria-hidden layer, so marks grow with tone. It is colored with lighten and printed with multiply, or with darken and screen when ground="dark".
    • Fallbacks: a solid background-color under the gradient, with in oklab behind @supports.
    • Knobs: --tone-from/to/ground/angle and --screen-cell/angle/dot/fade, defaulting to tokens with exact fallbacks.
  • seal: a circular <textPath> stamp.
    • textLength spaces the glyphs to the exact circumference, so the join is seamless, and short facts repeat to fill the ring.
    • Ring text over 44 characters, center over 6 or kicker over 10 fails the build.
    • It renders role="img" with an aria-label, or decorative sets aria-hidden.
    • worn adds a static noise mask.
    • avoidWhen forbids invented awards and certifications and any official-looking seal.
  • annotated-figure: a <figure> holding a photo (image) or a slotted SVG.
    • Markers are placed by x/y percentages in physical left/top, so they don't mirror in RTL.
    • Each marker is a dark plate with a light ring, readable on any photo.
    • Optional leaders: a halo under a thin line, ending at point.
    • The key is an <ol role="list"> that sits beside the figure from a 44rem container and below it at phone widths.
    • Linked markers get 44px targets.

tokens 0.1.6: the --action-shadow comment no longer offers "a hard 2px 2px 0 offset" as its only example. Every value is unchanged.

/techniques gallery page (linked from the index beside /typography and from the nav, and added to the gallery-sync.mjs manifest).

  • What it shows: all nine SBO-18 techniques in two fixture brands, Cedar Street Cycles (light; Barlow Condensed, Source Sans 3, IBM Plex Mono) and The Blue Lantern (dark; Instrument Serif, Instrument Sans). Each panel prints its knob values and Brand grammar line.
  • Recipe CSS: the six recipes' CSS is copied verbatim from siteboulder-platform 09cd3b2 docs/design-library/techniques/, including the :dir(rtl) ticket mirroring, the prefers-contrast: more ramp fallback, the forced-colors rules and the full-contrast S9 .ink-in/.draw-in rules.
  • Brand marks: public/gallery/motif-{chainring,lantern}.svg are the fixture brands' marks, simplified for the motif field.

Release prep: version 0.1.17, and all 20 registry pins plus 4 README refs moved from #v0.1.16 to #v0.1.17. docs/blocks-audit.md and the README are updated.

Verification (head f3951be)

Release command chain: exit 0.
node scripts/build-fonts.mjs && npm run registry && node scripts/build-fonts.mjs --check && node scripts/build-registry.mjs --check && npm run check && npm run validate && npm run build

  • Registry: 57 items, generated files current.
  • astro check: 0 errors, 0 warnings, 0 hints.
  • shadcn validates 57 items.

Chromium renders: 38 of 38 clean.

  • What was rendered: /techniques and the three /blocks/* pages at 1440, 390, forced colors, more contrast and reduced motion, plus the three canvases in paper, ink and grove at both widths.
  • Results: 0 failed requests (only the workbench's missing /favicon.ico), 0 console errors, 0 horizontal overflow.

Contrast: 64 distinct text styles. The lowest on a solid ground is 6.56:1. Text over ramps measures at least 8.09:1 at the stops it crosses, and the set list over its rule lines is 7.61:1.

Scroll accent (S9): with motion allowed, the draw-in progresses 0.37 → 0.50 → 0.77 as the route enters, and the text stays at opacity 1.

gallery-sync dry run (draft f6d2f9c3…):

  • Projected size is 769,595 of 10,485,760 bytes and 151 of 2,000 files.
  • 29 gallery files would be written.
  • 56 registry installs, all text, with 0 .woff2.

Site Boulder snapshot (sync-astro-blocks.mjs --local, run in a scratch copy): astro-blocks.json 637,480 B plus font-pack.json 137,376 B, for 57 items.

Known gaps

  • The S3 and S7 photo doesn't reach the draft. public/gallery/cedar-street-workshop.webp isn't an authorable sync path, so on the Site Boulder draft both photo demos would show a missing image. The workbench is fine.
  • Recipe-card follow-up: a view() scroll accent inside an overflow: hidden ancestor never moves, because that ancestor becomes its scroll container. The gallery panel and screen-tone use overflow: clip. narrative-scroll-accent.md should say so.
  • Browsers: Safari and Firefox were not render-checked.

🤖 Generated with Claude Code

… 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 <ol> 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 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

The included review limit has been reached and this organization has disabled usage-based review continuation. Wait for reviews to reset or ask a billing admin to change After included review limits.

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 2 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 70 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI; Enforced overrides: Organization
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 78749db7-7c57-48bb-b4c5-ec8ba325726b
Commits

Reviewing files that changed from the base of the PR and between 73233e1 and 5ad96ce.

Files ignored due to path filters: 2

  • public/gallery/motif-chainring.svg is excluded by !**/*.svg
  • public/gallery/motif-lantern.svg is excluded by !**/*.svg
Files selected for processing: 42

  • README.md
  • docs/blocks-audit.md
  • package.json
  • public/r/annotated-figure.json
  • public/r/article.json
  • public/r/collection.json
  • public/r/features-editorial.json
  • public/r/footer-columns.json
  • public/r/footer-cta.json
  • public/r/form-status.json
  • public/r/header-editorial.json
  • public/r/header-floating.json
  • public/r/header-minimal.json
  • public/r/header-transparent.json
  • public/r/hero-immersive.json
  • public/r/hero-split.json
  • public/r/hero-typographic.json
  • public/r/pairing-editorial.json
  • public/r/pairing-product.json
  • public/r/pairing-warm.json
  • public/r/registry.json
  • public/r/screen-tone.json
  • public/r/seal.json
  • public/r/tokens.json
  • registry.json
  • scripts/gallery-sync.mjs
  • src/components/examples/annotated-figure.astro
  • src/components/examples/screen-tone.astro
  • src/components/examples/seal.astro
  • src/components/gallery/BlockExample.astro
  • src/components/gallery/BlockSources.astro
  • src/components/gallery/BlockUsage.astro
  • src/components/gallery/TechniquePanel.astro
  • src/components/ui/AnnotatedFigure.astro
  • src/components/ui/ScreenTone.astro
  • src/components/ui/Seal.astro
  • src/data/catalog.json
  • src/data/gallery-catalog.json
  • src/data/site.json
  • src/pages/index.astro
  • src/pages/techniques.astro
  • src/styles/tokens.css
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

… AnnotatedFigure 44px/focus/reduced-motion/edge clamp, Seal wide-text sizing, ScreenTone line/hatch 100% closure)
…WW + WWWWWWWWWW stays well inside the inner ring
@jaruesink
jaruesink merged commit 486a8e8 into main Dec 2, 2026
2 checks passed
@jaruesink
jaruesink deleted the feat/sbo18-design-techniques-primitives branch December 2, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant