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.
Dismissible notices, semantic status treatments and editorial callouts.
Semantic messaging: information, success, warning and danger. Include a plain-language description and required next step.
Your changes were saved successfully.
Review the pending fields before continuing.
The request could not be completed. Please try again.
New information is available in your workspace.
<div class="xsh-alert xsh-alert-success" role="status"><strong>Success notification</strong><p>Your changes were saved successfully.</p></div><div class="xsh-alert xsh-alert-warning" role="status"><strong>Warning notification</strong><p>Review the pending fields before continuing.</p></div><div class="xsh-alert xsh-alert-danger" role="alert"><strong>Danger notification</strong><p>The request could not be completed. Please try again.</p></div><div class="xsh-alert" role="status"><strong>Info notification</strong><p>New information is available in your workspace.</p></div>Add data-xsh-variant to xsh-alert. A descendant button with data-xsh-alert-dismiss removes the notice; developers must persist dismissals themselves if required.
Everything is operating normally. This alert can be dismissed.
<div class="xsh-alert" data-xsh-variant="info" role="status">
<div class="xsh-alert-content"><strong class="xsh-alert-title">System update</strong><p>Everything is operating normally. This alert can be dismissed.</p></div>
<button class="xsh-alert-close" data-xsh-alert-dismiss aria-label="Dismiss alert">×</button>
</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-alert | Core component | CSS-only |
.xsh-alert-close | Composable modifier / structure class | CSS-only |
.xsh-alert-content | Composable modifier / structure class | CSS-only |
.xsh-alert-danger | Composable modifier / structure class | CSS-only |
.xsh-alert-success | Composable modifier / structure class | CSS-only |
.xsh-alert-title | Composable modifier / structure class | CSS-only |
.xsh-alert-warning | 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.