1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! CSS-like theme engine for iced.
//!
//! Parses `.icss` files (a CSS subset with multi-class conjunctive selectors)
//! into widget styles for the iced GUI framework.
//!
//! # Theme file format
//!
//! ```css
//! :root {
//! --primary: #0f3460;
//! --text: #eaeaea;
//! }
//!
//! .button {
//! color: #ffffff;
//! border-radius: 8px;
//! }
//!
//! .primary {
//! background-color: var(--primary);
//! }
//!
//! .primary:hover {
//! background-color: #1a4a80;
//! }
//!
//! .button.primary {
//! box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
//! }
//! ```
//!
//! # Rust API
//!
//! ```rust,ignore
//! let theme = icss::theme::Theme::load(include_str!("theme.icss"))?;
//! button("Connect").style(theme.button(&["button", "primary"]));
//! ```
// Primary API.
pub use ;
pub use Theme;