ID

Components

Every building block in Selaras, live and ready to copy. Switch the theme or mode — the examples follow.

Colors

Use the CSS variables, never the hex values — every color below changes with the theme and mode. Click a swatch to copy its variable.

Brand follow the theme

Semantic same in every theme

Neutrals flip in dark mode

Typography

Plus Jakarta Sans at a 14 px base. Put the classes on real headings (h1–h4) in your pages; numbers use tabular figures so columns line up.

Quarterly revenue review

.sl-page-title · 22 / 600

Revenue by channel

.sl-card-title · 17 / 600
.sl-section-label · 11.5 / 600 · caps

Body text is set in ink 2 for comfortable reading across long paragraphs and table cells.

body · 14 / 400

Supporting text, captions and timestamps.

.sl-muted · ink 3

$184,920.00

.sl-num · tabular figures

A link inside text

a · primary text

Buttons

One primary button per view for the main action; light buttons for everything else. Disabled and busy buttons use aria-disabled, so they stay focusable and screen readers still announce them.

Variants

Sizes

With icons

States

Full width

Badges & status

Status pills always pair a color with an icon and a word, so meaning never depends on color alone.

Status

Paid Pending Low stock Overdue In review Draft

Chips & keys

12.4% 3.1% Beta Ctrl K

Avatars

Five tones that follow the theme, a gradient for the signed-in user, stacks for teams and rounded tiles for companies.

Initials & stack

SH AW FR GL CM HS SHAWCM+3

Person & company tiles

CM Clara MendesProduct designer

Alerts

For messages that belong to the page. Add role="alert" only when you insert one in response to an action — static alerts need no role. data-sl-dismiss closes the alert and moves focus to what follows.

Scheduled maintenance

Selaras will be unavailable on Sunday, 27 Sep from 01:00 to 02:00 (UTC+7).

Payment received

Atlas Law paid INV-2026-0143 in full on Sep 9.

2 invoices are overdue

$8,800 in total — the oldest by 30 days.

Payment failed

The card ending 4242 was declined. Update your billing details to keep your workspace active.

Forms

Every field has a visible label. Help and error text sit right under the field and are linked with aria-describedby; errors also set aria-invalid.

Text fields

Shown on invoices and in email footers.

Enter an email address like name@company.com.

$per hour

Choices

Email me about
Invoice due in
Security

Search & segmented control

Password & one-time code behaviour from auth.js

Use 8 or more characters. Longer is stronger.

Verification code

Cards & KPIs

Cards fill their grid column (height: 100%), so cards in a row line up. KPI cards use the two theme tints — A for the secondary family, B for primary.

Gross sales

$184,920
+12.4% vs previous 30 days

Orders

3,418
+8.1% vs previous 30 days

Website redesign

Harbor Coffee · due Oct 3

In progress

Checkout and menu pages are in review before the Oct 3 handover.

72%

Tabs

Works out of the box with selaras.js: click, or use the arrow keys, Home and End. Only the selected tab is in the Tab order.

14 invoices across 6 clients.

Tables

Add data-selectable to a table and the header checkbox selects every row (with the mixed state in between). Wide tables scroll inside .sl-table-wrap, never the page.

Latest invoices

6 of 14 · newest first

View all
Invoice Client Due Amount Status
INV-2026-0148 Verdant Foods Oct 6, 2026 $8,800.00 Pending
INV-2026-0147 Pinecrest HR Oct 9, 2026 $8,800.00 Draft
INV-2026-0146 Harbor Coffee Sep 29, 2026 $7,700.00 Pending
INV-2026-0145 Lumen Fitness Sep 24, 2026 $11,000.00 Pending
INV-2026-0144 Kinetic Labs Sep 15, 2026 $5,500.00 Overdue
INV-2026-0143 Atlas Law Sep 11, 2026 $4,950.00 Paid
Showing 1–6 of 14

Progress & loading

Give progress bars a progressbar role and values. Show a skeleton when you know the layout, a spinner when you don't.

Progress

Onboarding portal
96%
Mobile app v2
34%
Data migration
12%
Brand guidelines
18%

Spinner & skeleton

Modal, toast & tooltip

Modals return focus to the button that opened them. Toasts offer Undo instead of asking "Are you sure?", and pause while hovered or focused.

Modal

Toast the live one appears bottom right

Invoice sent to Harbor Coffee

Tooltip

Accordion

Bootstrap collapse keeps aria-expanded in sync. Give the group a data-bs-parent to open one item at a time; leave it out to allow several.

One open at a time

Refunds go back the way the customer paid. Cash comes out of the drawer; bakery items can go back to stock.

No — only sales from the open shift can be voided. Refund older sales instead, so the closed shift’s report stays true.

One point per dollar paid, rounded down. Refunds take the points back; voids cancel them.

List group

Plain lists with dividers. Make a whole row a link only when it does one thing; put switches and buttons in rows that do several.

Linked rows

Settings & checklist

  • Low stock alertsEmail when an item drops below its reorder point
  • Daily sales summarySent at 18:00 to the store owner
  1. Add your first productDone
  2. Set shipping ratesDone
  3. Connect a payment method2 min

Timeline

An ordered list, newest first. The icon carries the kind of event; the text always says it too.

Activity

  1. Invoice INV-2026-0142 paid

    Harbor Coffee paid $7,700.00 by bank transfer.

  2. Refund on sale #1039

    $4.95 back to QR pay · wrong order.

  3. Shipment ASN-5525 at the dock

    Nutrilab Asia · 3 lines, 1,800 units expected.

  4. Nadia Putri joined the studio

    Content strategist · added to Destination guides.

Popover & offcanvas

Popovers open on click and hold a short explanation — keep actions out of them. An offcanvas panel slides in for filters or details and returns focus to its button when it closes.

Popover

Offcanvas

Filters

Empty states

Say what is missing and offer the next step. Use the compact version inside cards and filtered lists.

No invoices yet

Create your first invoice and it will show up here, ready to send.

New invoice

No projects match these filters.

Icons

Tabler Icons 3.19 as a webfont — 5,000+ icons, all MIT. Decorative icons get aria-hidden="true"; icon-only buttons need an aria-label. Click an icon to copy its tag.

Paid

Used in Selaras