halo-ds

v1.0.0
io.github.Halo-design-system/halo-ds Checked 2 days ago Published 12 days ago

Props, examples, design tokens and page blocks for the Halo React design system.

An open-source design system for designers and developers: a Figma library and a React component library built from the same design tokens, with light and dark mode. Free and open source under the MIT licence. Current version: 1.0.0 on npm. This installs Halo and asks for the mode and a brand colour. Or install it yourself:

Summary extracted from the README.

Halo Design System

An open-source design system for designers and developers: a Figma library and a React component library built from the same design tokens, with light and dark mode.

📖 Website and docs: https://halodesignsystem.dev/

🧪 Component playground (Storybook): https://halodesignsystem.dev/storybook/

🎨 Figma file (free on the Figma Community): https://www.figma.com/community/file/1704622047377905631

  • 56 components in Figma and React, with 2,125 Figma variants
  • 288 design tokens and 42 text styles, in light and dark
  • 1,512 icons, 100 illustrations, 3,719 emojis, 271 flags and 1,489 brand logos
  • 8 ready-made blocks and 7 example apps you can click through on the site
  • An MCP server, a CLI and a Claude Code plugin, so AI assistants build with Halo correctly

Free and open source under the MIT licence. Current version: 1.0.0 on npm.

Packages

Package Description
@halo-ds/tokens Design tokens as CSS variables (light + dark), JSON and JS, generated from Figma
@halo-ds/react React components
halo-ds CLI and MCP server: npx halo-ds init, theme, add, docs and mcp
figma-plugin Figma plugin: search every component and place it on the canvas
halo-ds plugin Claude Code plugin: skills to build, review, theme and migrate UI
site The website: docs, components, foundations and the live example apps
docs Storybook: live documentation and component playground

Using Halo

npx halo-ds init

This installs Halo and asks for the mode and a brand colour. Or install it yourself:

npm install @halo-ds/react

That is all the setup: the styles, the design tokens and the Geist font load by themselves when you use a component.

import { Button } from '@halo-ds/react';

Switch themes with the data-theme attribute on <html>: light (default), dark, or system (follows the OS).

Every token is a CSS variable starting with --halo-, so your own styles can use them too:

.card {
  background: var(--halo-surface-primary);
  color: var(--halo-text-primary);
  padding: var(--halo-spacing-md);
  border-radius: var(--halo-radius-sm);
}

Make it yours

  • Quick: run npx halo-ds theme "#2F6BFF" with your brand colour, or pick one on the website. It sets your brand colour in light and dark. No rebuild needed.
  • Full: change the variables in your copy of the Figma file, export them, and rebuild the tokens so design and code match.

The Theming page walks through both.

Use it with AI assistants

Add the MCP server so your assistant knows every component's props, examples and rules:

claude mcp add halo -- npx -y halo-ds mcp

Setup for Cursor, VS Code, Windsurf and others: https://halodesignsystem.dev/docs/ai

Skills

Four skills teach your assistant Halo's components and rules:

Skill What it does
build-ui Builds screens with Halo components, starting from a ready-made block when one fits
review-ui Checks code against Halo's rules and lists what to fix, file by file
brand-theme Applies a brand colour in light and dark mode
migrate Moves screens from shadcn/ui, Ant Design or Material UI to Halo

In Claude Code, install them as a plugin:

/plugin marketplace add Halo-design-system/halo-claude-plugin
/plugin install halo-ds@halo-design-system

For any project, including Cursor, Copilot and Codex, add them with the CLI. The skill files go to .claude/skills and Halo's rules go into AGENTS.md:

npx halo-ds skills

The skills are plain Markdown, in plugins/halo-ds/skills.

Working on Halo

Requirements: Node.js 22.12+ and pnpm (npm install -g pnpm). The project pins its own Node 24 runtime, which pnpm downloads automatically.

pnpm install     # install dependencies
pnpm dev         # build tokens and start Storybook at http://localhost:6006
pnpm build       # build every package
pnpm typecheck   # type-check every package

Project structure

packages/
  tokens/     figma/ ← Figma variable exports (source of truth)
              scripts/build.mjs → dist/tokens.css, tokens.json, index.js
  react/      src/ ← components
  cli/        the halo-ds CLI and MCP server
  figma-plugin/
plugins/
  halo-ds/    the Claude Code plugin
apps/
  site/       the website, with the live example apps in src/live
  docs/       Storybook (foundations pages + component stories)
docs/         design notes (e.g. dark-mode mapping)

Design → code workflow

  1. Design the component in Figma using Halo variables (never raw hex values).
  2. Build it in packages/react/src/components/<Name>/ using the matching CSS variables.
  3. Add a <Name>.stories.tsx so it appears in Storybook.
  4. Review it in Storybook in both light and dark mode.

See CONTRIBUTING.md for details.

License

MIT. The Figma library also includes emojis, icons, flags and brand logos from other open-source projects; see THIRD_PARTY_NOTICES.md for their licences and required credits.