mtone
Compact, ready-styled React components for knowledge and content applications. Base UI supplies interaction primitives; mtone supplies a cohesive warm-neutral visual system and high-level APIs. Tailwind builds the distributed CSS. Lucide supplies icons.
Install @bixlab/mtone
npm install @bixlab/mtone
import { MtoneProvider, Button, Select } from '@bixlab/mtone';
import '@bixlab/mtone/styles.css';
export function App() {
return <MtoneProvider locale="zh">
<Button variant="solid">新建</Button>
<Select label="知识库" options={[{value:'notes',label:'研究笔记'}]} />
</MtoneProvider>;
}
One package, no component-copy CLI, no Tailwind setup in the consuming application. React/ReactDOM ^19.2.0 are peer dependencies. ESM only. The install command above uses published npm releases. To try an unreleased checkout, build and pack it locally with npm ci, npm run build -w @bixlab/mtone, and npm pack -w @bixlab/mtone, then install the generated .tgz in your application.
Develop
npm ci
npm run build
npm run dev
npm test
npm run typecheck
Node 24 recommended. The documentation app lives in apps/docs; its static build is dist/docs. It consumes the precompiled library stylesheet, so run build after editing library CSS. Components are in packages/mtone/src.
Scope
Buttons, forms, selection controls, navigation, directory tree, tabs, menus, lists, table, status and property displays, dialogs/drawers, feedback and upload. No block editor or backend. See API, coverage and verification.
Default style: text #37352F, muted #787774, border #E9E9E7, subtle surface #F7F7F5, white canvas, 14px text, 34px standard controls, 4px radius. CSS is precompiled, prefixed and contains no Tailwind Preflight. Existing applications remain light by default. Since 0.7.0, set theme="dark" or theme="system" on MtoneProvider; system mode follows the operating system without reloading. MtoneScope can override the mode locally and mtone popups follow their trigger context. The library leaves preference storage to the application. To migrate from the two density modes, remove the density prop from MtoneProvider; explicit component size options are unchanged.
License
MIT © 2026 Xingjian Xu. See LICENSE.
AI coding reference
This source checkout includes llms.txt in the package root and exports
@bixlab/mtone/llms.txt. Starting with 0.3.0, find it at
node_modules/@bixlab/mtone/llms.txt. Older releases may not include it.
Provide that file and dist/index.d.ts to your AI coding tool as context;
loading is tool-specific, not automatic. The live reference
follows master and may differ from your installed npm version.
The reference is generated from the component catalog during builds. The docs
site serves the exact same file. Prefer installed declarations for complete API
signatures, and type-check/test generated application code.