# Mittsu (@a3tai/mittsu) > Source-first Svelte 5 component and chart library tuned to feel native on macOS / iOS. The CLI drops raw .svelte + .css files into your project — you own the source, override CSS-variable tokens (the --uin-* namespace), and fork without waiting on a release. Components ship with BEM class names, no Svelte scoping, and headless behavior from bits-ui where it matters. Designed with LLM-friendly APIs: named variants, plain data arrays, predictable prop shapes. Mittsu is distributed by copying source into your project, not as a runtime dependency. Install the CLI once, then add components individually: ``` npx @a3tai/mittsu@latest init npx @a3tai/mittsu@latest add button badge spinner ``` ## Documentation - [Getting started](https://github.com/a3tai/mittsu/blob/main/docs/getting-started.md): Install the CLI, run init, add your first component, import tokens. - [CLI reference](https://github.com/a3tai/mittsu/blob/main/docs/cli.md): Every command and flag the @a3tai/mittsu CLI exposes (init, add, list, info). - [Design tokens](https://github.com/a3tai/mittsu/blob/main/docs/tokens.md): The 37 CSS variables under --uin-* that drive color, type, spacing, radius, motion, and focus. - [Charts](https://github.com/a3tai/mittsu/blob/main/docs/charts.md): D3-powered SVG chart sub-package and how it shares tokens with the UI kit. - [Icons](https://github.com/a3tai/mittsu/blob/main/docs/icons.md): Lucide (@lucide/svelte) as the supported icon library: sizing, stroke width, a11y, and swapping in other sets. - [Architecture](https://github.com/a3tai/mittsu/blob/main/docs/architecture.md): How the registry, CLI, and import rewriter fit together; copy semantics. - [Component authoring](https://github.com/a3tai/mittsu/blob/main/docs/component-authoring.md): Conventions for writing a new component: file pair, registry entry, BEM, tokens. - [Deployment](https://github.com/a3tai/mittsu/blob/main/docs/deployment.md): How the docs site is built and published to Cloudflare Pages. - [Contributing](https://github.com/a3tai/mittsu/blob/main/docs/contributing.md): PR conventions, review checklist, how to use the Claude skills in .claude/skills/. - [README](https://github.com/a3tai/mittsu/blob/main/README.md): project overview, why-another-library comparison, repo layout. - [Roadmap](https://github.com/a3tai/mittsu/blob/main/ROADMAP.md): the full ~155-component catalog, what is shipped, queued, and planned. ## Components (94) ### Foundation - [Button](https://mittsu.dev/components/button): Primary action element with primary / ghost / outline variants. - [Input](https://mittsu.dev/components/input): Base text input primitive with leading / trailing slots. - [SearchInput](https://mittsu.dev/components/search-input): Pill search field with magnifier + ⌘K hint + clear button. - [Textarea](https://mittsu.dev/components/textarea): Multi-line text input with optional auto-resize. - [Label](https://mittsu.dev/components/label): Caption / eyebrow for form fields. - [Kbd](https://mittsu.dev/components/kbd): Keyboard shortcut hint, styled like a key cap. - [Spinner](https://mittsu.dev/components/spinner): Indeterminate progress ring (sm / md / lg). - [Card](https://mittsu.dev/components/card): Generic surface (flat / tinted variants). - [Separator](https://mittsu.dev/components/separator): Horizontal or vertical rule, solid or dashed. - [Skeleton](https://mittsu.dev/components/skeleton): Pulsing placeholder block for loading states. - [Avatar](https://mittsu.dev/components/avatar): Circular user image with initials fallback. - [Typography](https://mittsu.dev/components/typography): Preset typographic styles with tone overrides. - [Field](https://mittsu.dev/components/field): Labeled form-field wrapper with auto-id and ARIA wiring. - [Empty](https://mittsu.dev/components/empty): Empty-state placeholder with icon, title, and action. ### Layout - [Container](https://mittsu.dev/components/container): Max-width content well with auto margins. - [Stack](https://mittsu.dev/components/stack): Vertical flex column with token-driven gap. - [VStack](https://mittsu.dev/components/vstack): Naming-symmetric twin of HStack — vertical flex. - [HStack](https://mittsu.dev/components/hstack): Horizontal flex row with optional wrap. - [Flex](https://mittsu.dev/components/flex): Generic flex container with all axes exposed. - [Spacer](https://mittsu.dev/components/spacer): Flex helper that fills remaining space. - [Center](https://mittsu.dev/components/center): Flex container that centers children on both axes. - [Box](https://mittsu.dev/components/box): Generic div with token-driven padding and radius shortcuts. - [Section](https://mittsu.dev/components/section): Semantic
with display-font title and subtitle. - [AspectRatio](https://mittsu.dev/components/aspect-ratio): Locks a child block to a fixed width:height ratio. - [ScrollArea](https://mittsu.dev/components/scroll-area): Overflow container with native-feel styled scrollbars. ### Shell - [AppShell](https://mittsu.dev/components/app-shell): Full-window header / sidebar / main / footer scaffold. - [Sidebar](https://mittsu.dev/components/sidebar): Collapsible side panel with header / body / footer slots. - [Toolbar](https://mittsu.dev/components/toolbar): Horizontal action strip with macOS-flavored chrome. - [PageHeader](https://mittsu.dev/components/page-header): Page-level header with title / eyebrow / actions. - [PageBody](https://mittsu.dev/components/page-body): Page-level main content region. - [PageFooter](https://mittsu.dev/components/page-footer): Page-level footer with bordered top. - [Resizable](https://mittsu.dev/components/resizable): Two-pane container with a drag handle between them. - [SplitView](https://mittsu.dev/components/split-view): Multi-pane container with hairline dividers (macOS). - [Collapsible](https://mittsu.dev/components/collapsible): Toggle-visibility container built on bits-ui. - [Accordion](https://mittsu.dev/components/accordion): Vertical stack of collapsible items. - [DragHandle](https://mittsu.dev/components/drag-handle): Grip-dot indicator for resize / reorder targets. ### Display - [Badge](https://mittsu.dev/components/badge): Pill-shaped status / count label. - [Chip](https://mittsu.dev/components/chip): Toggleable filter pill with optional count. - [Lamp](https://mittsu.dev/components/lamp): Colored status dot with halo (idle / running / warn / fail). - [ProgressBar](https://mittsu.dev/components/progress-bar): Determinate or indeterminate progress bar. - [Stat](https://mittsu.dev/components/stat): Single label + display-font value pair. - [StatusRow](https://mittsu.dev/components/status-row): Compact summary card for an in-progress operation. - [ProgressRing](https://mittsu.dev/components/progress-ring): Circular determinate progress with optional centered label. - [Meter](https://mittsu.dev/components/meter): Discrete level indicator (battery / signal / score). - [Sparkline](https://mittsu.dev/components/sparkline): Inline mini line chart with optional area fill. ### Form - [Toggle](https://mittsu.dev/components/toggle): Pressable button with persistent on/off state. - [ToggleGroup](https://mittsu.dev/components/toggle-group): Set of related Toggles bound to one value. - [Switch](https://mittsu.dev/components/switch): Sliding on/off control (macOS-Settings shape). - [Checkbox](https://mittsu.dev/components/checkbox): Boolean form control with optional label. - [RadioGroup](https://mittsu.dev/components/radio-group): Single-select group of radio options. - [Slider](https://mittsu.dev/components/slider): Single-thumb range input with token-driven chrome. - [NumberInput](https://mittsu.dev/components/number-input): Numeric text field with ▲▼ Stepper. - [PinInput](https://mittsu.dev/components/pin-input): Fixed-length OTP / verification code field. - [PasswordInput](https://mittsu.dev/components/password-input): Input with show / hide eye toggle. - [Select](https://mittsu.dev/components/select): Dropdown picker built on bits-ui. - [NativeSelect](https://mittsu.dev/components/native-select): System