alchemy_styles/
lib.rs

1//! This crate hoists various styles and layout parameters for implementing
2//! Flexbox in Alchemy. For all intents and purposes, you can essentially consider
3//! this to be the root crate for Alchemy, as just about everything ends up using it.
4
5// We hoist this for ease of use in other crates, since... well, pretty much
6// every other crate in the project imports this already.
7pub use lazy_static::lazy_static;
8
9#[cfg(feature="parser")]
10#[macro_use] pub extern crate cssparser;
11
12pub mod color;
13pub use color::Color;
14
15mod engine;
16use engine::ThemeEngine;
17
18mod spacedlist;
19pub use spacedlist::SpacedList;
20
21mod spacedset;
22pub use spacedset::SpacedSet;
23
24pub mod stretch;
25pub use stretch::result::Layout;
26
27mod style_keys;
28pub use style_keys::StyleKey;
29pub type StylesList = SpacedSet<StyleKey>;
30
31pub mod styles;
32pub use styles::{Appearance, Styles, Style};
33
34pub mod stylesheet;
35pub use stylesheet::StyleSheet;
36
37#[cfg(feature="parser")]
38pub mod styles_parser;
39
40lazy_static! {
41    pub static ref THEME_ENGINE: ThemeEngine = ThemeEngine::new();
42}