Pricing cards
Structured, featured and comparison-ready commercial offer cards.
Metric and commercial compositions
Use native semantic headings and descriptions inside a reusable Xshna card.
Advanced tools and dedicated workspaces.
<div class="xsh-ref-card-grid"><article class="xsh-card"><span class="xsh-stat-label">Active members</span><div class="xsh-stat-value">18,240</div><span class="xsh-badge xsh-badge-success">+8.2%</span></article><article class="xsh-card xsh-card-feature"><span class="xsh-stat-label">Enterprise</span><div class="xsh-pricing-price">$49<span>/month</span></div><p>Advanced tools and dedicated workspaces.</p><button type="button" class="xsh-btn xsh-btn-primary" >Choose plan</button></article></div>Overview
Use xsh-pricing and data-xsh-featured, then layer typography and buttons using the design system.
Live example
Interactive · Real frameworkStarter
₹0
Explore the essentials.
Professional
₹999
Build confidently at scale.
Example markup
<div class="xsh-grid xsh-md-grid-cols-2 xsh-gap-4"><section class="xsh-pricing"><h3 class="xsh-h3">Starter</h3><p class="xsh-pricing-price">₹0</p><p class="xsh-muted">Explore the essentials.</p><button class="xsh-btn xsh-btn-secondary">Get started</button></section><section class="xsh-pricing" data-xsh-featured><span class="xsh-badge xsh-badge-solid" data-xsh-intent="primary">Featured</span><h3 class="xsh-h3">Professional</h3><p class="xsh-pricing-price">₹999</p><p class="xsh-muted">Build confidently at scale.</p><button class="xsh-btn xsh-btn-primary">Choose plan</button></section></div>Production guidance
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.
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.
| Class | Purpose | Delivery |
|---|---|---|
.xsh-pricing | Core component | CSS-only |
.xsh-pricing-price | Composable modifier / structure class | CSS-only |
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.
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.