velox-style 0.1.2

CSS parsing and styling for the Velox UI framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::sync::OnceLock;

use crate::Stylesheet;

static UA_SRC: &str = include_str!("ua.css");

static UA: OnceLock<Stylesheet> = OnceLock::new();

pub fn ua_sheet() -> &'static Stylesheet {
    UA.get_or_init(|| Stylesheet::parse(UA_SRC))
}