Install a system.
The tyohnn CLI copies one set of component TSX and one or more complete design-system folders into your project, then wires them in. There is no runtime package: after init the code is yours. Node 20 or later; Next.js (App Router), Vite, and npm · pnpm · yarn · bun workspace monorepos.
Getting started
Pick a system on the systems page. Available:
Commands
Every command edits tyohnn.json and then makes the project match it, so running it twice changes nothing the second time.
--system), copies the TSX and the system, adds dependencies, installs and wires the app. In a monorepo it creates packages/ui and wires --app <path>.--reset returns to the system's own.remove takes them out.tyohnn.json; exit code 1 on a failure.Options
- --yes
- No prompts; take the defaults.
- --force
- Overwrite files that exist or were edited.
- --no-install
- Skip installing packages.
- --mode light|dark
- Override the system's default mode.
- --icons <library>
- init: another icon library.
- --font · --font-heading · --font-mono
- init: other fonts from the catalog.
- --app · --ui · --scope
- Monorepo: the app to wire, the UI package folder and its scope.
- --ref · --source · --offline
- Which registry version to read, a local checkout, or the cache only.
Where files go
A monorepo keeps one UI package: the TSX once, and a folder per system. Each app imports exactly one system.
A single Next.js or Vite app gets the same pieces under src/, imported through the @/ alias (added when missing):
The entry CSS imports the system in a fixed order — tailwindcss, layer 1 colours, layer 2 tokens, typeset, then layer 3 rules in layer(base) — so utilities you pass through className still win.
Fonts
Fonts are always self-hosted; nothing loads Google's font CDN. Next.js apps get next/font/google (or next/font/local for Pretendard) in the root layout; Vite apps get the fontsource or npm package and an @import. Each system names a sans, heading and mono font plus a Hangul fallback; override them per app:
Icons
Components import icons by meaning (ChevronDown, SelectIndicator) from one module, never from an icon package. The module maps every name onto one of 6 libraries. Each system has a default; switch it at init or later:
- lucidelucide-react
- tabler@tabler/icons-react
- hugeicons@hugeicons/react + @hugeicons/core-free-icons
- phosphor@phosphor-icons/react
- remixicon@remixicon/react
- radix@radix-ui/react-icons
Blocks
A block is a piece of a screen composed from the components: a page heading, a row of metric cards, a table in a card with tabs and bulk actions, a kanban board. It reads the system's tokens and decides no colour, size or radius of its own, so it changes with the system and with nothing else. Its data and words come from the screen that uses it.
They land next to the components (blocks/) as CLI-owned files: doctor checks them, diff shows what changed upstream, tyohnn blocks updates them and tyohnn blocks remove takes them out. Every screen in the gallery is built from them.
Frames
A frame is a block with no content of its own. It holds other blocks and decides only where they stand: how far from the edge, how far from each other, what scrolls, and what sits beside what. Page is the content under the bar; PageContent is a column inside something that scrolls; PageSplit puts a main pane and an aside side by side.
The screen picks a step; a token says how much it is. gutter="sm" is the screen's choice; --page-gutter-sm is 1rem unless a system or your own CSS says otherwise. Declare one on :root after the system's styles and every page at that step moves.
--page-gutter-sm--page-gutter-md--page-gutter-lg--page-gutter-xl--page-gap-xs--page-gap-sm--page-gap-md--page-gap-lg--page-gap-xl--page-measure-sm--page-measure-md--page-measure-lg--page-aside-xs--page-aside-sm--page-aside-md--page-aside-lg--page-aside-xl--page-document-padding-start--page-document-padding-endNarrow pages. A split stands side by side while its page is at least 56rem wide — the page's own width, not the window's, so closing the sidebar gives the room back. Below that the aside does one of three things, chosen by the screen with narrow on PageSplit. There is no fourth: an aside that keeps its width squeezes the main pane to nothing.
stacksheethideTo try the values, use the Layout tab beside the screens on any system's page: a slider moves every screen on the page at once.
Several systems in one monorepo
Apps in one monorepo can use different systems — and different icon libraries — from one UI package. Never import two systems into one app: every system defines the same cn-* rules and token names globally, and the later import silently wins.
doctor fails on two systems in one app, import order or a missing layer(base), a missing @source, font variables the layout does not declare, an icon path that disagrees with tyohnn.json, or a mode class that differs from it; it warns when icon libraries diverge or CLI-owned files were edited.
Versions and source
The npm package holds only the CLI. Components and systems are read from the tyohnn repository at run time (the main branch by default), cached per commit, and the commit is recorded in tyohnn.json. Later commands read that commit, so they never silently move a project to a newer version.
File ownership
tyohnn:begin and tyohnn:end comments is rewritten.