ButterflyPress
Interactive Sandbox

Multi-Theme & Multi-Framework Showcase

Switch between all 7 generic theme archetypes, toggle Light & Dark schemes, resize viewports, and compare @butterflypress/astro, @butterflypress/react, and @butterflypress/vue rendering the exact same normalized StreamBlock payload.

Theme Archetypes (7 Built-In Presets)

Clean corporate and editorial theme with dual Tailwind v4 and Bootstrap 5.3 tokens.

Framework:
Viewport:
Stream:
butterflypress-defaultlightreact
20 Shadcn CSS Tokens Active

Semantic Intention ContainersIn Action

This exact StreamBlock payload renders identically in Astro, React, and Vue using only Shadcn CSS design tokens.

Composable Card Atom

Cards adapt automatically to Light and Dark modes across all 7 archetypes without hardcoded hex colors.

  • Variant Dispatch hero:editorial -> hero -> fallback
  • Case Compatibility camelCase & snake_case shimmed
  • XSS Protection Sanitized HTML & safe action URLs

Surface: Default

Uses --card and --card-foreground inside brand sections.

Surface: Muted

Uses --muted and --muted-foreground for calm hierarchy.

Surface: Contrast

Inverts foreground and background tokens for bold emphasis.

:root {
  --background: #ffffff;
  --foreground: #0f172a;
  --primary: #6d28d9;
  --primary-foreground: #ffffff;
  --secondary: #0f172a;
  --secondary-foreground: #ffffff;
  --card: #f8fafc;
  --card-foreground: #0f172a;
  --popover: #f8fafc;
  --popover-foreground: #0f172a;
  --muted: #eceef1;
  --muted-foreground: #64748b;
  --accent: #f59e0b;
  --accent-foreground: #0f172a;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #d8dce2;
  --input: #d8dce2;
  --ring: #6d28d9;
  --radius: 0.5rem;
  --font-heading: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}