# Nerio Nerio is an open-source, source-first design system for modern digital products. It is universal and domain-agnostic: suitable for SaaS applications, consumer products, marketplaces, dashboards, internal tools, content platforms, creator tools, productivity products, and data-rich workflows. Nerio has two product layers: Nerio Core and Nerio Pro. Nerio Core is the open-source foundation: tokens, themes, primitive and base UI components, public docs, public registry, CLI, and public MCP/component discovery. Nerio Pro is the paid advanced layer: complex product components, templates, premium themes, Figma assets, advanced registry items, and Pro MCP/AI tooling. Core = building blocks. Pro = product-ready solutions. The canonical Core UI implementation and review standard is `docs/core-ui-best-practices.md`. Apply its four-owner model: the maintainer owns visual-language values and character, Core owns reusable technical primitive contracts, consumers own application policy and composition, and Pro owns reusable product-ready workflows. Before adding a prop, variant, size, state, slot, event, or imperative handle, prefer existing composition, semantic/component tokens, consumer `className` or source ownership, and meaningful slots in that order. Admit public API only for a stable, domain-agnostic semantic or behavioral need with multiple independent use cases, preserved accessibility and entrypoint boundaries, and justified maintenance cost. Classify styling decisions as system rules, family rules, or reasoned component exceptions. The maintainer-approved Nerio 1.0 visual language is documented in `docs/visual-language-1-0.md`, with recurring inconsistencies grouped by system cause in `docs/audits/visual-language-1-0.md`. It is the implementation-ready art-direction contract for color and surfaces, typography, geometry and spacing, interaction states, motion, iconography, and signature details. It does not introduce a new runtime axis or silently change public APIs. Public component documentation lives under `/docs`. `/blocks` is the metadata-driven catalog for bounded product tasks, while `/templates` is the catalog for complete app-like scenarios. Their same-origin full-screen previews live under `/views/blocks/[slug]` and `/views/[slug]`. Internal stress fixtures live under unindexed `/visual-test/blocks/[slug]` routes and are not public Blocks. Operations Workspace proves complete product composition but is not a released Pro package or stable distribution surface. Finance & Assets adds a deterministic consolidated portfolio, holdings, transaction, transfer-review, and security/display scenario at `/views/finance-assets`. It uses the optional charts adapter and local mock data only; it is not a released financial product, backend, or Pro package. These are the only current Templates; additional scenarios will be rebuilt before they return to the catalog. The public Foundations index is `/docs/foundations/tokens`, `/docs/foundations/color`, `/docs/foundations/typography`, `/docs/foundations/spacing-layout`, `/docs/foundations/themes`, `/docs/foundations/accessibility`, `/docs/foundations/radius`, `/docs/foundations/effects`, `/docs/foundations/motion`, and `/docs/foundations/icons`. These canonical routes share one typed discovery projection used by navigation, documentation search, adjacent-page links, and the sitemap. The legacy `/docs/foundations/animations` URL redirects permanently to the canonical Motion foundation and does not compete in navigation, search, the sitemap, or this index. Source-backed Typography, Themes, and Color tables are generated from the canonical token CSS and runtime catalog; editorial guidance remains hand-authored. Color guidance uses semantic roles, evaluates complete foreground/background and interaction-state sequences, keeps meaning available without hue, and validates custom themes in light, dark, system-dark, forced-colors, and real component contexts. Spacing and layout guidance renders the primitive spacing scale, density aliases, and representative component geometry from the same source-backed projection. Core owns those contracts and resilient component behavior; products own page grids, breakpoints, application shells, routing layouts, content priority, and domain hierarchy. Compact density remaps semantic and component aliases without redefining primitive spacing, shrinking content indiscriminately, or adding another runtime axis. Use `/docs/changelog` for notable Nerio releases and project announcements. Follow the official Nerio account at `https://x.com/nerio_ui` for release notes, component updates, documentation improvements, and important project news. The repository `CHANGELOG.md` remains the canonical technical history. Data Display and Feedback follow one neutral-first hierarchy. Card is a generic raised white or black surface with a soft shadow and no default border; secondary grouping and TableContainer use flat muted surfaces. Table keeps native semantics and consumer-owned behavior while selected or current rows combine a neutral fill with a logical-edge indicator. Avatar fallbacks use fixed light/dark fills and overlap borders so translucent seams do not appear in groups. Alert is a flat muted inline surface whose semantic tone is carried by its icon and complete message text. Toast is an adaptive raised overlay surface with standard mode-aware text and controls, subtle elevation, and restrained semantic status icons. Stat trend text is neutral by default because Core does not infer direction or meaning from an arbitrary string. Navigation, Layout, and Overlays use one focus, selection, and motion language. Current navigation stays neutral unless a compact indicator is needed; segmented Tabs use a soft selected-surface shadow, and hover feedback resolves through shared motion tokens. Popover, Dropdown Menu, Command, Dialog, Sheet, and Toast use standard adaptive overlay surfaces and text hierarchy; compact popups use smaller radii than Dialog and Sheet. Tooltip remains the dark-glass exception in every mode. Modal backdrops blur, Dialog settles with restrained scale and opacity, and Sheet preserves the physical direction of its side. Dialog and Sheet titles render neutral 16 px `div` elements by default with explicit heading opt-in, while their descriptions use the standard 14 px body size. Their close controls are secondary icon Buttons, while their action footers align to the inline end. Sidebar and Command remain low-level primitives without routing, persistence, or product search policy. Use `COMPONENTS.md` and `data/component-catalog.json` as the source of truth for Core/Pro component tiering. Core `1.0.0` is published across all six public packages. npm `latest` and `stable` resolve to `1.0.0`; historical `beta` remains on `1.0.0-beta.1` and `alpha` on `0.1.0-alpha.2`. The signed `v1.0.0` tag and GitHub Release identify exact approved commit `6bc7962f20f1d09f186d89d9ed0294a4b2630482`. Public archives, registry signatures, minimum/current Next.js package/source consumers, CLI/MCP, and the maintained Vite consumer were verified. Manual npm 2FA publication without CI provenance was explicitly approved. The bounded maintainer-run accessibility smoke remains historical evidence for the released candidate, not a claim of new human testing of later documentation. The broader accessibility/device matrix in issue #585 and external-consumer program in issue #146 remain post-release follow-ups. The Core 1.0 contract is frozen through a reviewed machine-readable snapshot spanning package exports and types, tokens, Registry, CLI, MCP, support ranges, and public docs routes. Temporary alpha compatibility aliases are removed; all current Core components use their canonical APIs. Pro components remain outside Core. Command Primitive owns the accessible query field, local or consumer-filtered leaf results, sound flat or grouped collections, active option, disabled navigation, selection events, and empty/loading presentation. Keyword and stable-value text affect matching only; selection writes the visible label to the controlled or uncontrolled query and form value while `onSelect` emits the stable value. CommandItem leading content owns its accessibility semantics, while decorative Nerio Icons hide themselves. Command does not own fetching, ranking, routing, global shortcuts, recent/history storage, analytics, permissions, or a complete command palette. Sidebar Primitive owns layout, physical side, controlled or uncontrolled collapse state, regions, and accessible toggles; it does not own routes, navigation data, menus, permissions, persistence, or AppShell behavior. Compose Sheet explicitly for mobile and render one interactive navigation tree per viewport. Sheet is a stable Base UI modal side-panel primitive with explicit left/right/top/bottom sides, sm/md/lg sizes, neutral SheetClose composition, a safe-area-aware default close, shared enter/exit motion contracts, compound slots, and no app navigation or settings behavior. Dialog keeps its icon close control localizable through `closeLabel` while preserving the default accessible name. RadioGroup supports concise data-driven `options` and compositional `RadioGroupItem` children; use composition for richer option content. A Core component should not move to `stable-core` until its API, accessibility, tokens, registry metadata, docs, CLI fixture, MCP metadata, and validation checks are aligned. Use `/docs/feedback` for the public feedback path. Core 1.0 beta reports begin in the canonical release discussion at `https://github.com/vpavlov-me/Nerio/discussions/385`; browse Ideas and Q&A through `https://github.com/vpavlov-me/Nerio/discussions`. Public comments feed the post-release external-consumer record; they do not replace recorded independent-consumer, manual accessibility, or physical-device evidence. Use primitive tokens only for raw values. Use semantic tokens such as `--n-color-surface-default`, `--n-color-text-primary`, `--n-color-action-primary`, `--n-color-border-default`, `--n-font-sans`, and `--n-font-mono` in product code. Components should prefer component tokens for local contracts such as `--n-button-background-primary`, `--n-input-border`, `--n-dialog-width-md`, `--n-overlay-background`, and `--n-table-cell-padding-x`. Nerio is neutral-first and compact: use white or black primary surfaces, cool blue-gray grouping fills, whitespace between major blocks, restrained internal spacing, regular 12-14px UI typography, large concentric radii, and borderless controls by default. Adaptive controls, hover and pressed states, neutral selected surfaces, subdued borders, and grid lines use cool near-black alpha primitives in light mode and white alpha primitives in dark mode so the same semantic layer composes naturally over different surfaces. Canvas, primary surfaces, text, actions, semantic status colors, chart series, and contrast-critical roles remain opaque. Reserve the brand color for primary actions, focus, and compact justified selection indicators. Transient overlays use standard adaptive surface, text, control, border, and elevation tokens; Tooltip and chart tooltips alone retain the inverted black-glass token family. Placeholders may provide the compact visual prompt only when an explicit accessible name remains present. System UI is the default Core font stack and the cross-platform system mono stack is the default technical font. Geist is the documentation brand only. Core provides System, Geist, Inter, IBM Plex, Manrope, Source Sans 3, and Space Grotesk scoped token recipes; non-system families remain consumer-loaded, no font files are bundled, and components must consume font tokens rather than hard-coded families. Nerio separates theme, mode, and density. Theme is selected with `data-theme="purple"`, `data-theme="blue"`, `data-theme="green"`, `data-theme="orange"`, `data-theme="red"`, `data-theme="neutral"`, or a custom product theme. Mode is selected with `data-mode="system"`, `data-mode="light"`, or `data-mode="dark"`. Density is selected with `data-density="comfortable"` or `data-density="compact"`. Primitive tokens are immutable raw values across theme, mode, and density selectors. Runtime selectors remap semantic and component contracts instead. The docs header exposes System, Light, and Dark through one compact icon menu, follows OS preference changes while System is selected, and restores appearance before hydration. Default runtime attributes: `data-theme="purple" data-mode="system" data-density="comfortable"`. Do not create or use combined theme names such as `purple-light`, `purple-dark`, `neutral-light`, `neutral-dark`, `blue-light`, `blue-dark`, `red-light`, or `red-dark`. Do not create vertical-specific Core preset names such as `fintech-blue`; use generic brand color names. Font, radius, motion, spacing, shadow/elevation, and contrast are token-customizable in v1, but they are not separate runtime axes. Do not introduce `data-font`, `data-radius`, `data-motion`, `data-contrast`, or `data-scale` unless a later architecture decision explicitly promotes them. Typography presets are CSS token recipes, not runtime attributes; customize typography with `--n-font-sans`, `--n-font-mono`, `--n-font-sans-system`, and scoped product overrides. Brand color is a restrained accent. Use it for primary actions, selection, active states, focus, links, small progress signals, the primary chart series, and brand moments. Do not use brand color for broad page backgrounds, routine icons, card backgrounds, standard borders, or secondary actions. The Nerio 1.0 foundation uses pure white light foundations, pure black dark foundations, cool alpha-neutral adaptive layers, generous role-based radii, compact 14px typography, and tokenized motion. Use opaque neutrals for contrast-critical or overlap-isolated geometry such as Avatar boundaries. Use semantic surface and border aliases instead of consuming alpha primitives directly. The maintainer implementation reference is `docs/visual-language-1-0.md` in the source repository. Core motion remains CSS-first. Install `motion` and use the optional client-only `@nerio-ui/adapters/motion` entrypoint only for coordinated presence, interruption, layout continuity, gestures, or product-level sequencing. `NerioMotionConfig` follows the user's reduced motion preference; the preferred loading path is strict `LazyMotion` plus `m` and `domAnimation`, with `domMax` reserved for layout, pan, or drag. Unrelated adapters and `@nerio-ui/ui` resolve no Motion runtime. The stable adapter exports `NerioMotionConfig`, `useNerioReducedMotion`, `motionTransitions`, and `motionVariants`; the config accepts only `children`, an optional CSP `nonce`, and deterministic-test `skipAnimations`. Prefer composition, explicit slots, semantic HTML, visible focus states, and accessible labels. Use Nerio's icon adapter for Lucide or custom SVG React components. Card anatomy is `Card`, optional `CardVisual`, `CardHeader`, `CardTitle`, `CardDescription`, optional `CardAction`, `CardContent`, and `CardFooter`. `CardTitle` renders a neutral `div` by default and accepts an explicit `as="h2"` through `as="h6"` only when the card belongs in the document outline. `CardDescription` uses the standard 14 px body size. `CardHeader` owns the title-description gap, including the standard title wrapper used beside `CardAction`. `CardVisual` accepts generic visual content and only supports `inset` or `bleed` placement. `CardAction` is for surface Cards only; linked Cards must not contain interactive descendants. Package entrypoints: import static Core components and utilities from `@nerio-ui/ui`, interactive components from `@nerio-ui/ui/client`, styles from `@nerio-ui/ui/styles.css`, and icons or icon types from `@nerio-ui/adapters/icons`. The adapter package has no aggregating root export; optional integrations use `@nerio-ui/adapters/table`, `@nerio-ui/adapters/charts`, `@nerio-ui/adapters/forms`, or `@nerio-ui/adapters/schema` with the matching peer installed. Core packages ship TypeScript source, so Next.js consumers list the Nerio packages they use in `transpilePackages`. SidebarHeader, SidebarContent, SidebarFooter, SidebarInset, and Icon are server-safe; SidebarProvider, Sidebar, SidebarTrigger, SidebarRail, and useSidebar import from the client entrypoint. SidebarContent forwards an HTMLDivElement ref, SidebarInset preserves stable div or main refs, and SidebarRail stays bottom-right inside its bounded hit area. Example: `import { Settings } from "@nerio-ui/adapters/icons"; import { Alert, Breadcrumbs, Card, Field, Icon, List, Pagination, SidebarContent, SidebarInset, Table } from "@nerio-ui/ui"; import { Button, Calendar, DatePicker, Select, Slider, Dialog, Sheet, Sidebar, SidebarProvider, SidebarRail, ToastProvider } from "@nerio-ui/ui/client"; import "@nerio-ui/ui/styles.css";`. Use Button's `link` variant with a native anchor render target for text-level navigation. Source-installed registry components keep local paths such as `@/components/nerio/components/button`; `nerio init` defaults to `src/components/nerio` for projects with `src/app` or `src/pages`, matching the standard Next.js `@/*` alias, and otherwise defaults to `components/nerio`. Registry usage: install the coordinated local tools with `pnpm add -D @nerio-ui/registry@1.0.0 @nerio-ui/cli@1.0.0`. The canonical local workflow is `pnpm exec nerio init`, `pnpm exec nerio list`, `pnpm exec nerio info button`, `pnpm exec nerio add button --dry-run`, `pnpm exec nerio add button`, `pnpm exec nerio diff button`, `pnpm exec nerio update button --dry-run`, and `pnpm exec nerio doctor`. Init creates `nerio.json` with the immutable `@nerio-ui/registry/manifest.json` package Registry by default, defaults the component directory to `src/components/nerio` when `src/app` or `src/pages` exists and to `components/nerio` otherwise, and accepts explicit component-directory, local filesystem, and HTTP overrides. List prints component names, titles, and categories, info shows Registry metadata, and add installs the selected source item plus its dependency closure. A successful install writes portable `nerio.lock.json` metadata with the Registry schema/version/revision, style contract, requested items, installed paths, dependency closure, and original SHA-256 hashes; it stores no source content, secrets, or absolute paths. Diff classifies unchanged, local, upstream, added, removed, and conflicting drift, while update with `--dry-run` previews an upgrade. A normal update applies only safe upstream changes and never overwrites locally modified source silently; resolve conflicts manually or use `--force` only as an intentional replacement. Doctor diagnoses incompatible Registry/CLI/schema versions, missing or stale installed metadata, missing Registry or npm dependencies, token/style contract drift, mixed package/source mode, source modifications, Tailwind setup, and legacy CSS, while distinguishing blocking errors from informational drift. Use `pnpm dlx @nerio-ui/cli@1.0.0 init` or `pnpm dlx @nerio-ui/cli@1.0.0 add button` only for intentional one-off execution; prefer the local install for repeatable lifecycle work. The removed alpha `IconButton` export migrates to `Button` icon-only mode: `