nap-design-system
NAP web design system — semantic OKLCH tokens, the shadcn-based UI component library, and the visual conventions that keep generated UI on-brand.
Skill by neutree-ai
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/neutree-ai-nap-design-system
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, frontend, security, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/nap-design-system
What's inside
- Skill name
nap-design-system- Description
- NAP web design system — semantic OKLCH tokens, the shadcn-based UI component library, and the visual conventions that keep generated UI on-brand. Trigger when building or editing NAP web UI (React + Tailwind + shadcn/ui), styling a new page/panel/dialog, picking colors or components, or reviewing a frontend diff for design-token compliance.
- License
- Apache-2.0
- Metadata
- source: agent-platform/web + @neutree-ai/theme
- Instructions
- 80 lines in SKILL.md · view on GitHub
Files (4)
- SKILL.md
- components.md · references/
- patterns.md · references/
- tokens.md · references/
SKILL.md (first lines)
# NAP Design System
NAP's web UI is **React + Vite + TailwindCSS (v3) + shadcn/ui**, themed by the
shared `@neutree-ai/theme` package. Every color is a **semantic OKLCH token**, not
a raw Tailwind palette color. Follow this skill to produce UI that matches the
existing app instead of generic AI-looking output.
## How to use this skill
- Read this file for the hard rules and the quick reference.
- Read `references/tokens.md` before choosing any color.
- Read `references/components.md` before hand-rolling a control — a shadcn
component or variant almost certainly already exists.
- Read `references/patterns.md` for surfaces, glass panels, icons, dark mode,
typography, and the recurring layout conventions.
## The hard rules (do not violate)
1. **Colors must be semantic tokens.** Use `bg-card`, `text-muted-foreground`,
`border-border`, `bg-primary`, `text-warning`, etc. **Never** raw palette
colors (`bg-slate-800`, `text-blue-500`, `#1e293b`) and **never** inline
`style={{ color: ... }}`. Tokens carry light/dark automatically; raw colors
break dark mode and the theme.
2. **Icons are `lucide-react`, never emoji.** Emoji must never stand in for an
icon. Import the named icon component (`import { Plus } from "lucide-react"`).
3. **No unilateral component swaps.** Reuse `@/components/ui/*`; don't pull in a
new UI library or reinvent a button/dialog/tooltip that already exists.
4. **Compose classes with `cn()`** from `@/lib/utils` (clsx + a customized
tailwind-merge) so overrides merge correctly. Don't string-concatenate
classes.
5. **Tune opacity, not hue.** Need a softer/stronger shade of a token? Use the
alpha modifier: `bg-primary/90`, `bg-success/15`, `border-info/30`. Don't
reach for a different palette color.
6. **Polish in place.** When you add a region, finish it to production quality
(spacing, states, dark mode) rather than leaving a rough draft.
## Token quick reference
Semantic roles (each has a `-foreground` pair where text sits on it):
| Role | Use for |
| --- | --- |
| `background` / `foreground` | page surface + default text |
| `card` / `card-foreground` | raised panels, cards |
| `popover` / `popover-foreground` | menus, popovers, dropdowns |
| `primary` | primary actions, focused/active accent (a vivid blue-violet) |
| `secondary` | secondary buttons / low-emphasis fills |
| `muted` / `muted-foreground` | subtle fills + de-emphasized text |
| `accent` | hover backgrounds, gentle highlights |
| `border` / `input` / `ring` | borders, field borders, focus rings |
| `destructive` | delete/danger |
| `success` / `warning` / `info` | status semantics (green / amber / blue) |
| `chart-1..9` | categorical chart series (Tremor) |
| `tag-{slate,rose,amber,emerald,sky,violet,orange,pink}` | user-selectable tag colors |
| `sidebar-*` | the app sidebar surface |
Full values, the alpha pattern, and dark-mode behavior: `references/tokens.md`.
## Component quick reference
`@/components/ui/` (shadcn/ui + a few custom). Highlights — full inventory and
variant cheat-sheets in `references/components.md`:
- **Button** — variants `default | destructive | outline | secondary | ghost | link`; sizes `default | sm | lg | icon`.
- **Badge** — solid (`default | secondary | destructive | success | warning`) and soft tints (`success-soft | destructive-soft | accent-soft | info-soft | warning-soft | muted-soft`) for status chips.
- **Card** (`Card/CardHeader/CardTitle/CardDescription/CardContent/CardFooter`), **Dialog**, **DropdownMenu**, **Popover**, **Tooltip**, **Tabs**, **Select**, **Combobox**, **Input/Textarea/Label/Checkbox/Switch**, **Alert**, **Progress**, **ScrollArea**, **Separator**, **SegmentedControl**, **Spinner**, **Sonner** (toasts), plus app-specific ones (`copy-button`, `confirm-button`, `cron-editor`, `diff-view`, `key-value`, `markdown`, `empty-hero`).
## Stack facts
- Path alias `@/*` → `web/src/*`. `cn` lives at `@/lib/utils`.
- Tailwind config: `web/tailwind.config.js`. Tokens are wired as
`oklch(var(--token) / <alpha-value>)`, so `/NN` opacity modifiers work on
every semantic color.
- Theme variables: `@neutree-ai/theme/variables.css` (imported in
`web/src/index.css`). Dark mode is **class-based** (`.dark` on the root).
- Variants are authored with `class-variance-authority` (cva).
- Custom font sizes: `text-micro` (9px), `text-mini` (10px), `text-tiny` (11px).
- Radius scales off `--radius` (`rounded-lg/md/sm`).From neutree-ai/agent-platform, Apache-2.0.
More from neutree-ai/agent-platform
- 0.676score
nap-api
neutree-ai
Manage NAP workspaces, prompts, templates, credentials, service tokens, agent files, providers, tags, shares, schedules via REST, and build applications whose…
SkillAFreshness: A★ 80Claude Code +9 - 0.368score
__platform__
neutree-ai
No description from the publisher yet.
SkillAFreshness: A★ 80Claude Code +9
Signals
- Stars
- 80
- Forks
- 12
- Open issues
- 8
- Last commit (this folder)
- Jun 10, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/neutree-ai/agent-platform
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from neutree-ai
Cite this page
nap-design-system skill. Agent Mart. https://agentmart.dev/skills/neutree-ai-nap-design-system (last updated 2026-10-24)