CLI
The stratum command-line tool for scaffolding, adding components, and managing themes.
Install
cargo install stratum-cliCommands
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 leptosstratum add
Add components to your project. Writes component source files to src/components/ and updates mod.rs.
stratum add button input dialog selectstratum add --allUse --crate to add as a crate dependency instead of copying source.
stratum list
Show all available components organized by category.
stratum liststratum theme
stratum theme liststratum theme create my-theme --base rosestratum theme apply my-themestratum docs
Open documentation for a component in your browser.
stratum docs buttonstratum diff
Show changes to a component between versions (opens GitHub compare).
stratum diff button --from 0.1 --to 0.2stratum explorer
Instructions for running the component explorer.
stratum explorerstratum.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"