Engineering systems for builders and modern products.
A scalable, token-driven, dark-first design system extracted from the Nuvo Code design exploration board. Built with React · TypeScript · Tailwind CSS v4 · Radix UI · CVA · Lucide.
pnpm add @nuvo-code/coreimport { NcButton, NcCard, NcSidebar } from '@nuvo-code/core';Add this to your root file (e.g., main.tsx or App.tsx):
import '@nuvo-code/core/styles.css';import { useTheme } from '@nuvo-code/core/core';
function App() {
const { theme, setTheme } = useTheme();
return (
<div>
<button onClick={() => setTheme('dark')}>Dark</button>
<button onClick={() => setTheme('light')}>Light</button>
</div>
);
}nuvo-core/
├── packages/
│ └── core/ # NPM package (@nuvo-code/core)
│ ├── src/
│ ├── package.json
│ └── vite.lib.config.ts
└── apps/
└── website/ # Nuvo Code website (CF Workers)
├── package.json
└── vite.config.ts
pnpm installpnpm dev:corepnpm dev:website# Build everything
pnpm build
# Build only core package
pnpm build:core
# Build only website
pnpm build:websitepackages/core/src/
components/
primitives/ — atomic components (NcButton, NcInput, NcCard, …)
composites/ — complex components (NcSidebar, NcTerminal, NcCommandMenu)
layouts/ — page shells (NcAppShell)
core/
tokens/ — typed design tokens
themes/ — theme switcher hook (useTheme)
utils/ — cn() and shared helpers
styles/
globals.css — CSS variables and theme definitions
The website consumes the core package via workspace linking:
{
"dependencies": {
"@nuvo-code/core": "workspace:*"
}
}- Dark-first — three themes, all driven by CSS variables on
:root - Sharp — tight radii, no rounded-full buttons, calibrated whitespace
- Engineering voice — Inter for prose, JetBrains Mono for labels/metrics
- Information motion — pulses signal liveness, hovers lift 2px, never decorative
All public components are prefixed Nc (NcButton, NcSidebar, NcTerminal).
Tokens use semantic names: bg, surface-1..3, border-subtle..strong,
fg, fg-muted..faint.
NcButton— Button with variants (primary, secondary, ghost, outline, accent, destructive, link)NcInput— Text input with sizes (sm, md, lg)NcTextarea— Multi-line text inputNcCard— Card container with header, content, footerNcTag— Small label/tag componentNcBadge— Status badge with variantsNcDot— Small dot indicatorNcDivider— Horizontal/vertical dividerNcKbd— Keyboard key displayNcProgressBar— Progress indicatorNcSwitch— Toggle switchNcTabs— Tab navigationNcDialog— Modal dialogNcTooltip— Tooltip popupNcDropdownMenu— Dropdown menu
NcSidebar— Navigation sidebar with groupsNcNavbar— Top navigation barNcTerminal— Terminal window simulationNcStatBlock— Statistics display blockNcCommandMenu— Command palette (cmdk)NcEmptyState— Empty state placeholderNcDeployStatus— Deployment status indicatorNcSectionContainer— Content containerNcCodeBlock— Code display with syntax highlightingNcGridBackground— Grid pattern backgroundNcGlowOrb— Decorative glow effectNcLogo— Nuvo Code logo
NcAppShell— Main application layout
useTheme()— Theme management hookthemes— Available themes listcn()— Class merge utility- Design tokens (colors, radii, typography, spacing, shadows, motion)
| Script | Purpose |
|---|---|
dev:core |
Core package watch mode |
dev:website |
Website dev server |
build:core |
Build NPM package |
build:website |
Build website (CF Workers) |
build |
Build everything |
typecheck |
TypeScript type checking |
Publishing is automated via GitHub Actions and Semantic Release:
-
Commit with conventional commit format:
feat: add NcTooltip component→ minor versionfix: button hover state→ patch versionBREAKING CHANGE: ...→ major version
-
Push to
mainbranch -
GitHub Actions will:
- Run tests and build
- Publish to npm (
@nuvo-code/core) - Create GitHub release
- Update CHANGELOG
MIT © Nuvo Code
@nuvo-code/core · v1.2.3 · 2026