stylus
A CSS level 3 parser
Summary
| Latest Version | 0.1.5 |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:26 |
Tags
Authors
- xTrayambak
Installation
nimble install stylus
choosenim install stylus
git clone https://github.com/ferus-web/stylus
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| stylus | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Dependencies
| Package | Version | Optional |
|---|---|---|
| nim >= | 2.0.0 | No |
| results >= | 0.5.0 | No |
Source
| Repository | https://github.com/ferus-web/stylus |
|---|---|
| Homepage | https://github.com/ferus-web/stylus |
| Registry Source | nimble_official |
README
Stylus -- a CSS level 3 parser written in pure Nim
Stylus is mostly a rewrite of rust-cssparser in Nim (for now) and it aims to support the entire CSS3 specification. \
The tokenizer and parser are mostly done, but a few functions and missing.
The Parser
The parser is not designed to hand over a proper rule vector to you - you're supposed to build one yourself! The parser simply gives you the tools to gracefully parse a CSS3 stylesheet. This allows for a flexible range of syntax that might not be prescribed in the actual spec.
Users
Stylus is currently used by: - ferus, a web engine written in Nim (here) - figuro, a UI toolkit for Nim (here)
Have a project that uses Stylus? Let me know!