🧩 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:
Or build from source:
✨ 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
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
Leptos Usage
🧃 Components
Open SASS offers the following components:
And much more coming over time...
⚡ Benchmark
Open SASS CLI is ~50× faster and uses ~15× 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.