Skip to main content

Crate egui_components_theme

Crate egui_components_theme 

Source
Expand description

gpui-component-style theme for egui, ported from gpui-component.

§Quick start

use egui_components_theme::Theme;

Theme::dark().install(&ctx);

Components in the sibling egui-components crate read the theme from egui::Context::data via Theme::get, so installing it once at startup (or whenever the user toggles light/dark) is all that’s required.

Re-exports§

pub use palette::Scale;
pub use theme::mix;
pub use theme::Theme;
pub use theme::ThemeMetrics;
pub use theme::ThemeMode;
pub use tokens::ThemeColor;

Modules§

palette
Tailwind-style color palette (subset matching gpui-component defaults).
presets
Bundled themes generated at compile time from longbridge/gpui-component’s themes/*.json.
theme
tokens
Semantic color tokens (light + dark) mirroring gpui-component’s default-theme.json gpui-component default preset.