#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

#6 in #styling

Download history 27/week @ 2023-10-26 20/week @ 2023-11-02 18/week @ 2023-11-09 23/week @ 2023-11-16 21/week @ 2023-11-23 17/week @ 2023-11-30 13/week @ 2023-12-07 22/week @ 2023-12-14 24/week @ 2023-12-21 10/week @ 2023-12-28 18/week @ 2024-01-04 20/week @ 2024-01-11 23/week @ 2024-01-18 12/week @ 2024-01-25 13/week @ 2024-02-01 19/week @ 2024-02-08

68 downloads per month

MIT license

125KB
3.5K 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

~3.5MB
~68K SLoC