66 components · MIT

PixelUI

Accessible React components you install one package at a time. They sit quietly in a serious product and keep one signature: Geist Pixel type and a few 8-bit details.

Running on this page

The published packages, live and wired together. Press Redeploy, or drive it with the keyboard.

acme-webmain · production
Ready
Build logs
  1. Cloning acme-web@main
  2. Installing dependencies
  3. Compiling 36 packages
  4. Using cached fonts
  5. Build completed
Deploys0128
  • Loading, snake patternLoading, pulse patternLoading, scan pattern
    Loader
  • ⌘KShiftEnter
    Kbd
  • PixelAvatar

Example app

A small hosting console assembled only from PixelUI: navigation, tables, forms, overlays and toasts. Every control works; nothing leaves this page.

Overview

48.2k

Requests in the last 12 hours

Latency by region

p75 of 52 ms across five regions

Region status

Edge capacity right now

fra1Frankfurt

Latest preview

a1f9c2e · main

Screenshot of the latest acme-web production deployment

Activity

Team events today

  1. ada promoted a1f9c2e to production
  2. grace opened feat/billing
  3. alan rotated the API token
  4. katherine added the domain docs.acme.dev
  5. grace rolled back e6c90b1

    Install

    Requires React 19. Pick single components to keep bundles small, or the umbrella package to get them all.

    1. Add the packages

      @pablo-v/tokens is the shared peer: CSS variables, Geist fonts and keyframes.

      Terminal
      # only what you use
      pnpm add @pablo-v/tokens @pablo-v/button
      
      # or every component at once
      pnpm add @pablo-v/react
    2. Import the styles

      Load the tokens once at the root of your app, then each component's stylesheet. A CSS-aware bundler (Vite, Next.js, Astro…) is required.

      Single components
      import '@pablo-v/tokens/styles.css';
      import '@pablo-v/button/style.css';
      Umbrella package
      import '@pablo-v/react/styles.css';
      import { Button, Badge, Switch } from '@pablo-v/react';
    3. Use the components

      Every component ships its types; interactive ones are marked "use client".

      Deploy.tsx
      import '@pablo-v/tokens/styles.css';
      import '@pablo-v/button/style.css';
      import { Button } from '@pablo-v/button';
      
      export function Deploy({ busy }: { busy: boolean }) {
        return (
          <Button variant="primary" loading={busy}>
            Deploy
          </Button>
        );
      }

    Frameworks and theming

    Plain CSS with overridable --pxl-* custom properties, so it fits any stack.

    Next.js

    Interactive components ship with "use client", so you can import them straight from Server Components. If you load fonts with next/font, import the token files individually instead ofstyles.css: the tokens read the --font-geist-* variables.

    app/layout.tsx
    // fonts come from next/font
    import { GeistSans } from 'geist/font/sans';
    import { GeistMono } from 'geist/font/mono';
    import { GeistPixelSquare } from 'geist/font/pixel';
    import '@pablo-v/tokens/tokens.css';
    import '@pablo-v/tokens/motion.css';
    import '@pablo-v/tokens/utilities.css';
    
    export default function RootLayout({ children }: { children: React.ReactNode }) {
      return (
        <html
          lang="en"
          className={`${GeistSans.variable} ${GeistMono.variable} ${GeistPixelSquare.variable}`}
        >
          <body>{children}</body>
        </html>
      );
    }

    Tailwind CSS v4

    Add the preset after the tokens to get font-pixel, *-pxl-* colours, radii, shadows and easings, plus clip-notch and pixelated. Utilities follow the live theme.

    Tailwind CSS setup
    @import "tailwindcss";
    @import "@pablo-v/tokens/styles.css";
    @import "@pablo-v/tokens/tailwind.css";
    Tailwind class example
    <div class="rounded-pxl-lg bg-pxl-bg-subtle shadow-pixel">
      <h2 class="font-pixel text-pxl-xl">Ship it</h2>
    </div>

    Light and dark

    Themes follow the OS setting by default. Set data-theme="light" or "dark" on any element to force one for that subtree.

    Theme attribute example
    <!-- follow the OS (default), or force a theme on any element -->
    <html data-theme="dark">
      <section data-theme="light">…</section>
    </html>

    Tokens

    Override any token on :root or a container. Components read colours, radii and fonts only from tokens, never from literals. All tokens in Storybook.

    Token overrides
    :root {
      --pxl-accent: #0f766e;
      --pxl-radius-md: 8px;
    }
    
    .marketing {
      --pxl-font-pixel: var(--pxl-font-pixel-grid);
    }

    Teach your agent PixelUI

    @pablo-v/mcp is a Model Context Protocol server. Connect it to your coding agent and it can look up which component fits, its typed props, real examples and the design rules before writing any UI.

    Claude Code

    Run this once in your project. It needs Node.js; npx fetches the server on first use.

    Terminal
    claude mcp add pixel-ui -- npx -y @pablo-v/mcp

    What your agent gets

    list_components
    The catalogue by category, to choose components.
    get_component
    When to use it and what to use instead, install command, imports, typed API and examples.
    get_guide
    Setup, the design rules and every --pxl-* token.

    Cursor, Claude Desktop and other clients

    Add the server to the client's MCP configuration, for example .cursor/mcp.json. It runs over stdio, so it works with any client that can start a local command.

    mcp.json
    {
      "mcpServers": {
        "pixel-ui": {
          "command": "npx",
          "args": ["-y", "@pablo-v/mcp"]
        }
      }
    }

    Matches the version you install

    The server answers from data built at release time: the packages' type declarations, their Storybook stories and a hand-written usage guide per component. Nothing is fetched at runtime and nothing leaves your machine.

    A skill for building screens

    The MCP server answers questions; the pixel-ui skill tells your agent when to ask them. Agents pick it up automatically when the task is UI in a project that uses PixelUI.

    Install

    Run this in your project. The skills CLI installs the skill into the folder your agent reads: Claude Code, Cursor, Codex and others.

    Terminal
    npx skills add PabloViniegra/pixel-ui

    What it teaches

    Workflow
    Check the setup, map the screen to components, read their docs, then write.
    Choosing
    Which of two similar components fits: Dialog or Drawer, Select or Autocomplete, toast or Alert.
    Composition
    Patterns for forms, data views, app shells and overlays.
    Design checks
    The rules generated code breaks most often, reviewed before finishing.

    Better with the MCP server

    The skill does not copy component APIs, so it does not go stale: it sends the agent to the MCP server for the facts of the version you installed, and falls back to the packages' type declarations when the server is not connected.

    One Markdown file

    Skills run with your agent's permissions, so read it first: it is a single SKILL.md with instructions and no scripts.

    Components

    66 components, each an independent package. Every name opens its Storybook docs with live controls, prop tables and accessibility checks.

    Actions

    Buttons, chips and toggles that trigger or switch something.

    • Button docs

      Button with primary, secondary, ghost and danger variants, three sizes and a loading state

    • Chip docs

      Pill chip that can be toggled or removed

    • Toggle docs

      Pressable toggle button, toggle group and segmented control

    Forms

    Text entry and selection controls, wired for labels and errors.

    Feedback

    Status messages, notifications and loading states.

    • Alert docs

      Inline status message with tone icon, action and dismiss

    • Loader docs

      3x3 pixel grid loader with snake, pulse and scan patterns

    • Progress docs

      Segmented progress bar with a determinate value or an indeterminate loop

    • Skeleton docs

      Loading placeholders

    • Toast docs

      Toast notifications with a pixel countdown

    Data display

    Read-only content: tables, timelines, badges and cards.

    • Avatar docs

      Photo avatar with initials fallback, presence status and groups

    • Badge docs

      Status badge with neutral, accent and status tones and an optional status dot

    • Card docs

      Card container with header, title, description, content and footer slots

    • Kbd docs

      Keyboard key and shortcut display

    • Table docs

      Data table primitives

    • Timeline docs

      Vertical list of dated events

    Layout

    Containers that group, divide, collapse and scroll content.

    Navigation

    Structure and wayfinding for dense product screens.

    Overlays

    Floating and modal surfaces with focus management.

    Signature

    The deliberate pixel moments that make PixelUI recognisable.

    Versioned one by one

    Each package follows semver on its own and keeps a CHANGELOG.md written by Changesets. Releases publish to npm with provenance and tag each package, for example @pablo-v/button@1.0.0.