<div id="toc">
<ul style="list-style: none">
<summary>
<p align="center">
<img src="./assets/logo/128.png" alt="RCSS Logo" width="150">
</p>
</summary>
</ul>
</div>
<div id="toc">
<ul style="list-style: none">
<summary>
<h1>
Rusty Cascading Style Sheets (RCSS)
</h1>
</summary>
</ul>
</div>
---
<p align="center">
<a aria-label="License" href="https://github.com/ved-patel226/rcss/blob/master/LICENSE"><img alt="" src="https://img.shields.io/npm/l/turbo.svg?style=for-the-badge&labelColor=000000&color="></a>
<a aria-label="Join the community on GitHub" href="https://github.com/ved-patel226/rcss/discussions"><img alt="" src="https://img.shields.io/badge/Join%20the%20community-blueviolet.svg?style=for-the-badge&logo=turborepo&labelColor=000000&logoWidth=20&logoColor=white"></a>
<a aria-label="Vscode Extension" href="https://marketplace.visualstudio.com/items?itemName=rcss-syntax-highlighting.rcss"><img alt="" src="https://img.shields.io/visual-studio-marketplace/v/rcss-syntax-highlighting.rcss?style=for-the-badge"></a>
</p>
> [!TIP]
> Download the **[VSCode extension](https://marketplace.visualstudio.com/items?itemName=rcss-syntax-highlighting.rcss)** for syntax highlighting!
**Rusty Cascading Style Sheets (RCSS)** is a styling language that brings Rust-inspired syntax to CSS. It combines the robustness of Rust with SASS-like features such as nesting and variables for cleaner, more maintainable styles.
```rcss
let variable: "#FFFFFF";
let breakpoint: "768px";
fn padding() {
padding: 20px;
}
.container {
padding();
h2 {
color: blue;
}
}
h4 {
width: 50%;
color: green;
}
/* MOBILE STYLES */
@media screen and (max-width: &breakpoint) {
.container {
width: 100%;
}
h4 {
width: 100%;
}
}
```
---
<div id="toc">
<ul style="list-style: none">
<summary>
<h2> Features </h2>
</summary>
</ul>
</div>
- **Rust-Inspired Syntax:** Write styles with a familiar syntax.
- **Nesting:** Organize CSS rules hierarchically.
- **Variables:** Easily manage variables and color schemes.
- **Compiles to Human-Readable or Minified CSS:** Choose between readable CSS or a optimized, minified output.
---
<div id="toc">
<ul style="list-style: none">
<summary>
<h2> Installation </h2>
</summary>
</ul>
</div>
<div id="toc">
<ul style="list-style: none">
<summary>
<h2> Roadmap </h2>
</summary>
</ul>
</div>
### ✅ Phase 1: Core Features (Current)
- Implement Rust-like syntax parsing.
- Support variables and nesting.
- Support functions with no arguments
- Develop a VS Code extension with syntax highlighting.
### 🚧 Phase 2: Enhancements (Upcoming)
- Support functions with arguments
- Implement importing
- Add RCSS formatter
- Improve output css format
- Improve error handling and debugging tools.
### 🔮 Phase 3: Future Plans
- WASM support.
---
**Base logo** by [Dzuk](https://github.com/dzuk-mutant), licensed under [CC BY-NC-SA](https://creativecommons.org/licenses/by-nc-sa/4.0/). [Download the emoji set](https://rustacean.net/fan-art.html#fanart)
**RCSS** is licensed under the [MIT License](https://opensource.org/licenses/MIT).