Skip to content
Xshna.cssv1.0.0-beta.2
PlaygroundUtilities
DOCUMENTATION / DESIGN SYSTEM
Design system / Component reference

Autopilot

Components respond to their own available width, not just the viewport.

V1 BETA / DOCUMENTEDLive variants · API · Accessibility · Responsive guidance

Overview

Place xsh-auto on a wrapper, and xsh-auto-card on a card; use xsh-auto-media and xsh-auto-actions for responsive child arrangement.

Live example

Interactive · Real framework
◈
Autopilot

Context-aware cards

Adjust the parent's width to change the layout.

Example markup

<div class="xsh-auto">
 <article class="xsh-card xsh-auto-card">
  <div class="xsh-auto-media xsh-bg-primary-soft xsh-rounded-lg xsh-grid xsh-items-center xsh-p-8">◈</div>
  <div class="xsh-stack"><span class="xsh-badge">Autopilot</span><h3 class="xsh-h3">Context-aware cards</h3><p>Adjust the parent's width to change the layout.</p><div class="xsh-auto-actions"><button class="xsh-btn xsh-btn-primary">View details</button></div></div>
 </article>
</div>

Production guidance

Container queries have progressive fallback; choose a minimum width that works for content.

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.

EXACT NAMES FROM THE SHIPPED STYLESHEETS

Complete selector inventory

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.

ClassPurposeDelivery
.xsh-adaptCore componentCSS-only
.xsh-adapt-cardComposable modifier / structure classCSS-only
.xsh-adapt-gridComposable modifier / structure classCSS-only
.xsh-adapt-tableComposable modifier / structure classCSS-only
.xsh-adapt-toolbarComposable modifier / structure classCSS-only
ENGINEERING AND INTEGRATION

Implementation details

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.

Interactive behavior

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.

Responsive and localization

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.

Theme and customization

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.

ACCEPTANCE CHECKLIST

What to verify before shipping

  • Confirm every documented class used by the feature exists in the release CSS.
  • Navigate controls using Tab, Shift+Tab, Enter, Space and Escape where appropriate.
  • Test with reduced motion, high contrast, 200% text zoom and a narrow mobile viewport.
  • Verify disabled, loading, empty, error and long-content states where relevant.
  • Check actual application behavior independently of the preview: these examples use illustrative data.