Preset

Accent

Patterns

Patterns describe real screen jobs. They are the fastest entry point when you know the type of page you need to build.

Shipped pattern families

Try markup before you integrate Use the Playground when you want to test HTML-only pattern fragments with the real WebBlocks CSS, icons, and JavaScript before moving them into a real project.

Pattern-first means starting from page purpose

Start from the page job If the question is "I need an admin dashboard" or "I need a docs surface," the answer should begin with a pattern. Primitive choice comes after that.

The pattern flow stays short

Pick a pattern familyChoose the closest real page job before thinking about individual controls.
Copy the visible structureTake shell, header rhythm, content blocks, and actions together instead of rebuilding the frame by hand.
Replace content, then trim hardKeep only the sections and primitives the real page actually needs.
Confirm primitives and rulesUse the primitives and JavaScript references only after the pattern direction is already clear.

Reusable section nav

`wb-section-nav` is the canonical local navigation pattern for settings rails, docs side navigation, and section-level page indexes. When links target real in-page anchors, runtime should own the active state.

Overview keeps the local context visible while you read.
Installation can become active from hash navigation or scroll position.
Patterns stays inactive until it becomes the current reading section.
Pattern boundary Use `wb-section-nav` for local section switching inside a page or shell. It is not the global sidebar, not breadcrumb, and not a replacement for primary application navigation.

Admin standards

What it covers

Use the standard for page-level headers, breadcrumb hierarchy, grouped form sections, field help and errors, detail pages, row actions, and bottom-of-page danger zones.

The preferred markup leans on existing wb-card, wb-field, wb-action-group, and breadcrumb primitives, then adds only the smaller admin-specific contracts that do not already exist.

Core rule Keep navigation and context actions in the page header. Keep create and save actions in the card or form footer that owns the submitted fields.

Example: page header stack

Members

Manage people, roles, and invitations.

Hierarchy rule Product identity belongs first in the topbar. Context comes second. Inside the page header, breadcrumb is optional, title is primary, subtitle is supportive, and actions stay separate.

Overlay boundary

What belongs to patterns

Patterns decide where an overlay trigger belongs in the page flow: header actions, table rows, gallery items, settings help links, or editorial media blocks.

What does not

The focus-above-page shell itself is not a page pattern. Use the shipped wb-modal primitive instead of creating shell-local wrappers, whether the job is a decision dialog, form modal, or gallery viewer.

Infrastructure vs public patterns wb-overlay-root is the shared top-layer infrastructure. Public top-layer work belongs to wb-modal; gallery viewer and lightbox behavior are modal usage modes, not separate primitives.

Pattern boundaries

Patterns are not utilities

A pattern is not a spacing trick or a one-off helper class.

Patterns are not single controls

A button, input, or modal is a primitive, not a pattern.

Patterns stay readable

The goal is to make page type and hierarchy obvious before small refinements begin.