#css #theme #styling #ui

orbtk-css-engine

CSS engine used to theme OrbTk

2 releases

0.3.1-alpha2 Apr 22, 2020
0.3.0-alpha1 Nov 15, 2019

#10 in #theme

Download history 20/week @ 2021-04-11 25/week @ 2021-04-18 19/week @ 2021-04-25 11/week @ 2021-05-02 8/week @ 2021-05-09 11/week @ 2021-05-16 15/week @ 2021-05-23 15/week @ 2021-05-30 18/week @ 2021-06-06 18/week @ 2021-06-13 11/week @ 2021-06-20 17/week @ 2021-06-27 21/week @ 2021-07-04 25/week @ 2021-07-11 27/week @ 2021-07-18 23/week @ 2021-07-25

69 downloads per month

MIT license

70KB
2K SLoC

orbtk-css-engine

Used to load properties from CSS 3 files. It's part of OrbTk - The Rust UI-Toolkit.

Build and test MIT licensed

Dependencies

License

Licensed under MIT license (LICENSE).


lib.rs:

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);

Dependencies

~2–2.7MB
~57K SLoC