Skip to content
Xshna.cssv3.0.0
PlaygroundUtilities
IMPLEMENTATION / PATTERNS

Practical recipes.

Real component compositions for commercial projects, not abstract examples. Copy any markup and adapt the content and application behavior.

Enterprise admin shell

RECIPE 01

Sidebar + dashboard + activity cards

Dashboard

Revenue

₹48K

Signups

1,209
Markup
<div class="xsh-shell" data-xsh-sidebar="fixed" style="min-height:14rem"><aside class="xsh-shell-sidebar"><strong>Console</strong><nav class="xsh-stack xsh-mt-4"><a class="xsh-nav-link" href="#">Overview</a><a class="xsh-nav-link" href="#">Analytics</a></nav></aside><main class="xsh-shell-main"><h3 class="xsh-h3">Dashboard</h3><div class="xsh-grid xsh-grid-cols-2 xsh-gap-3 xsh-mt-4"><div class="xsh-stat"><p class="xsh-stat-label">Revenue</p><b class="xsh-stat-value">₹48K</b></div><div class="xsh-stat"><p class="xsh-stat-label">Signups</p><b class="xsh-stat-value">1,209</b></div></div></main></div>

Advanced form

RECIPE 02

Input groups, validation and progress

@
70%
Markup
<form class="xsh-stack" data-xsh-validate novalidate onsubmit="event.preventDefault()"><div class="xsh-field"><label class="xsh-label" for="xsh-recipe-email">Email</label><div class="xsh-input-group"><span class="xsh-input-addon">@</span><input type="email" id="xsh-recipe-email" required class="xsh-input" placeholder="[email protected]"></div></div><label class="xsh-switch"><input type="checkbox"><span>Enable notifications</span></label><label class="xsh-label">Completion</label><progress class="xsh-progress" value="70" max="100">70%</progress><button class="xsh-btn xsh-btn-primary">Continue</button></form>

Responsive product cards

RECIPE 03

Adaptive cards and density-agnostic design

New

Product Alpha

Component systems that scale with your product.

Product Beta

Works on any shared web host.

Markup
<div class="xsh-grid xsh-grid-cols-1 xsh-md-grid-cols-2 xsh-gap-4"><article class="xsh-card" data-xsh-elevation="raised"><span class="xsh-badge xsh-badge-primary">New</span><h3 class="xsh-h3">Product Alpha</h3><p class="xsh-muted">Component systems that scale with your product.</p><div class="xsh-card-footer"><button class="xsh-btn xsh-btn-primary">Explore</button></div></article><article class="xsh-card"><h3 class="xsh-h3">Product Beta</h3><p>Works on any shared web host.</p><div class="xsh-card-footer"><button class="xsh-btn xsh-btn-secondary">Discover</button></div></article></div>

Table and client-side filters

RECIPE 04

Sort/filter a small DOM table without a server

Orion87
Aurora95
Markup
<div class="xsh-stack"><label for="xsh-recipe-filter" class="xsh-label">Search projects</label><input id="xsh-recipe-filter" class="xsh-input" data-xsh-filter="#xsh-recipe-table" placeholder="Search..."><div class="xsh-table-responsive"><table class="xsh-table xsh-table-striped" id="xsh-recipe-table"><thead><tr><th><button data-xsh-sort="text">Project ↕</button></th><th><button data-xsh-sort="number">Score ↕</button></th></tr></thead><tbody><tr><td>Orion</td><td>87</td></tr><tr><td>Aurora</td><td>95</td></tr></tbody></table></div></div>

Marketing hero

RECIPE 05

High-end landing section with only CSS

Introducing Xshna

Make the web remarkable.

Design beyond breakpoints.

Markup
<section class="xsh-hero"><span class="xsh-badge xsh-badge-primary">Introducing Xshna</span><h2 class="xsh-hero-title">Make the web remarkable.</h2><p class="xsh-lead">Design beyond breakpoints.</p><div class="xsh-flex xsh-flex-wrap xsh-gap-3 xsh-mt-6"><button class="xsh-btn xsh-btn-primary">Get started</button><button class="xsh-btn xsh-btn-secondary">Learn more</button></div></section>

Notifications and disclosures

RECIPE 06

Accessible alerts, accordion and toasts

Update available

New UI components are installed.

Markup
<div class="xsh-stack"><div class="xsh-alert" data-xsh-variant="info" role="status"><div class="xsh-alert-content"><strong>Update available</strong><p>New UI components are installed.</p></div><button data-xsh-alert-dismiss class="xsh-alert-close" aria-label="Dismiss">×</button></div><button class="xsh-btn xsh-btn-primary" data-xsh-toast="Your settings were saved" data-xsh-toast-type="success">Save preferences</button></div>