themed-styler 1.2.9

Client-side runtime styling engine for web and Android/iOS Native with theme support and Tailwind subset
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::{State};
use indexmap::{IndexMap, IndexSet};

/// Return an empty default State. Themes are loaded from the client.
pub fn bundled_state() -> State {
    State {
        themes: IndexMap::new(),
        default_theme: String::new(),
        current_theme: String::new(),
        display_density: 1.0,
        scaled_density: 1.0,
        used_classes: IndexSet::new(),
        used_tags: IndexSet::new(),
        used_tag_classes: IndexSet::new(),
    }
}