This repository has been archived on 2026-03-31. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
alchemy/styles/src/lib.rs

43 lines
1.1 KiB
Rust

//! This crate hoists various styles and layout parameters for implementing
//! Flexbox in Alchemy. For all intents and purposes, you can essentially consider
//! this to be the root crate for Alchemy, as just about everything ends up using it.
// We hoist this for ease of use in other crates, since... well, pretty much
// every other crate in the project imports this already.
pub use lazy_static::lazy_static;
#[cfg(feature="parser")]
#[macro_use] pub extern crate cssparser;
mod stretch;
pub use stretch::{geometry, node, number, result, Stretch, Error};
pub use stretch::result::Layout;
pub mod color;
pub use color::Color;
mod engine;
use engine::ThemeEngine;
mod spacedlist;
pub use spacedlist::SpacedList;
mod spacedset;
pub use spacedset::SpacedSet;
mod style_keys;
pub use style_keys::StyleKey;
pub type StylesList = SpacedSet<StyleKey>;
pub mod styles;
pub use styles::{Style, Styles};
pub mod stylesheet;
pub use stylesheet::StyleSheet;
#[cfg(feature="parser")]
pub mod styles_parser;
lazy_static! {
pub static ref THEME_ENGINE: ThemeEngine = ThemeEngine::new();
}