Skip to content

Install

blocco is a shadcn registry. Nothing to keep in your dependencies: the CLI copies each component into your repo, and from then on it is your code.

  1. 1Add the registry

    In your project’s components.json, once.

    {
      "registries": {
        "@blocco": "https://blocco.brnr.dev/r/{name}.json"
      }
    }
  2. 2Add the stylesheet

    The tokens for both themes, Figtree and JetBrains Mono, and the few utilities the components use. Install it with the theme item, then import it after Tailwind.

    $ bunx shadcn@latest add @blocco/theme
    @import "tailwindcss";
    @import "./blocco.css"; /* the tokens, base styles and utilities */
  3. 3Add what you need

    Each component brings the others it uses.

    $ bunx shadcn@latest add @blocco/field @blocco/dialog
  4. 4Switch themes

    Light is the default. Set data-theme="dark" on<html> for dark. Every colour is a token, so both themes come from the same classes.