<meta name="author" content="Sebastien Rousseau"> <meta name="description" content="Live HTML examples of every Skeletonic Stylus component, grouped, anchored, and rendered with the very stylesheet being demoed."> <meta name="keywords" content="skeletonic components, buttons, cards, forms, alerts, badges, header, navbar, css only hamburger">

Every example below is rendered with the very stylesheet being demoed. No preprocessor. No JavaScript. No extra dependencies. Copy any snippet into a fresh HTML file and it works.


Inputs

Interactive elements the visitor clicks, taps, or focuses to drive the page.

Buttons

A semantic, themable action trigger. Solid and outline variants ship six brand colours each.

<code class="language-html"><a href="#" class="button primary">Primary</a> <a href="#" class="button secondary">Secondary</a> <a href="#" class="button tertiary">Tertiary</a> </code></pre> 

Primary Secondary Tertiary

Outline variants:

<code class="language-html"><a href="#" class="button primary-outline">Outline</a> <a href="#" class="button secondary-outline">Outline</a> </code></pre> 

Outline Outline

Accessibility note. Every <code>.button</code> variant ships with a <code>:focus-visible</code> ring and a 24×24 px minimum hit area (WCAG 2.2 SC 2.5.8). Use <code>&lt;button type="button"&gt;</code> for in-page actions and <code>&lt;a href&gt;</code> only for navigation.

Button shapes

The <code>.btn</code> family is a parallel shape system on top of the <code>.button</code> colour family. Use it when you want a square, round, or oval icon button instead of the default pill.

<code class="language-html"><button type="button" class="btn">Square</button> <button type="button" class="btn btn-round">●</button> <button type="button" class="btn btn-oval">Oval</button> <button type="button" class="btn btn-outline">Outline</button> </code></pre> 

When to use. <code>.btn-round</code> makes a 60×60 px circular button — ideal for a single-character icon (close, like, share). <code>.btn-oval</code> is a softer pill for short verbs ("Buy", "Send"). <code>.btn-outline</code> reads as a secondary action — pair it with a solid <code>.btn</code> for the primary call to action.

Button groups

Use <code>.button-group</code> to render a set of related buttons as a single visual unit. <code>.block</code> makes a single button stretch full-width — handy for forms on narrow viewports.

<code class="language-html"><div class="button-group"> <a href="#" class="button primary">Save</a> <a href="#" class="button secondary">Save as draft</a> <a href="#" class="button warning">Discard</a> </div> <a href="#" class="button primary block">Full-width call to action</a> </code></pre> 

Full-width call to action

Accessibility note. Wrap a button group in <code>role="group"</code> with an <code>aria-label</code> describing what the buttons do together (e.g. "Document actions"). Without that, assistive tech announces each button as if it were unrelated.

Badges

A compact label for status, count, or category. Text size is fixed so badges align with surrounding text.

<code class="language-html"><span class="badge">Default</span> <span class="badge primary">Primary</span> <span class="badge success">Success</span> <span class="badge warning">Warning</span> <span class="badge danger">Danger</span> </code></pre> 

Default Primary Success Warning Danger

Accessibility note. Badges are decorative by default. When the badge carries the only signal (e.g. an unread count), wrap it in a visually-hidden helper: <code>3 unread messages</code>.


Feedback

Surfaces that tell the visitor something happened — or is about to happen.

Alerts

Status messages with semantic intent. In v2.0.0 every variant is explicitly namespaced under <code>.alert-{primary,secondary,info,success,warning,error}</code> so the variant class cannot collide with state classes elsewhere on the page.

<code class="language-html"><div class="alert alert-primary" role="alert"> <strong>Heads up.</strong> This is a primary alert. </div> <div class="alert alert-success" role="status"> <strong>Saved.</strong> Your changes are persisted. </div> <div class="alert alert-warning" role="alert"> <strong>Careful.</strong> This action affects shared state. </div> <div class="alert alert-error" role="alert"> <strong>Error.</strong> Could not save the form. </div> </code></pre> 
Saved. Your changes are persisted.

Accessibility note. Use <code>role="alert"</code> for messages that demand immediate attention (errors, warnings) and <code>role="status"</code> for non-urgent confirmations. Both expose the message to assistive tech the moment it appears.

Code blocks

<code>&lt;code&gt;</code>, <code>&lt;kbd&gt;</code>, <code>&lt;pre&gt;</code>, and <code>&lt;samp&gt;</code> get monospace styling and a thick inline-start accent stripe (which flips automatically under <code>&lt;html dir="rtl"&gt;</code> thanks to logical properties). Status modifiers match the alert palette so callouts and code samples can speak the same colour language.

<code class="language-html"><code class="primary">npm install @sebastienrousseau/skeletonic-stylus</code> <code class="success">2026-04-30 — build passed</code> <code class="warning">deprecated since v1.1.0 — removed in v2.0</code> <code class="error">CVE-2023-44270 patched via overrides</code> <code class="info">use `--gr-h1` to override the heading scale</code> </code></pre> 

<code class="primary">npm install @sebastienrousseau/skeletonic-stylus</code>

<code class="success">2026-04-30 — build passed</code>

<code class="warning">deprecated since v1.1.0 — removed in v2.0</code>

<code class="error">CVE-2023-44270 patched via overrides</code>

<code class="info">use --gr-h1 to override the heading scale</code>

To render a keyboard shortcut, use <code>&lt;kbd&gt;</code>:

<code class="language-html">Press <kbd>Ctrl</kbd>+<kbd>K</kbd> to focus the search. </code></pre> 

Press <kbd>Ctrl</kbd>+<kbd>K</kbd> to focus the search.

RTL note. Code blocks intentionally retain <code>direction: ltr</code> even on <code>&lt;html dir="rtl"&gt;</code> pages — code is conventionally left-to-right. What flips is the inline-start accent stripe, so the visual anchor stays on the reading-start edge of the block.


Surface

Containers that frame and group related content.

Cards

A bordered, padded container for a single coherent unit. Pair with the <code>flex-N</code> grid for responsive card walls.

<code class="language-html"><section class="row"> <article class="card flex-1"> <div class="card-content"> <h3 class="card-title">Lightweight</h3> <p>39.9 KB minified, 7.5 KB gzipped.</p> </div> </article> <article class="card flex-1"> <div class="card-content"> <h3 class="card-title">Accessible</h3> <p>WCAG 2.2 conformant out of the box.</p> </div> </article> <article class="card flex-1"> <div class="card-content"> <h3 class="card-title">Modular</h3> <p>Cascade-layered for easy overrides.</p> </div> </article> </section> </code></pre> 

Lightweight

39.9 KB minified, 7.5 KB gzipped.

Accessible

WCAG 2.2 conformant out of the box.

Modular

Cascade-layered for easy overrides.

Accessibility note. Wrap each card in a semantic landmark (<code>&lt;article&gt;</code>, <code>&lt;section&gt;</code>) and start its content with a heading (<code>&lt;h3&gt;</code>). Screen-reader users can then traverse the card list as first-class navigable regions.

Tables

Plain <code>&lt;table&gt;</code> elements get bordered cells and a contrast-flipped <code>&lt;thead&gt;</code> automatically — no class soup needed.

<code class="language-html"><table> <thead> <tr><th>Framework</th><th>Brotli</th><th>JS-free</th></tr> </thead> <tbody> <tr><td>Skeletonic</td><td>6.7 KB</td><td>Yes</td></tr> <tr><td>Pico CSS</td><td>10.1 KB</td><td>Yes</td></tr> <tr><td>Bootstrap</td><td>23.0 KB</td><td>No (Popper)</td></tr> </tbody> </table> </code></pre> 
Data table table
FrameworkBrotliJS-free
Skeletonic6.7 KBYes
Pico CSS10.1 KBYes
Bootstrap23.0 KBNo (Popper)

Accessibility note. Always use <code>&lt;thead&gt;</code> and <code>&lt;th&gt;</code> for header cells (not <code>&lt;td&gt;</code> styled to look like a header) — assistive tech announces the column header before each cell so users can navigate the data grid.


Forms

Inputs, labels, and groupings for collecting user data.

Form fields

Labels, text inputs, textareas, fieldsets and legends — all sized consistently with the rest of the design system.

<code class="language-html"><form> <label for="name">Name</label> <input id="name" type="text" required> <label for="email">Email</label> <input id="email" type="email" required class="input-primary"> <label for="msg">Message</label> <textarea id="msg" rows="4"></textarea> <button type="submit" class="button primary">Send</button> </form> </code></pre> 

Accessibility note. Every input must have a programmatically associated <code>&lt;label for="…"&gt;</code>. Group related controls inside a <code>&lt;fieldset&gt;</code> with a <code>&lt;legend&gt;</code>. Mark required fields with <code>required</code> (and a visible asterisk in the label text).

Status inputs

Tint a single input to communicate validation state without rebuilding the form. The status modifier classes pair with any <code>&lt;input type=""&gt;</code> that already has element styling.

<code class="language-html"><input type="text" class="input-primary" placeholder="Primary"> <input type="text" class="input-success" placeholder="Saved"> <input type="text" class="input-warning" placeholder="Check this"> <input type="email" class="input-error" value="not-an-email"> <input type="text" class="input-info" placeholder="FYI"> </code></pre> 

Accessibility note. Colour alone never carries meaning. Pair <code>.input-error</code> with <code>aria-invalid="true"</code>, an inline message linked via <code>aria-describedby</code>, and a visible icon or text label.

Fieldsets

<code>&lt;fieldset&gt;</code> groups related controls; <code>&lt;legend&gt;</code> names the group. Both inherit Skeletonic's spacing and border tokens automatically.

<code class="language-html"><fieldset> <legend>Notification preferences</legend> <p> <input id="email-pref" type="checkbox" checked> <label for="email-pref">Email digest</label> </p> <p> <input id="sms-pref" type="checkbox"> <label for="sms-pref">SMS alerts</label> </p> </fieldset> </code></pre> 
<fieldset> <legend>Notification preferences</legend>

</fieldset>

Typography

Plain HTML, lifted to typographic standard via the cascade.

Lists

Three bullet styles ship as modifiers on <code>&lt;ul&gt;</code> — <code>square</code>, <code>circle</code>, <code>disc</code>. Plus the default unstyled list-reset.

<code class="language-html"><ul class="square"> <li>Square bullets</li> <li>Square bullets</li> </ul> <ul class="circle"> <li>Circle bullets</li> <li>Circle bullets</li> </ul> <ul class="disc"> <li>Disc bullets</li> <li>Disc bullets</li> </ul> </code></pre> 
  • Square bullets
  • Square bullets
  • Circle bullets
  • Circle bullets
  • Disc bullets
  • Disc bullets

Dividers

Ten visual variants of <code>&lt;hr&gt;</code> — solid, dashed, dotted, doubled, rounded, blurred, small, vertical, plus a centred-icon and a centred text-on-rule used throughout this site for the section separators above.

<code class="language-html"><hr class="hr-solid"> <hr class="hr-dashed"> <hr class="hr-dotted"> <hr class="hr-doubled"> <hr class="hr-rounded"> <hr class="hr-blurred"> <hr class="hr-small"> <hr class="hr-icon"> <hr class="hr-text" data-content="Section title"> <hr class="hr-vertical"> </code></pre> 

Solid


Dashed


Dotted


Doubled


Rounded


Blurred


Small (centred)


Centred icon


Centred text


Note. <code>&lt;hr&gt;</code> is a semantic, paragraph-level thematic break. Don't use it for purely decorative spacing — use a <code>&lt;div&gt;</code> or CSS <code>margin</code> instead. Assistive tech announces every <code>&lt;hr&gt;</code> as a section change.

Twelve named hover-effect classes for inline links, ranging from classic underline reveals to bracket animations. They're independent of colour — pair with any text colour.

<code class="language-html"><a href="#" class="link-1">Underline left → right</a> <a href="#" class="link-2">Underline right → left</a> <a href="#" class="link-3">Underline grow from centre</a> <a href="#" class="link-4">Underline shrink to centre</a> <a href="#" class="link-5">Top + bottom, left → right</a> <a href="#" class="link-6">Top + bottom, right → left</a> <a href="#" class="link-7">Top + bottom, grow from centre</a> <a href="#" class="link-8">Top + bottom, opposite start</a> <a href="#" class="link-9">Underline going up</a> <a href="#" class="link-10">Underline going down</a> <a href="#" class="link-11">Expanding brackets</a> <a href="#" class="link-12">Shrinking brackets</a> </code></pre> 

link-1 · link-2 · link-3 · link-4 · link-5 · link-6 · link-7 · link-8 · link-9 · link-10 · link-11 · link-12

RTL note. Effects 1, 2, 5, 6, 8, and 11 have explicit <code>[dir="rtl"]</code> overrides so "left → right" reveals semantically become "start → end" reveals on RTL pages — meaning the underline grows from the same side the reader is already starting from.


Layout

Structural primitives — grid, container, header — that frame the whole page.

Grid

Native CSS Grid since v2.0. <code>.grid</code> sets <code>display: grid</code> and a gap; <code>.grid-cols-N</code> (1–12) generates the column tracks; <code>.col-span-N</code> (1–12) lets a single child span multiple cells.

<code class="language-html"><div class="grid grid-cols-2"> <div>Half</div> <div>Half</div> </div> <div class="grid grid-cols-3"> <div>Third</div> <div>Third</div> <div>Third</div> </div> <div class="grid grid-cols-3"> <div class="col-span-2">Two thirds</div> <div>Third</div> </div> </code></pre> 
Half
Half
Third
Third
Third
Two thirds (col-span-2)
Third

Accessibility note. Visual order should match DOM order. Avoid reordering with <code>grid-auto-flow: dense</code> or explicit <code>grid-row</code> / <code>grid-column</code> shuffling — screen readers and keyboard users follow the source, not the paint.

Migrating from v1.x. The <code>.flex-N</code> / <code>.row</code> flexbox grid is gone. Replace <code>&lt;div class="row"&gt;&lt;div class="flex-6"&gt;…</code> with <code>&lt;div class="grid grid-cols-2"&gt;&lt;div&gt;…</code>. The new system is shorter, uses native CSS Grid, and avoids margin-collapse quirks.

A complete CSS-only header with a responsive hamburger toggle. Zero JavaScript. Copy the snippet below into a fresh HTML page that already loads <code>skeletonic.min.css</code> and the menu collapses, expands, and traps focus correctly on its own.

<code class="language-html">&lt;style&gt; /* Demo uses light-dark() so it adapts to colour-scheme. */ .sk-header{position:relative;display:flex;align-items:center;gap:1rem;padding:.75rem 1rem;border:1px solid var(--c-border);border-radius:.5rem;background:light-dark(#fff,#1a1a1a);color:light-dark(#1a1a1a,#f5f5f5);} .sk-header .sk-brand{font-weight:600;color:light-dark(#0a0a0a,#f5f5f5) !important;text-decoration:none;} .sk-header .sk-toggle{position:absolute;left:-9999px;} .sk-header .sk-burger{display:none;margin-left:auto;cursor:pointer;padding:.625rem .75rem;border:1px solid var(--c-border);border-radius:.375rem;font-size:1.125rem;line-height:1;min-width:2.75rem;min-height:2.75rem;color:inherit;background:transparent;} .sk-header .sk-burger:focus-within,.sk-header .sk-toggle:focus-visible+.sk-burger{outline:2px solid hsl(210,100%,42%);outline-offset:2px;} .sk-header .sk-menu{list-style:none;display:flex;gap:.25rem;margin:0 0 0 auto;padding:0;} .sk-header .sk-menu a{display:inline-flex;align-items:center;min-height:2.75rem;padding:.5rem .875rem;border-radius:.375rem;color:light-dark(#1a1a1a,#f5f5f5) !important;text-decoration:none;} .sk-header .sk-menu a:hover{background:light-dark(#f4f4f5,#262629);} @media (max-width:640px){ .sk-header .sk-burger{display:inline-flex;align-items:center;justify-content:center;} .sk-header .sk-menu{display:none;flex-direction:column;gap:0;position:absolute;top:calc(100% + .25rem);left:0;right:0;background:light-dark(#fff,#1a1a1a);border:1px solid var(--c-border);border-radius:.5rem;padding:.375rem;box-shadow:0 4px 24px rgba(0,0,0,.18);z-index:10;} .sk-header .sk-menu a{padding:.75rem 1rem;border-bottom:1px solid var(--c-border);} .sk-header .sk-menu li:last-child a{border-bottom:0;} .sk-header .sk-toggle:checked ~ .sk-menu{display:flex;} } &lt;/style&gt; <header class="sk-header"> <a class="sk-brand" href="#">Brand</a> <input class="sk-toggle" id="sk-nav-toggle" type="checkbox" aria-label="Toggle navigation"> <label class="sk-burger" for="sk-nav-toggle" aria-hidden="true">☰</label> <ul class="sk-menu"> <li><a href="#">Home</a></li> <li><a href="#">Docs</a></li> <li><a href="#">Components</a></li> <li><a href="#">About</a></li> </ul> </header> </code></pre> 
Brand

Accessibility note. The hidden checkbox stays in the tab order so keyboard users can open the menu with <code>Space</code> or <code>Enter</code>. The <code>&lt;label&gt;</code> carries <code>aria-hidden</code> because the checkbox itself is the accessible name source. Resize the window below 640 px to see the burger toggle take over.


Accordions

Zero-JavaScript collapsible disclosure containers leveraging the HTML5 <code>&lt;details&gt;</code> and <code>&lt;summary&gt;</code> elements with native <code>@interpolate-size</code> smooth height transitions.

<code class="language-html"><details class="accordion"> <summary>What makes Skeletonic Stylus unique?</summary> <div class="content"> <p>Skeletonic Stylus is a zero-dependency, cascade-layered CSS library engineered for the post-bundler web. It delivers WCAG AAA compliance, OKLCH colours, and 100% native browser baselines in under 7.7 KB gzip.</p> </div> </details> </code></pre> 

Accessibility note. Native <code>&lt;details&gt;</code> elements inherently communicate state (<code>aria-expanded</code>) to screen readers and offer full keyboard control (<code>Space</code> / <code>Enter</code> toggle) without needing custom JavaScript event handlers.

Modals & Dialogs

Accessible overlay windows utilizing the native HTML <code>&lt;dialog&gt;</code> element, discrete view transitions, and custom backdrop blurs.

<code class="language-html"><dialog class="modal" id="demoModal"> <div class="modal-header"> <h3>System Update</h3> </div> <p>Skeletonic Stylus 2.0 has successfully initialized native cascade layers and OKLCH color spaces.</p> <div class="modal-footer"> <button type="button" class="button secondary" onclick="document.getElementById('demoModal').close()">Cancel</button> <button type="button" class="button primary" onclick="document.getElementById('demoModal').close()">Confirm</button> </div> </dialog> <button type="button" class="button primary" onclick="document.getElementById('demoModal').showModal()">Open Dialog</button> </code></pre> 
<dialog class="modal" id="demoModal">

Skeletonic Stylus 2.0 has successfully initialized native cascade layers and OKLCH color spaces.

</dialog>

Accessibility note. Using <code>showModal()</code> automatically trap-focuses keyboard navigation inside the dialog, manages <code>aria-modal="true"</code>, and supports closing via the <code>Escape</code> key natively.

Pure CSS context menus built on top of the HTML Popover API and CSS Anchor Positioning.

<code class="language-html"><button type="button" class="button primary" popovertarget="demoDropdown" style="anchor-name: --dropdown-anchor;"> Options Menu </button> <div id="demoDropdown" popover class="dropdown"> <ul> <li><a href="#" class="dropdown-item">Account Settings</a></li> <li><a href="#" class="dropdown-item">Preferences</a></li> <li><a href="#" class="dropdown-item">Documentation</a></li> </ul> </div> </code></pre> 

Tooltips

Zero-JavaScript informational tooltips leveraging the HTML Popover API with automated positioning.

<code class="language-html"><button type="button" class="button secondary" popovertarget="demoTooltip" style="anchor-name: --tooltip-anchor;"> Hover or Focus Me </button> <div id="demoTooltip" popover class="tooltip"> WCAG AAA Compliant Tooltip Content </div> </code></pre> 

Loaders & Spinners

Hardware-accelerated CSS spinners for visual status feedback during async processing.

<code class="language-html"><span class="loader loader-sm" role="status" aria-label="Loading small"></span> <span class="loader" role="status" aria-label="Loading default"></span> <span class="loader loader-lg" role="status" aria-label="Loading large"></span> </code></pre> 

Switches & Toggles

Native, accessible switch toggles using HTML checkboxes with <code>role="switch"</code>.

<code class="language-html"><label style="display:inline-flex; align-items:center; gap:0.75rem; cursor:pointer;"> <input type="checkbox" role="switch" class="toggle" checked> <span>Enable Automatic Updates</span> </label> </code></pre> 

Avatars & Media

Responsive image containers, thumbnails, and circular avatar profiles.

<code class="language-html"><img src="/images/logo.svg" alt="User avatar" class="avatar" width="48" height="48"> <img src="/images/banner.svg" alt="Product banner" class="img-fluid img-rounded"> </code></pre> 

See full a11y notes → · Browse palettes → · Framework benchmarks →

<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "ItemList", "name": "Skeletonic Stylus components", "description": "Every component, element and effect shipped in Skeletonic Stylus v2.0.0.", "itemListOrder": "https://schema.org/ItemListOrderAscending", "numberOfItems": 21, "itemListElement": [ { "@type": "ListItem", "position": 1, "name": "Buttons", "url": "https://skeletonic.com/components/#buttons" }, { "@type": "ListItem", "position": 2, "name": "Button shapes", "url": "https://skeletonic.com/components/#button-shapes" }, { "@type": "ListItem", "position": 3, "name": "Button groups", "url": "https://skeletonic.com/components/#button-groups" }, { "@type": "ListItem", "position": 4, "name": "Badges", "url": "https://skeletonic.com/components/#badges" }, { "@type": "ListItem", "position": 5, "name": "Switches & Toggles", "url": "https://skeletonic.com/components/#toggles" }, { "@type": "ListItem", "position": 6, "name": "Alerts", "url": "https://skeletonic.com/components/#alerts" }, { "@type": "ListItem", "position": 7, "name": "Loaders & Spinners", "url": "https://skeletonic.com/components/#loaders" }, { "@type": "ListItem", "position": 8, "name": "Tooltips", "url": "https://skeletonic.com/components/#tooltips" }, { "@type": "ListItem", "position": 9, "name": "Code blocks", "url": "https://skeletonic.com/components/#code-blocks" }, { "@type": "ListItem", "position": 10, "name": "Cards", "url": "https://skeletonic.com/components/#cards" }, { "@type": "ListItem", "position": 11, "name": "Accordions", "url": "https://skeletonic.com/components/#accordions" }, { "@type": "ListItem", "position": 12, "name": "Modals & Dialogs", "url": "https://skeletonic.com/components/#modals" }, { "@type": "ListItem", "position": 13, "name": "Dropdowns", "url": "https://skeletonic.com/components/#dropdowns" }, { "@type": "ListItem", "position": 14, "name": "Tables", "url": "https://skeletonic.com/components/#tables" }, { "@type": "ListItem", "position": 15, "name": "Form fields", "url": "https://skeletonic.com/components/#form-fields" }, { "@type": "ListItem", "position": 16, "name": "Status inputs", "url": "https://skeletonic.com/components/#status-inputs" }, { "@type": "ListItem", "position": 17, "name": "Fieldsets", "url": "https://skeletonic.com/components/#fieldsets" }, { "@type": "ListItem", "position": 18, "name": "Lists", "url": "https://skeletonic.com/components/#lists" }, { "@type": "ListItem", "position": 19, "name": "Dividers", "url": "https://skeletonic.com/components/#dividers" }, { "@type": "ListItem", "position": 20, "name": "Avatars & Images", "url": "https://skeletonic.com/components/#avatars" }, { "@type": "ListItem", "position": 21, "name": "Link hover effects", "url": "https://skeletonic.com/components/#link-effects" } ] } </script>
Back to the top ↑