Semantic structure
Use the documented Xshna classes with semantic HTML rather than replacing native elements unnecessarily.
Compose existing xsh- classes on the appropriate HTML element. Keep content order meaningful when CSS is disabled.
Premium dashboards with sidebar, header and responsive main area.
Combine a persistent sidebar, navigation, application header and scrolling main content. Test how the shell collapses at mobile widths.
An application shell for complex interfaces.
<div class="xsh-shell" style="min-height:220px"><aside class="xsh-shell-sidebar"><strong>Workspace</strong><nav class="xsh-stack"><a class="xsh-nav-link" aria-current="page" href="#xsh-gallery-expanded">Overview</a><a class="xsh-nav-link" href="#xsh-ref-api">Documentation</a></nav></aside><div><header class="xsh-shell-header"><strong>Dashboard</strong></header><div class="xsh-shell-main"><h3>Overview</h3><p>An application shell for complex interfaces.</p></div></div></div>Use xsh-shell data-xsh-sidebar=fixed, xsh-shell-sidebar, xsh-shell-header and xsh-shell-main. At smaller widths sidebar flows naturally above content.
Responsive application shell.
<div class="xsh-shell" data-xsh-sidebar="fixed" style="min-height:16rem">
<aside class="xsh-shell-sidebar"><strong>Workspace</strong><nav class="xsh-stack xsh-mt-4"><a class="xsh-nav-link" href="#">Overview</a><a class="xsh-nav-link" href="#">Settings</a></nav></aside>
<div><header class="xsh-shell-header xsh-p-4"><strong>Dashboard</strong></header><main class="xsh-shell-main"><h3 class="xsh-h3">Your content</h3><p>Responsive application shell.</p></main></div>
</div>Customize this component through --xsh-* CSS tokens, data-xsh-* configuration attributes and documented xsh-* utilities. Use the optional JavaScript distribution only when an interactive behavior is needed.
These selectors exist in the current distribution. An entry in this table does not imply that arbitrary modifier combinations are meaningful; use the examples above for the intended composition.
| Class | Purpose | Delivery |
|---|---|---|
.xsh-shell | Core component | CSS-only |
.xsh-shell-header | Composable modifier / structure class | CSS-only |
.xsh-shell-main | Composable modifier / structure class | CSS-only |
.xsh-shell-sidebar | Composable modifier / structure class | CSS-only |
Use the documented Xshna classes with semantic HTML rather than replacing native elements unnecessarily.
Compose existing xsh- classes on the appropriate HTML element. Keep content order meaningful when CSS is disabled.
Verify focus order, disabled behavior and descriptive labels for interactive patterns.
Load xshna.min.js only if the documented interaction needs it. Your application remains responsible for data, persistence and business rules.
Test narrow containers, long translations and user-defined text sizes.
Test 320px-wide viewports, container-constrained instances, keyboard zoom, longer translations and right-to-left text where relevant.
Use --xsh-* CSS variables for theme values and data-xsh-design / data-xsh-density on the xsh-app root.
Prefer design tokens over hard-coded overrides so components remain coherent across personalities.