UI Component Library

Showcase of all reusable components built with bits-ui and Tailwind CSS

Buttons

Variants

Sizes

States

Full Width

Badges

Variants

Default Primary Success Warning Danger

Sizes

Small Medium Large

Alerts

Toast Notifications

Click the buttons below to see toast notifications appear in the top-right corner.

Input Fields

We'll never share your email

Loading States

Spinners

Spinner with Text

Loading your data...

Skeletons

Empty States

No messages yet

When you receive messages, they'll appear here. Start a conversation to get started!

Cards

Standard Card

Basic card with default styling and padding.

Hover Card

This card has hover effects. Try hovering over it!

Gradient Card

Features a subtle gradient background.

Usage

Import components from the UI library:

import {
  Button,
  Card,
  Input,
  Alert,
  Badge,
  LoadingSpinner,
  Skeleton,
  EmptyState
} from '$lib/components/ui';

import { toast } from '$lib/stores/toast';

All components are built with:

  • bits-ui - Headless UI primitives
  • Tailwind CSS - Utility-first styling
  • Svelte 5 Runes - Modern reactivity
  • TypeScript - Full type safety
  • Dark Mode - Automatic theme support
  • Accessibility - ARIA labels and semantic HTML

Space Bodies

Interactive space visualization and quantum physics games on Cloudflare's edge network.

Technology

  • Built with SvelteKit 5
  • Cloudflare Workers
  • Nexartis AI/Agents

Š 2025 Space Bodies. Built for the Nexartis AI/Agents ecosystem.