egui_components_theme/lib.rs
1//! gpui-component-style theme for [`egui`], ported from
2//! [`gpui-component`](https://github.com/longbridge/gpui-component).
3//!
4//! # Quick start
5//!
6//! ```no_run
7//! use egui_components_theme::Theme;
8//!
9//! # let ctx = egui::Context::default();
10//! Theme::dark().install(&ctx);
11//! ```
12//!
13//! Components in the sibling `egui-components` crate read the theme
14//! from [`egui::Context::data`] via [`Theme::get`], so installing it once at
15//! startup (or whenever the user toggles light/dark) is all that's required.
16
17pub mod palette;
18pub mod presets;
19pub mod theme;
20pub mod tokens;
21
22pub use palette::Scale;
23pub use theme::{mix, Theme, ThemeMetrics, ThemeMode};
24pub use tokens::ThemeColor;