Get started / Installation

Installation

React 19, one stylesheet, no build step of its own.

  1. /01

    Add the package

    bun add @forgeron/ui @forgeron/icons react react-dom
  2. /02

    Import the styles once

    // main.tsx: tokens, atoms and components, with the Forgeron Sans files.
    import "@forgeron/ui/styles.css";
  3. /03

    Use a component

    import { Button } from "@forgeron/ui";
    
    export function Deploy() {
      return <Button variant="primary">Deploy</Button>;
    }
  4. /04

    Light theme, if you want it

    // Dark by default. Every token has its light value.
    document.documentElement.dataset.theme = "light";