6 releases
Uses new Rust 2024
| 0.0.6 | Jun 3, 2025 |
|---|---|
| 0.0.5 | Apr 28, 2025 |
#866 in WebAssembly
477 downloads per month
25KB
348 lines
ð§Đ OpenSASS

ð§ 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.
ð Table of Contents
ð Installation
To install the CLI:
cargo install opensass
Or build from source:
git clone https://github.com/opensass/cli.git
cd cli
cargo build --release
âĻ Features
- ð§Đ Add OpenSASS component-based crates with a single command.
- â Automatically updates
Cargo.tomlwith proper features. - ð Copies only the
src/files related to the specified feature.
ðĄ Usage
Yew Usage
os add i18nrs yew
This will:
- Download the
i18nrscrate. - Extract files only related to the
yewfeature. - Copy
src/files into your project under a new directorycrate_name, in this casei18nrs. - Update your
Cargo.tomldependencies andlib.rsfile.
Dioxus Usage
os add i18nrs dio
Leptos Usage
os add i18nrs lep
ð§ Components
Open SASS offers the following components:
And much more coming over time...
⥠Benchmark
âŊ time yes | npx shadcn@latest add accordion
npx shadcn@latest add accordion 8.98s user 4.85s system 90% cpu 15.279 total
âŊ time os add accordion-rs yew
os add accordion-rs yew 0.16s user 0.02s system 5% cpu 0.2 total
Open SASS CLI is ~56Ã faster in user time and uses ~18Ã less CPU than shadcn. More optimizations on the way ð.
ðĪ Contributions
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.
ð License
Open SASS is licensed under the MIT License. You are free to use, modify, and distribute this library in your projects.
Dependencies
~20â40MB
~525K SLoC