mew_css/lib.rs
1//! CSS Style Builder Library
2//!
3//! A fluent, chainable API for building CSS styles with strong typing.
4//!
5//! # Example
6//!
7//! ```
8//! use mew_css::style;
9//! use mew_css::values::{Color, Size, Display};
10//!
11//! let css = style()
12//! .color(Color::White)
13//! .background_color(Color::Rgba(255, 0, 0, 0.5))
14//! .font_size(Size::Px(16))
15//! .display(Display::Flex)
16//! .apply();
17//! ```
18
19// Make modules public
20pub mod style;
21pub mod values;
22pub mod properties;
23pub mod variable;
24
25// Include integration tests
26#[cfg(test)]
27mod tests;
28
29// Re-export the main API entry point
30pub use style::style;
31pub use variable::{CssVar, var};