import { DTCard } from '@dangerousthings/react'; import type { DTVariant } from '@dangerousthings/tokens'; import { Section, CodeLabel } from '../components/Section'; const categories: { hash: string; title: string; desc: string; mode: DTVariant; count: number }[] = [ { hash: 'bevels', title: 'Bevels', desc: 'Angular clip-path patterns — cards, buttons, badges, media frames, modals, drawers', mode: 'normal', count: 8 }, { hash: 'forms', title: 'Forms', desc: 'Text inputs, checkboxes, switches, radios, progress bars, accordions, steppers', mode: 'success', count: 7 }, { hash: 'animations', title: 'Animations', desc: 'Entrance animations, transition utilities, scrollbar styling', mode: 'other', count: 5 }, { hash: 'cards-advanced', title: 'Advanced Cards', desc: 'Card color modes, progress bars, badge overlays, interactive bevel buttons, feature legend', mode: 'warning', count: 6 }, { hash: 'tokens', title: 'Tokens', desc: 'Color palette, typography, spacing, and shape values for the active brand', mode: 'normal', count: 3 }, ]; function HexDecor({ color, size = 14, opacity = 0.5 }: { color: string; size?: number; opacity?: number }) { return ( ); } export function HomePage() { return ( <>

DANGEROUS THINGS

DESIGN SYSTEM

React component showcase — switch brands and modes in the sidebar

COMPONENT CATALOG

{categories.map(cat => (
{cat.desc}
{cat.count > 0 && (
{cat.count} components
)}
))}
{`import { DTCard, DTButton } from '@dangerousthings/react';\nimport '@dangerousthings/web/index.css';`}
); }