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.
Principles
Section titled “Principles”- 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.
For AI coding assistants
Section titled “For AI coding assistants”- “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) andllms-full.txt(full text), in Englishllms.en.txt/llms-full.en.txt; generated bynode scripts/ui-docs.ts, and CI checks them against the source. - Start the
csp-uiMCP server with Node.js usingscripts/ui-mcp.tsfrom the package directory. It uses stdio and providesget_rules,list_components,search_components,get_componentandget_tokens. - Agent Skill:
skills/csp-ui/SKILL.md, the workflow and rules to read before writing UI; MCP’sget_rulesreturns it.
Status
Section titled “Status”- stable: during 0.x, breaking changes ship in minor versions and patch versions remain compatible.
- experimental: usable, but may change.