Components Tab: Detailed Preview

This shows exactly what the Components tab renders when a user has a palette selected. Each section shows the component styled with the design system tokens.

Buttons

All button variants rendered with palette colors. Shown at actual size.

GhostDestructive

Sizes:

smlg

States: hover, focus ring, disabled (50% opacity), loading (spinner)

Inputs

Text fields, textareas, selects. Border color from palette border token, focus ring from primary.

Default

With error

Invalid email format

Disabled

Cards

Surface background, border from palette. Three variants shown side by side.

Default Card

bg-surface, border-border, rounded with palette borderRadius

Elevated Card

Same as default + shadow from palette shadowStyle

Interactive Card

Hover: shadow increases, border turns primary/30

Badges

Small labels using palette semantic colors at 10% opacity background.

PrimaryDefaultSuccessWarningErrorInfo

Alerts

Full-width alert banners using semantic colors. Left border accent + tinted background.

Info:
Informational message with tips or guidance.
Success:
Action completed successfully.
Warning:
Proceed with caution.
Error:
Something went wrong. Please try again.

Typography

Heading font, body font, mono font. Rendered at each step of the type scale.

Heading 1 (48px, DM Sans, 700)

Heading 2 (36px, DM Sans, 700)

Heading 3 (24px, DM Sans, 600)

Body text (16px, Inter, 400, 1.6 line-height). This is how your main content will look with the selected design system.

Secondary text (14px, foregroundMuted). Used for descriptions and helper text.

Caption (12px, foregroundMuted). Used for timestamps and metadata.

Table

Data table with header row, alternating stripe, hover states. Full palette integration.

Name

Email

Role

Status

Jane Cooper

jane@example.com

Admin

Active

John Smith

john@example.com

Member

Pending

Modal

Surface background, border, shadow. Header with title, body content, footer with action buttons.

Confirm Action

Are you sure you want to delete this project? This action cannot be undone.

Delete

Navigation Bar + Sidebar + Tabs

Nav bar: surface background, border-bottom. Sidebar: w-64, surface bg, grouped items with icons. Tabs: border-bottom, active tab has primary underline.

Logo / Product Name

Dashboard

Settings

Profile

Tab 1 (active)Tab 2Tab 3

Progress Bar + Avatars + Tooltips

Progress: track in muted bg, fill in primary. Avatars: circle with initials or image. Tooltips: dark bg with white text on hover.

Upload progress: 67%

67%

primary fill on muted track

JCAS+3