π§ Linux (Recommended) |
πͺ Windows |
---|---|
cargo install opensass |
cargo install opensass |
Download Executable File | Download .exe File |
os -h |
os -h |
π§© OpenSASS: A CLI tool for downloading reusable OpenSASS components from crates.io and integrating them into your WASM frontend projects.
To install the CLI:
cargo install opensass
Or build from source:
git clone https://github.com/opensass/cli.git
cd cli
cargo build --release
- π§© Add OpenSASS component-based crates with a single command.
- β Automatically updates
Cargo.toml
with proper features. - π Copies only the
src/
files related to the specified feature.
os-yew.mp4
os add i18nrs yew
This will:
- Download the
i18nrs
crate. - Extract files only related to the
yew
feature. - Copy
src/
files into your project. - Update your
Cargo.toml
dependencies and feature flags.
Open SASS offers the following components:
And much more coming over time...
β― time npx shadcn@latest add accordion
5.93s user 2.22s system 93% cpu
β― time os add accordion-rs yew
0.17s user 0.02s system 6% cpu
Open SASS CLI is ~50Γ faster and uses ~15Γ less CPU than shadcn
. More optimizations on the way π.
Contributions are welcome! Whether it's bug fixes, feature requests, or examples, we would love your help to make Open SASS better.
- Fork the repository.
- Create a new branch for your feature/bugfix.
- Submit a pull request for review.
Open SASS is licensed under the MIT License. You are free to use, modify, and distribute this library in your projects.