Skip to content

Blocks: fix background placement, refresh dated blocks, add six new blocks - #563

Merged
lorant-one merged 2 commits into
previewfrom
fix/blocks-polish-sweep
Nov 20, 2026
Merged

lorant-one merged 2 commits into
previewfrom
fix/blocks-polish-sweep

Conversation

@lorant-one

@lorant-one lorant-one commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Requested by Lorant · project thread

A sweep of all 175 blocks on the blocks surface (every block screenshotted in dark and light before and after).

Placement

  • 35 absolute layers had no top/left (Background, MatrixFx, fill overlays in About4–6, Background1/2/4/5/6, BankCard, Blog2/4, Book, Careers3/4, DesignEngineersClub1/2, Faq7, Features6/18, Footer4/5, Hero5/13/14, Login1/5, Plans5/7, Sidebar7, Testimonial7, plus Book in @once-ui-system/blocks). They sat at the parent's padding offset instead of its corner. Each now has top="0" left="0", as the harness's decoration rule says. Blocks whose parent had no padding render the same.
  • Full-bleed previews: the surface framed Sections/Misc previews with padding="l", which pushed every hero and background in from the frame's edge. BlockPage gets a bleed flag (page-wide, or per example). Hero, Background, CTA and Stats use it.

Our own icons

  • The docs icon registry (src/resources/icons.ts) and blockIcons.ts re-registered 60 names Once UI ships (sparkle, check, settings, copy, home, …) with react-icons, so once-ui.com and every block showed Heroicons instead of our library. Those are gone.
  • The older docs and block names (email, delete, darkMode, notification, …) now point at Once UI's own glyphs. react-icons is left only for brand marks (GitHub, Visa, Claude…), the filled heart/bookmark, and two shapes we don't draw yet (package, modules).
  • blockIcons is spread after an app's own icons by once-ui add, so it must never carry a built-in name. The file now says so.

Refreshes

  • Bento1/Bento2: media panels were forced to the light theme inside dark pages. They now follow the theme, and the logo marquee uses a light/dark wordmark with a fade instead of clipped logos.
  • Blog4: the featured post's text sat on a busy UI screenshot. It now sits on a photo with a page-coloured scrim.
  • Testimonial8: the logo row used the light-theme wordmark only, so it was invisible in dark mode.

New blocks

  • Cta1 (closing band) and Cta2 (install command + product shot): new Call to action category
  • Stats1 (four metrics with sparklines): new Stats category
  • Changelog1 (release timeline): new Changelog category under Landing page
  • Billing1 (plan, seats, card, usage meters that warn at 80%, invoices) and Onboarding1 (first-run checklist): new Billing and Onboarding categories under Application

All are built from core components and props only. once-ui-validate-ai-code passes on each, except one false positive on Cta2 (the async clipboard copy reads as data loading). Category images were generated from the blocks' own screenshots.

Checks

  • tsc --noEmit (docs) is clean, and Biome formatting is clean on the touched files.
  • Before/after screenshots are in the project thread.

These are docs-surface and block-source changes only. packages/blocks/src/Book.tsx is the one package file touched, and it rides the weekend patch with core#560/#561.

🤖 Generated with Claude Code

https://claude.ai/code/session_016gNJtw8h8hmSytmc6VKwVg

…locks

Placement
- 35 absolute layers (Background, MatrixFx, fill overlays) had no top/left, so
  they sat at their parent's padding offset instead of its corner. Every one now
  has top="0" left="0", as the harness's decoration rule says.
- The blocks surface framed Sections/Misc previews with padding, which pushed
  every full-bleed hero and background in from the frame's edge. A `bleed` flag
  on BlockPage (and per example) drops that frame; Hero, Background, CTA and
  Stats use it.

Refreshes
- Bento1/Bento2: the media panels were forced into the light theme inside dark
  pages; they now follow the theme on a surface/page pair, and the logo marquee
  uses a light/dark wordmark with a fade instead of clipped logos.
- Blog4: the featured post's text sat on a busy UI screenshot; it now sits on a
  photo with a page-coloured scrim.
- Testimonial8: the logo row used the light-theme wordmark only, invisible in
  dark mode.

New blocks
- Cta1, Cta2 (new CTA category), Stats1 (new Stats category), Changelog1
  (landing page), Billing1 and Onboarding1 (application), with their catalogue
  entries and category images.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016gNJtw8h8hmSytmc6VKwVg
@lorant-one lorant-one self-assigned this Nov 19, 2026
The docs icon registry and blockIcons re-registered 60 names Once UI ships
(sparkle, check, settings, copy, home...) with react-icons, so once-ui.com and
every block showed Heroicons instead of our library. Drop those, point the
older docs and block names at Once UI's glyphs, and keep react-icons only for
brand marks and shapes we do not draw yet. blockIcons is spread after an app's
own icons by `once-ui add`, so it must never carry a built-in name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016gNJtw8h8hmSytmc6VKwVg
@lorant-one
lorant-one merged commit feb6ac3 into preview Nov 20, 2026
9 checks passed
@github-actions github-actions Bot mentioned this pull request Nov 20, 2026
2 tasks done
@lorant-one lorant-one added the approved label Nov 20, 2026 — with Claude
@lorant-one
lorant-one deleted the fix/blocks-polish-sweep branch November 21, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants