Skip to content
Nacre
Color palette
中文

Introduction

Nacre provides native TSX components and themes for NSH, with separate chat and call entry points.

App screens use only these components, and only the semantic color tokens of the theme; a missing component goes into the library first.

  • One design system, several styles: sizes, radii and colors all come from tokens; switching the brand theme (Neutral / Longbridge Teal / Whale Violet / Amber) or a style seed (radius, density) changes no component code (ADR 0015 / 0016).
  • Restraint: the brand color appears only where something is mine, current, needs attention now, or a link; solid primary is for key actions only.
  • Desktop first: macOS depth, focus rings and keyboard operation; every interactive element has an accessible name.
  • “Copy for AI” at the top right of each component page copies the page as Markdown (usage, example code, API, keyboard and accessibility, do / don’t).
  • All docs: docs/llms.txt (index) and llms-full.txt (full text), in English llms.en.txt / llms-full.en.txt; generated by node scripts/ui-docs.ts, and CI checks them against the source.
  • Start the csp-ui MCP server with Node.js using scripts/ui-mcp.ts from the package directory. It uses stdio and provides get_rules, list_components, search_components, get_component and get_tokens.
  • Agent Skill: skills/csp-ui/SKILL.md, the workflow and rules to read before writing UI; MCP’s get_rules returns it.
  • stable: during 0.x, breaking changes ship in minor versions and patch versions remain compatible.
  • experimental: usable, but may change.