Skip to content

style: flat docs borders, framed home hero, and button-group edge fixes - #40

Merged
yyyyaaa merged 3 commits into
mainfrom
phat/visual-finetune
Sep 22, 2026
Merged

yyyyaaa merged 3 commits into
mainfrom
phat/visual-finetune

Conversation

@yyyyaaa

@yyyyaaa yyyyaaa commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Visual fine-tuning on top of the redesign.

  • Home hero — now a square, flat panel inset by the page gutter, so its edges line up exactly with the showcase grid below (previously its overlays filled the wider content column and stopped dead at the edge). 1px --border, no shadow, overlays clipped to the frame.
  • Docs chrome — every surface that relied on the faint shadow hairline uses an explicit --border: example frames and their bars, catalog and page tiles (AI / billing / features / command palette), code blocks, API table, install toggle, preset tiles, preview canvas. Tile hovers tint instead of lifting.
  • ButtonGroup — the last child lost its outer corners because rounded-r-none applied to every child; selectors now square only the shared edges (:not(:first-child) / :not(:last-child), Button before: overlay included), which holds for any child count. ButtonGroupSeparator had its width zeroed by an override on the wrong axis and sat in a slot that showed the page through; it is now a 1px translucent ink line drawn over the preceding edge, so it tints whatever fill it divides. Unit test pins the selectors.

Visual

Surface Before After
Home hero overlays spanning the full content column, rounded, shadowed square flat panel on the grid's edges, 1px border
Docs example frame shadow hairline (near-invisible in dark), 60% bar divider 1px border on all sides, full-strength bar divider
Split button last button square on the outside; 3px page-coloured gap at the divider rounded outer corners; 1px tinted divider, no gap

Generated with Devin

yyyyaaa and others added 2 commits September 22, 2026 14:32
…divider over the fill

The group applied rounded-r-none to every child, so the last button lost its
outer corners; the selectors now square :not(:last-child) trailing and
:not(:first-child) leading edges (Button's before: overlay included), which
holds for any child count. The separator had its width zeroed by an override
on the wrong axis and sat in a slot that exposed the page; it is now a 1px
translucent ink line pulled over the preceding edge, so it tints whatever it
divides.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…ome hero

The home hero becomes a square, flat panel inset by the page gutter so its
edges line up with the showcase grid; every docs surface that relied on the
faint shadow hairline (example frames and their bars, catalog and page tiles,
code blocks, the API table, install toggle, preset tiles, preview canvas) now
uses an explicit --border, and tile hovers tint instead of lifting.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@tenki-reviewer

tenki-reviewer Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Review complete. No issues found — approved ✅.


The change spans the docs app pages and shared docs components, plus a new UI component. It tightens borders and gutters across the registry chrome, reshapes page metadata (openGraph/OG_IMAGE), and refactors CodeBlock, api-table, catalog-card, install-toggle, primitive-preview, and theme-preset-grid. A new ButtonGroup component with corner-squaring edge selectors and separator ink lines was added along with a regression test.

Files Change
apps/blocks/src/app/globals.css Swaps hero/block box-shadow for borders and adjusts gutter margins across breakpoints.
apps/blocks/src/app/blocks/{ai,billing,command-palette,features}/page.tsx Updates page metadata (openGraph/OG_IMAGE) and trailing-comma formatting.
apps/blocks/src/components/docs/{code-block,api-table,catalog-card,install-toggle,primitive-preview,theme-preset-grid}.tsx Refactors shared docs components (highlight rendering, table/API props, install toggle state, preset grid).
packages/ui/src/components/button-group.tsx Adds ButtonGroup with shared-edge corner squaring, overlay highlight, and separator ink lines.
packages/ui/test/button-group.test.ts Adds behavior tests asserting squared corners and border selectors.

All candidate findings fell below the confidence threshold; only low-confidence, unverified reachability notes were surfaced and none met the bar for an inline comment.

Reviewed commit: bf376fc

…d framed preview

The dial stack loses its Actions folder; Randomize (a usable roll across
theme presets and verified preset combinations that never repeats the
current look), Reset, and Copy share link sit as an attached icon group
beside Get code, all driving the shared draft so tiles, selects, dials and
the preview stay in sync. The wall switcher is a ButtonGroup on an opaque
surface. The wide-column 2×2 grids that aligned rows to their tallest card
become independent stacks and the measured column heights are rebalanced,
so no voids remain and column bottoms end within a card of each other. The
preview pane and the panel get the flat 1px border used across the docs.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@yyyyaaa
yyyyaaa merged commit a36be37 into main Sep 22, 2026
5 checks passed
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