Card Article
An article styled as a card with border and padding.
All Vanilla Breeze components demonstrated in one scrollable page. Use this as a comprehensive reference and visual testing ground.
This is a paragraph with bold text, italic text, and inline code. Links look like this.
This is a blockquote. It's styled with a left border and muted color.
// Code block
const greeting = "Hello, world!";
console.log(greeting);
Using the <icon-wc> component with Lucide icons.
Vertical stacking with configurable gap.
Horizontal flex layout with wrapping for inline elements.
Container with background, padding, and optional shadow or border.
Subtle shadow
Stronger shadow
Border, no shadow
No background or shadow
padding="s"
padding="m"
padding="l"
padding="xl"
Auto-fit grid with configurable minimum column width.
Card 1
Card 2
Card 3
Card 4
Card 5
Card 6
Card 1
Card 2
Card 3
Card 4
Centered content container with configurable max-width.
Narrow - Max width for reading content
Intrinsic + Text
Content centered within container
Full-height container with vertically centered principal element. Ideal for hero sections.
Aspect ratio container for media. Apply to any element to ensure consistent proportions.
Horizontal scrolling container with scroll snap. Drag or scroll horizontally.
Scroll horizontally to see more cards.
Each card snaps into place.
Works with touch and mouse.
Configurable gap and item width.
Last card in the reel.
Content container with proper typographic spacing.
This paragraph follows the heading with tighter spacing due to the proximity principle. Subsequent paragraphs have normal spacing.
Another paragraph with standard vertical rhythm. The layout-text container automatically manages spacing between different element types.
Content after a heading gets tighter spacing. Lists and other elements also get appropriate spacing.
Paragraphs after lists continue with normal rhythm.
Styled native details elements for accordion patterns.
Vanilla Breeze is a layered HTML component system that extends HTML's native model with CSS custom properties, custom elements, and web components.
Components are built to work without JavaScript first. CSS provides visual styling and layout. JavaScript then enhances with interactivity and accessibility features.
All modern browsers are supported. The library uses native CSS features like @layer, custom properties, and :has() which have broad support.
Accessible tab component built on native details elements. Works as accordion without JS.
The tabs-wc component uses native <details name=""> elements for progressive enhancement. Without JavaScript, it works as an accordion. With JavaScript, it adds keyboard navigation and ARIA tab semantics.
Collapsible content panels with optional single-open mode. Built on native details elements.
Vanilla Breeze is a layered HTML component system that extends HTML's native model with CSS custom properties and web components.
Components work without JavaScript first. CSS provides styling, then JavaScript enhances with interactivity.
All modern browsers are supported.
Only one panel can be open at a time in single mode.
Opening this will close the other panels.
The name attribute helps browsers enforce exclusive open.
The bordered variant adds a container border and dividers between items.
Useful for forms, FAQs, and settings panels.
Add data-compact for tighter spacing.
Smaller padding for dense layouts.
Still fully accessible.
Styled native table with hover states and alignment options.
| Month | Product | Units | Revenue |
|---|---|---|---|
| January | Widget A | 150 | $4,500 |
| January | Widget B | 89 | $2,670 |
| February | Widget A | 175 | $5,250 |
| February | Widget B | 102 | $3,060 |
| Total | 516 | $15,480 | |
Modal dialog with focus trap, ESC to close, and animations. Uses Invokers API for declarative open/close.
Enhanced tooltips with positioning, arrows, and keyboard support.
Non-modal notifications with auto-dismiss, variants, and action buttons.
Progressive enhancement for footnotes. Without JS, footnotes appear inline in parentheses.
The Vanilla Breeze framework
The footnotes component demonstrates progressive enhancement
All layouts use logical properties for automatic RTL support.
هذا النص يظهر من اليمين إلى اليسار. جميع الهوامش والحشو تستخدم خصائص منطقية.
Responsive image styling with variants.
Progress bars and meter gauges with variants.
Form layout patterns with fieldsets and groups.
Figure with caption variants.
Aside variants for sidebars, callouts, and notes.
Semantic inline text elements.
Here are examples of inline semantic elements:
To be or not to be- inline quote
Highlighted text: important, success, warning, error
Heading groups with subtitles.
A subtitle or tagline for the article
Chapter 1
Calculated result display.
Divider lines with variants.
East Asian typography with pronunciation guides.
Japanese example: 漢字 (Kanji with furigana)
Chinese example: 北京 (Pinyin pronunciation)
With fallback: 明日 (shows parentheses in non-supporting browsers)
Contact information with variants.
Search form patterns with variants.
Media elements with variants.
Drawing canvas with variants.
Inline SVG with sizing and animation variants.
Article variants for different content patterns.
An article styled as a card with border and padding.
A compact layout for list-style content.
Used for comments and replies with left border.
Autocomplete suggestions for inputs.
Embedded content with responsive wrappers.