Expand description
Β§π§© 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 opensassOr 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 yewThis 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 totalOpen 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.