<div align="center">
# ð§Đ OpenSASS
[](https://crates.io/crates/opensass)
[](https://crates.io/crates/opensass)

[](https://www.rust-lang.org/)
[](https://www.rust-lang.org)
[](https://github.com/wiseaidev)
[](https://discord.gg/b5JbvHW5nv)

| `cargo install opensass` | `cargo install opensass` |
| [Download Executable File](https://github.com/opensass/cli/releases/download/v0.0.5/os) | [Download `.exe` File](https://github.com/opensass/cli/releases/download/v0.0.5/os.exe) |
| `os -h` | `os -h` |
</div>
> ð§Đ **OpenSASS**: A CLI tool for downloading reusable OpenSASS components from crates.io and integrating them into your WASM frontend projects.
## ð Table of Contents
- [Installation](#-installation)
- [Features](#-features)
- [Usage](#-usage)
- [Components](#-components)
- [Benchmark](#-benchmark)
- [Contributing](#-contributing)
- [License](#-license)
## ð Installation
To install the CLI:
```sh
cargo install opensass
```
Or build from source:
```sh
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.toml` with proper features.
- ð Copies only the `src/` files related to the specified feature.
## ðĄ Usage
<video src="https://github.com/user-attachments/assets/add61376-cdf6-4a46-9d3b-067bc4d0c4bd"></video>
### Yew Usage
```sh
os add i18nrs yew
```
This will:
- Download the `i18nrs` crate.
- Extract files only related to the `yew` feature.
- Copy `src/` files into your project under a new directory `crate_name`, in this case `i18nrs`.
- Update your `Cargo.toml` dependencies and `lib.rs` file.
### Dioxus Usage
```sh
os add i18nrs dio
```
### Leptos Usage
```sh
os add i18nrs lep
```
## ð§ Components
Open SASS offers the following components:
| `accordion-rs` | [](https://github.com/opensass/accordion-rs) | âïļ A highly customizable accordion component for WASM frameworks. |
| `alert-rs` | [](https://github.com/opensass/alert-rs) | â ïļ A highly customizable alert component for WASM frameworks. |
| `eld` | [](https://github.com/opensass/eld) | ð ELD Toolkit for WASM frameworks. |
| `i18nrs` | [](https://github.com/opensass/i18n-rs) | ð Internationalization (i18n) component for WASM frameworks. |
| `image-rs` | [](https://github.com/opensass/image-rs) | ðžïļ Image Component for WASM frameworks. |
| `input-rs` | [](https://github.com/opensass/input-rs) | ðĪ A highly customizable input component for WASM frameworks. |
| `navbar` | [](https://github.com/opensass/navbar) | ð A highly customizable navbar component for WASM frameworks. |
| `radiors` | [](https://github.com/opensass/radio-rs) | ðïļ A highly customizable radio buttons component for WASM frameworks. |
| `scroll-rs` | [](https://github.com/opensass/scroll-rs) | ðąïļ A highly customizable scroll-to-anywhere component for WASM frameworks. |
| `select-rs` | [](https://github.com/opensass/select-rs) | ð― A highly customizable select group component for WASM frameworks. |
| `sidebar` | [](https://github.com/opensass/sidebar) | ðïļ A sidebar component for WASM frameworks. |
| `skeleton-rs` | [](https://github.com/opensass/skeleton-rs) | ðĶī A skeleton component for WASM frameworks. |
| `slider-rs` | [](https://github.com/opensass/slider-rs) | ðïļ A slider component for WASM frameworks. |
| `table-rs` | [](https://github.com/opensass/table-rs) | ð Table component for WASM frameworks. |
| `theme` | [](https://github.com/opensass/theme) | ðĻ A highly customizable theming system for WASM frameworks. |
And much more coming over time...
## ⥠Benchmark
```sh
```
```sh
âŊ 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.
1. Fork the repository.
1. Create a new branch for your feature/bugfix.
1. Submit a pull request for review.
## ð License
Open SASS is licensed under the [MIT License](LICENSE). You are free to use, modify, and distribute this library in your projects.