Lightweight
39.9 KB minified, 7.5 KB gzipped.
<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.
Interactive elements the visitor clicks, taps, or focuses to drive the page.
A semantic, themable action trigger. Solid and outline variants ship six brand colours each.
<code class="language-html">Primary Secondary Tertiary </code></pre>Outline variants:
<code class="language-html">Outline Outline </code></pre>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><button type="button"></code> for in-page actions and <code><a href></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">Square ● Oval Outline </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"> Save Save as draft Discard Full-width call to action </code></pre>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">Default Primary Success Warning Danger </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"> Heads up. This is a primary alert. Saved. Your changes are persisted. Careful. This action affects shared state. Error. Could not save the form. </code></pre> Heads up. This is a primary alert.Saved. Your changes are persisted.Careful. This action affects shared state.Error. Could not save the form.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><code></code>, <code><kbd></code>, <code><pre></code>, and <code><samp></code> get monospace styling and a thick inline-start accent stripe (which flips automatically under <code><html dir="rtl"></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">npm install @sebastienrousseau/skeletonic-stylus 2026-04-30 — build passed deprecated since v1.1.0 — removed in v2.0 CVE-2023-44270 patched via overrides use `--gr-h1` to override the heading scale </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><kbd></code>:
<code class="language-html">Press Ctrl+K 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><html dir="rtl"></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"> Lightweight 39.9 KB minified, 7.5 KB gzipped. Accessible WCAG 2.2 conformant out of the box. Modular Cascade-layered for easy overrides. </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><article></code>, <code><section></code>) and start its content with a heading (<code><h3></code>). Screen-reader users can then traverse the card list as first-class navigable regions.
Tables
Plain <code><table></code> elements get bordered cells and a contrast-flipped <code><thead></code> automatically — no class soup needed.
<code class="language-html"> FrameworkBrotliJS-free Skeletonic6.7 KBYes Pico CSS10.1 KBYes Bootstrap23.0 KBNo (Popper) </code></pre>
Data table table Framework Brotli JS-free Skeletonic 6.7 KB Yes Pico CSS 10.1 KB Yes Bootstrap 23.0 KB No (Popper) Accessibility note. Always use <code><thead></code> and <code><th></code> for header cells (not <code><td></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"> Name Email Message Send </code></pre>
Accessibility note. Every input must have a programmatically associated <code><label for="…"></code>. Group related controls inside a <code><fieldset></code> with a <code><legend></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><input type=""></code> that already has element styling.
<code class="language-html"> </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><fieldset></code> groups related controls; <code><legend></code> names the group. Both inherit Skeletonic's spacing and border tokens automatically.
<code class="language-html"> Notification preferences Email digest SMS alerts </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><ul></code> — <code>square</code>, <code>circle</code>, <code>disc</code>. Plus the default unstyled list-reset.
<code class="language-html"> Square bullets Square bullets Circle bullets Circle bullets Disc bullets Disc bullets </code></pre>
- Square bullets
- Square bullets
- Circle bullets
- Circle bullets
- Disc bullets
- Disc bullets
Dividers
Ten visual variants of <code><hr></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"> </code></pre>Solid
Dashed
Dotted
Doubled
Rounded
Blurred
Small (centred)
Centred icon
Centred text
Note. <code><hr></code> is a semantic, paragraph-level thematic break. Don't use it for purely decorative spacing — use a <code><div></code> or CSS <code>margin</code> instead. Assistive tech announces every <code><hr></code> as a section change.
Link hover effects
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">Underline left → right Underline right → left Underline grow from centre Underline shrink to centre Top + bottom, left → right Top + bottom, right → left Top + bottom, grow from centre Top + bottom, opposite start Underline going up Underline going down Expanding brackets Shrinking brackets </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"> Half Half Third Third Third Two thirds Third </code></pre> HalfHalfThirdThirdThirdTwo thirds (col-span-2)ThirdAccessibility 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><div class="row"><div class="flex-6">…</code> with <code><div class="grid grid-cols-2"><div>…</code>. The new system is shorter, uses native CSS Grid, and avoids margin-collapse quirks.
Header & hamburger nav
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"><style> /* 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;} } </style> Brand ☰ Home Docs Components About </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><label></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><details></code> and <code><summary></code> elements with native <code>@interpolate-size</code> smooth height transitions.
<code class="language-html"> What makes Skeletonic Stylus unique? 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. </code></pre>Accessibility note. Native <code><details></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><dialog></code> element, discrete view transitions, and custom backdrop blurs.
<code class="language-html"> System Update Skeletonic Stylus 2.0 has successfully initialized native cascade layers and OKLCH color spaces. Cancel Confirm Open Dialog </code></pre><dialog class="modal" id="demoModal"> System Update
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.
Dropdowns
Pure CSS context menus built on top of the HTML Popover API and CSS Anchor Positioning.
<code class="language-html"> Options Menu Account Settings Preferences Documentation </code></pre>Tooltips
Zero-JavaScript informational tooltips leveraging the HTML Popover API with automated positioning.
<code class="language-html"> Hover or Focus Me WCAG AAA Compliant Tooltip Content </code></pre>Loaders & Spinners
Hardware-accelerated CSS spinners for visual status feedback during async processing.
<code class="language-html"> </code></pre>
Switches & Toggles
Native, accessible switch toggles using HTML checkboxes with <code>role="switch"</code>.
<code class="language-html"> Enable Automatic Updates </code></pre>
Avatars & Media
Responsive image containers, thumbnails, and circular avatar profiles.
<code class="language-html"> </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>