2 releases
| 0.3.1-alpha2 | Apr 22, 2020 |
|---|---|
| 0.3.0-alpha1 | Nov 15, 2019 |
#50 in #styling
57 downloads per month
125KB
3.5K
SLoC
This crate provides functions to load a css files as theme and access it properties with selectors.
This crate depends on the orbtk_utils crate.
Example
Basic usage of the tree:
use orbtk_css_engine::prelude::*;
let mut theme = Theme::create_from_path("theme.css").build();
let selector = Selector::from("button");
let background = theme.brush("background", &selector);
orbtk-css-engine
Used to load properties from CSS 3 files. It's part of OrbTk - The Rust UI-Toolkit.
Dependencies
- cssparser (MPL-2.0): CSS parsing
License
Licensed under MIT license (LICENSE).
Dependencies
~4MB
~85K SLoC