Expand description
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);
Modules§
Structs§
- Declaration
- Rule
- Selector
- Describes a css selector.
- Specificity
- Describes the specificity of a selector.
- Theme
Theme
is the representation of a css styling.- Theme
Builder - Used to build a theme, specifying additional details.