From 58e4b433852c075efd0e9898522c2038ff04286f Mon Sep 17 00:00:00 2001 From: Jake Ruesink Date: Wed, 2 Dec 2026 11:07:29 -0600 Subject: [PATCH 1/3] SBO-41 R4: composition range and expressive techniques, v0.1.19 Audit of all 60 items found the heroes converging on split/full-bleed openings and no home for task-first, programme-first, editorial-spread, price-list or multi-location visit jobs. New items cover those jobs; poster, placement and mosaic needs became variants of existing items. - New heroes: hero-front-desk, hero-editorial, hero-program. - New content: menu-list, locations-visit. - Variants: hero-typographic layout="poster" + meta + tone (0.1.5); hero-immersive align="top"|"middle" + caption (0.1.5); gallery layout="mosaic" + tone (0.1.1); schedule tone (0.1.2). Defaults unchanged. - New zero-JS techniques: type-lockup, image-mount, diptych, marginalia, line-work, color-field, scroll-reveal. - duotone/techniques: replace the raw.githubusercontent hotlink with a self-hosted, MIT, hand-drawn public/gallery/bench-by-the-window.svg. - Fix (pre-existing): lightningcss minify folds animation-timeline into the animation shorthand, which browsers reject, so header-transparent (0.1.6), compare (0.1.2) and the draw-in recipe never animated in builds. All scroll-driven animations now use longhands. - Gallery: /techniques covers 14 techniques in 4 brands with a zero-technique composition; new /compositions page opens one site's content five ways. gallery-catalog.json trimmed to fields the gallery reads (118 KB, under gallery-sync's 128 KiB cap). Favicon added. - Intent-first useWhen/avoidWhen with pairings; version 0.1.19. Co-Authored-By: Claude Opus 5.5 --- README.md | 14 +- docs/blocks-audit.md | 33 +- package.json | 2 +- public/gallery/bench-by-the-window.svg | 45 + public/gallery/favicon.svg | 1 + public/r/annotated-figure.json | 2 +- public/r/article.json | 4 +- public/r/collection.json | 4 +- public/r/color-field.json | 43 + public/r/compare.json | 4 +- public/r/cut-edges.json | 2 +- public/r/diptych.json | 40 + public/r/duotone.json | 2 +- 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/gallery.json | 20 +- public/r/grain.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 | 6 +- public/r/hero-editorial.json | 45 + public/r/hero-front-desk.json | 47 + public/r/hero-immersive.json | 22 +- public/r/hero-program.json | 46 + public/r/hero-split.json | 6 +- public/r/hero-typographic.json | 23 +- public/r/image-mount.json | 42 + public/r/line-work.json | 42 + public/r/locations-visit.json | 47 + public/r/marginalia.json | 42 + public/r/menu-list.json | 44 + public/r/pairing-editorial.json | 4 +- public/r/pairing-product.json | 4 +- public/r/pairing-warm.json | 2 +- public/r/registry.json | 620 ++++++++- public/r/schedule.json | 10 +- public/r/screen-tone.json | 2 +- public/r/scroll-reveal.json | 41 + public/r/seal.json | 2 +- public/r/type-lockup.json | 42 + registry.json | 620 ++++++++- scripts/build-registry.mjs | 10 +- scripts/gallery-sync.mjs | 1 + src/components/blocks/Compare.astro | 5 +- src/components/blocks/Gallery.astro | 115 +- src/components/blocks/HeaderTransparent.astro | 5 +- src/components/blocks/HeroEditorial.astro | 286 ++++ src/components/blocks/HeroFrontDesk.astro | 324 +++++ src/components/blocks/HeroImmersive.astro | 77 +- src/components/blocks/HeroProgram.astro | 318 +++++ src/components/blocks/HeroTypographic.astro | 123 +- src/components/blocks/LocationsVisit.astro | 277 ++++ src/components/blocks/MenuList.astro | 247 ++++ src/components/blocks/Schedule.astro | 43 +- src/components/examples/color-field.astro | 21 + src/components/examples/diptych.astro | 17 + src/components/examples/duotone.astro | 9 +- src/components/examples/hero-editorial.astro | 23 + src/components/examples/hero-front-desk.astro | 21 + src/components/examples/hero-immersive.astro | 1 + src/components/examples/hero-program.astro | 21 + .../examples/hero-typographic.astro | 15 + src/components/examples/image-mount.astro | 38 + src/components/examples/line-work.astro | 22 + src/components/examples/locations-visit.astro | 33 + src/components/examples/marginalia.astro | 34 + src/components/examples/menu-list.astro | 31 + src/components/examples/scroll-reveal.astro | 19 + src/components/examples/type-lockup.astro | 22 + src/components/gallery/BlockExample.astro | 24 + src/components/gallery/BlockSources.astro | 96 +- src/components/gallery/BlockUsage.astro | 124 +- src/components/gallery/TechniquePanel.astro | 47 +- src/data/catalog.json | 1184 ++++++++++++++--- src/data/gallery-catalog.json | 134 +- src/layouts/Base.astro | 1 + src/layouts/Canvas.astro | 1 + src/pages/blocks/[name].astro | 3 +- src/pages/compositions.astro | 346 +++++ src/pages/index.astro | 14 +- src/pages/techniques.astro | 491 +++++-- src/pages/typography.astro | 4 +- src/styles/techniques/color-field.css | 65 + src/styles/techniques/diptych.css | 63 + src/styles/techniques/image-mount.css | 66 + src/styles/techniques/line-work.css | 76 ++ src/styles/techniques/marginalia.css | 97 ++ src/styles/techniques/scroll-reveal.css | 72 + src/styles/techniques/type-lockup.css | 80 ++ 92 files changed, 6516 insertions(+), 621 deletions(-) create mode 100644 public/gallery/bench-by-the-window.svg create mode 100644 public/gallery/favicon.svg create mode 100644 public/r/color-field.json create mode 100644 public/r/diptych.json create mode 100644 public/r/hero-editorial.json create mode 100644 public/r/hero-front-desk.json create mode 100644 public/r/hero-program.json create mode 100644 public/r/image-mount.json create mode 100644 public/r/line-work.json create mode 100644 public/r/locations-visit.json create mode 100644 public/r/marginalia.json create mode 100644 public/r/menu-list.json create mode 100644 public/r/scroll-reveal.json create mode 100644 public/r/type-lockup.json create mode 100644 src/components/blocks/HeroEditorial.astro create mode 100644 src/components/blocks/HeroFrontDesk.astro create mode 100644 src/components/blocks/HeroProgram.astro create mode 100644 src/components/blocks/LocationsVisit.astro create mode 100644 src/components/blocks/MenuList.astro create mode 100644 src/components/examples/color-field.astro create mode 100644 src/components/examples/diptych.astro create mode 100644 src/components/examples/hero-editorial.astro create mode 100644 src/components/examples/hero-front-desk.astro create mode 100644 src/components/examples/hero-program.astro create mode 100644 src/components/examples/image-mount.astro create mode 100644 src/components/examples/line-work.astro create mode 100644 src/components/examples/locations-visit.astro create mode 100644 src/components/examples/marginalia.astro create mode 100644 src/components/examples/menu-list.astro create mode 100644 src/components/examples/scroll-reveal.astro create mode 100644 src/components/examples/type-lockup.astro create mode 100644 src/pages/compositions.astro create mode 100644 src/styles/techniques/color-field.css create mode 100644 src/styles/techniques/diptych.css create mode 100644 src/styles/techniques/image-mount.css create mode 100644 src/styles/techniques/line-work.css create mode 100644 src/styles/techniques/marginalia.css create mode 100644 src/styles/techniques/scroll-reveal.css create mode 100644 src/styles/techniques/type-lockup.css diff --git a/README.md b/README.md index 6925e46..66454df 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.18 +npx shadcn@latest add lambda-curry/astro-blocks/hero-split#v0.1.19 ``` 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: @@ -28,10 +28,10 @@ import HeroSplit from "../components/blocks/HeroSplit.astro"; | Category | Items | | --- | --- | | Headers | `header-floating`, `header-editorial`, `header-transparent`, `header-minimal` | -| Heroes | `hero-split`, `hero-immersive`, `hero-typographic` | +| Heroes | `hero-split`, `hero-immersive`, `hero-typographic`, `hero-editorial`, `hero-front-desk`, `hero-program` | | Walkthroughs | `steps-numbered`, `timeline`, `alternating-rows` | | Features | `features-bento`, `features-editorial` | -| Content | `collection`, `gallery`, `article`, `facts`, `schedule`, `compare`, `detail-dialog`, `filter-collection`, `compare-tray` | +| Content | `collection`, `gallery`, `article`, `facts`, `schedule`, `compare`, `menu-list`, `locations-visit`, `detail-dialog`, `filter-collection`, `compare-tray` | | Footers | `footer-minimal`, `footer-columns`, `footer-wordmark`, `footer-cta` | | Forms | `field`, `choice-group`, `form-status` | | Foundation | `button`, `breadcrumbs`, `pager`, `tokens` | @@ -39,17 +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.18 -npx shadcn@latest view lambda-curry/astro-blocks/timeline#v0.1.18 +npx shadcn@latest list lambda-curry/astro-blocks#v0.1.19 +npx shadcn@latest view lambda-curry/astro-blocks/timeline#v0.1.19 ``` 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.18`), 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.19`), 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 techniques.** Six visual devices in the `technique` category, each with one job. `cut-edges` (ticket notches, pinked and scalloped edges), `grain` (paper tooth and textured, band-free gradients) and `duotone` (two-token photo unification) are one small CSS file each: install it, `@import "./techniques/.css";` in your theme, and tune it with custom properties. `screen-tone` (a token ramp through a printed dot, line or hatch screen, or a threshold halftone), `seal` (an ink stamp for one real owner fact) and `annotated-figure` (numbered callouts with a key) are components. All are static, use no JavaScript, and drop their decoration under forced colors (and, where it touches text, more contrast). `/techniques` renders each in two contrasting brands, plus compositions that pair several with different jobs. +- **Optional techniques.** Thirteen visual devices in the `technique` category, each with one job. Ten are one small CSS file each: install it, `@import "./techniques/.css";` in your theme, and tune it with custom properties: surfaces (`grain`, `color-field`, `line-work`), photo treatments (`duotone`, `image-mount`, `diptych`), type (`type-lockup`, `marginalia`), an object (`cut-edges`) and one scroll accent (`scroll-reveal`). `screen-tone`, `seal` and `annotated-figure` are components. All use no JavaScript, keep text full-contrast, and drop their decoration under forced colors (and, where it touches text, more contrast). `/techniques` renders each in contrasting brands, plus compositions from none to three techniques; `/compositions` opens one site's content five ways with the hero blocks. - **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 `