xPulse
πŸ‡¬πŸ‡§ EN
Pages
Contents

6. Components

Buttons

Buttons have semantic colour variants and four sizes (--xs, --sm, --md, --lg).

<button class="xpulse-button xpulse-button--primary xpulse-button--sm">Primary SM</button>
<button class="xpulse-button xpulse-button--danger xpulse-button--lg">Delete</button>
<button class="xpulse-button xpulse-button--ghost">Ghost</button>
<a class="xpulse-button xpulse-button--info xpulse-button--block" href="#">Full Width</a>

Cards & Boxes

.xpulse-box

Neutral container surface.

Info Card

Positive feedback.

Footer
Warning Card

Warnings and reviews.

Review required
Danger Card

Errors and destructive processes.

Action required
<article class="xpulse-card xpulse-card--info">
<header class="xpulse-card__header">Header</header>
<div class="xpulse-card__content">Content</div>
<footer class="xpulse-card__footer">Footer</footer>
</article>

Tables

ComponentStatusNote
Theme RouteReadyLoaded from /_theme/app.css
Warning PaletteReviewUse sparingly
Error FlowCriticalOnly for destructive actions
Plain RowNormalNo contextual colour
<table class="xpulse-table xpulse-table--lined xpulse-table--striped">
<tbody>
<tr class="xpulse-table__row--info">...</tr>
<tr class="xpulse-table__row--warning">...</tr>
<tr class="xpulse-table__row--danger">...</tr>
</tbody>
</table>

Code

Inline: const state = "online"; and --xpulse-accent

1import theme from '@xpulse/theme';
2await theme.init();
3console.log(theme.href('app'));
<code class="xpulse-code">inline code</code>
<div class="xpulse-code-block">...</div>

Forms

Profile

<fieldset class="xpulse-fieldset">
<legend class="xpulse-legend">Group</legend>
<label class="xpulse-label">
Name<br>
<input class="xpulse-input" type="text" />
<span class="xpulse-help">Help text</span>
</label>
<textarea class="xpulse-textarea" rows="4"></textarea>
<input class="xpulse-input" type="color" />
</fieldset>

All components automatically respond to the current theme tokens. New components should always use tokens before writing custom styles.

en/styleguide/07-components.md 2026-04-17