CLI

The stratum command-line tool for scaffolding, adding components, and managing themes.

Install

cargo install stratum-cli

Commands

stratum init

Initialize NexusStratum in an existing project. Creates stratum.toml, sets up src/components/, and adds a marker to Cargo.toml.

stratum init --framework leptos

stratum add

Add components to your project. Writes component source files to src/components/ and updates mod.rs.

stratum add button input dialog select
stratum add --all

Use --crate to add as a crate dependency instead of copying source.

stratum list

Show all available components organized by category.

stratum list

stratum theme

stratum theme list
stratum theme create my-theme --base rose
stratum theme apply my-theme

stratum docs

Open documentation for a component in your browser.

stratum docs button

stratum diff

Show changes to a component between versions (opens GitHub compare).

stratum diff button --from 0.1 --to 0.2

stratum explorer

Instructions for running the component explorer.

stratum explorer

stratum.toml

Project configuration file created by stratum init:

stratum.toml
[project]
framework = "leptos"

[components]
added = []

[theme]
name = "default"
dark_mode = "system"

[paths]
components = "src/components"
Next: Headless Primitives