Vanilla Breeze v0.7.4

Vanilla Breeze v0.7.4 released

0.7.4 gives the Ambient pack weather. A page names one feed URL on its own site, and the pack sets data-weather from it, uses its sunrise and sunset for dawn and dusk, and never shows a stale observation. Helpers for producing the feed from Open-Meteo are included. Ambient p…

Read the release notes

Profile

User profile patterns with avatar displays, stats, activity feeds, and action buttons. Build profile pages and user cards for your applications.

Overview

Profile patterns display user information in various contexts, from compact cards to full-page layouts. These patterns combine avatars, user data, statistics, and interactive elements into cohesive displays.

Key features:

  • Avatar display with image or initials fallback
  • <hgroup> for name + role pairs with automatic muted subtitle styling
  • <dl> / <dt> / <dd> for stat label/value pairs — semantic and accessible
  • Activity feeds showing recent actions
  • Action buttons for messaging, following, and editing
  • Responsive sidebar layout that automatically stacks on smaller screens

Profile Header

A profile header built on data-layout="media": a large avatar in the figure column, with the name, role, bio, stats row and edit button stacked beside it. Ideal for the top of a user's profile page.

Stat Row Styles

The hgroup mutes the role, data-variant="stacked" mutes the stat labels and drops the <dd> indent, and <strong> weights the numbers. No extra CSS is needed: a stacked list that is also data-layout spaces its groups with the layout's gap instead of a block margin.

Profile Card

A compact profile card suitable for user lists, team member displays, or search results. Features an avatar, name, email, description, and action buttons.

No custom CSS: <hgroup> mutes the email line, and slot="figure" sends the avatar to the media column.

Full Profile Page

A complete profile page layout with a sidebar containing user info and a main content area showing an <activity-feed>. Uses <layout-sidebar> with an <aside> for the responsive two-column layout.

<activity-feed> lays out each <article data-activity> with its icon rail and turns the authored <time> into a relative timestamp. The only page CSS is the stat-row rule shown under Profile Header.

Configuration

Profile patterns use these layout elements and attributes:

User Avatar

Attribute Values Description
data-size xs sm md lg xl 2xl Avatar size. Use 2xl for profile headers, lg for cards.
data-shape rounded square Border radius style. Default is circle.
data-ring boolean Add a decorative ring around the avatar.

Layout Sidebar

Attribute Values Description
data-layout-sidebar-width narrow (12rem) normal (15rem) wide (20rem) Width of the sidebar. Use wide for profile sidebars.
data-layout-content-min 40 50 60 Minimum content percentage before stacking. Use 50 for balanced layouts.
data-layout-gap xs s m l xl Gap between sidebar and content.

Layout Stack

Attribute Values Description
data-layout-align start center end Horizontal alignment. Use center for profile headers.
data-layout-gap 2xs xs s m l xl Vertical spacing between items.

Usage Notes

  • Avatar fallbacks: Always provide initials via <span data-fallback> as a fallback when images fail to load
  • Status indicators: Use <span data-status="online"> inside user-avatar to show user presence
  • Heading groups: Use <hgroup> for name + role pairs — the <p> inside automatically gets muted color styling
  • Semantic stats: Use <dl data-variant="stacked"> with one <div> per stat, label (<dt>) before value (<dd>), instead of generic <div> / <span> elements
  • Responsive layouts: The sidebar layout automatically stacks on smaller screens when data-layout-content-min is reached
  • Sticky sidebar: data-layout-sticky works on <nav> and <aside> within page layouts, not on <layout-card>
  • Accessibility: Ensure avatar images have meaningful alt text and buttons have clear labels
  • Stats formatting: Use abbreviated numbers (e.g., 12.4K) for large counts to maintain visual balance
  • Empty states: Provide helpful messages when activity feeds are empty

Related

Dashboard

Admin dashboards with stats and data tables

User Avatar

Avatar element documentation and API

Layout Card

Card container element documentation

Icon

Icon element documentation and available icons

Activity Feed

Accessible feed of timestamped user actions

↑