Home/Install

Install

Two on-ramps. The CSS path is the lowest-friction option for any project. The React path ships as @corelithzw/react on public npm — same DOM, JSX wrapper.

CSS today React on public npm No build step required

What you can install today

Two on-ramps. Pick CSS for any framework; pick the React package if you want named components and types.

PathStatusWhat you ship
CSS-only (Static HTML or any framework)StableTwo stylesheets and an icon helper. Documented classes. Works everywhere.
npm i @corelithzw/reactv0.1.3Published to public npm. Same DOM as the CSS path, JSX wrapper, full TypeScript types.

(a) CSS only — the fast path

Copy three files out of this repo, link them in your head, write the documented classes. No build step. No JavaScript required to render.

  1. Copy tokens.css, components.css, and icons.js into your project (we put them under /public/huchu/ in most apps).
  2. Link them in <head>.
  3. Write the documented class names — .btn-primary, .card, .dt-toolbar. Add data-icon="…" wherever you want an inline SVG.
<!-- Tokens (color, type, spacing, motion) -->
<link rel="stylesheet" href="/huchu/tokens.css">

<!-- Components (buttons, cards, tables, inputs) -->
<link rel="stylesheet" href="/huchu/components.css">

<!-- Inline-SVG icons (auto-renders <span data-icon>) -->
<script src="/huchu/icons.js" defer></script>

That's the entire install. Every recipe in the cookbook renders against exactly this CSS — the React snippets you see are JSX wrappers over the same DOM.

(b) React components — @corelithzw/react

The package ships to public npm. Anonymous install — no .npmrc, no token.

# Install
npm install @corelithzw/react react react-dom

# In your app entry — once
import '@corelithzw/react/styles.css';
import { Button, Card } from '@corelithzw/react';

Works everywhere

Any repo, any CI, any Docker container. Full owner / troubleshooting notes live in the package's INSTALL.md.

In the live ERP repo

If you're already working in tate2301/huchu, the tokens ship as CSS variables in app/globals.css and the components are Tailwind-derived shadcn primitives.

# From the repo root
pnpm install
pnpm dev

# Add a new component by extending the existing primitives
# Read components/ui/ for the source — it mirrors this docs site 1:1

This docs site documents the contract — what tokens exist, which variants are blessed, how they're used together. The ERP repo is the live implementation.

Token files

Tokens come in two shapes — CSS variables and a JSON manifest for design tools.

FilePurposeUsed by
tokens.cssCSS variables for color, type, motion, layoutEvery HTML doc + every Tailwind theme
components.cssThe component layer — .btn, .card, .input, .tableStatic prototypes and the docs site
icons.jsInline-SVG helper for <span data-icon>Every page
system.cssDocs-site chrome (sidebar, TOC, specimen)This site only
shared.cssHub / marketing chromeKits, portals, verticals
dash.cssDashboard shell layoutVertical example pages
portal-shell.cssPortal app bar, tab bar, list rowsPortal example pages

Updates

Versioned via the changelog. New components ship behind a "Beta" pill until they've appeared in two live kits.