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.
Large expressive headlines, call-to-action clusters and product layouts.
Compose display typography, supporting copy, actions and badges using native markup; ensure appropriate heading order.
A complete frontend design system for ambitious products.
<section class="xsh-hero"><span class="xsh-badge xsh-badge-soft" data-xsh-intent="info">Xshna Version 1 Beta</span><h2 class="xsh-hero-title">Build with precision.</h2><p class="xsh-lead">A complete frontend design system for ambitious products.</p><div class="xsh-ref-flex"><a class="xsh-btn xsh-btn-primary" href="installation.html">Get started</a><a class="xsh-btn xsh-btn-outline" href="design-personalities.html">Explore themes</a></div></section>Use xsh-hero, xsh-hero-title, xsh-container and xsh-grid-auto to build unique branded homepages.
Responsive, adaptive, and designed for ordinary hosting.
<section class="xsh-hero"><span class="xsh-badge xsh-badge-solid" data-xsh-intent="primary">Xshna 1.0</span><h2 class="xsh-hero-title">A system for ambitious interfaces.</h2><p class="xsh-lead xsh-mt-4">Responsive, adaptive, and designed for ordinary hosting.</p><div class="xsh-flex xsh-gap-3 xsh-mt-6"><button class="xsh-btn xsh-btn-primary">Start building</button><button class="xsh-btn xsh-btn-secondary">Read docs</button></div></section>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-hero | Core component | CSS-only |
.xsh-hero-actions | Composable modifier / structure class | CSS-only |
.xsh-hero-title | 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.