Expand description
Tailwind-style utility styling for an immediate-mode toolkit.
egui_styled wraps egui’s widgets with builder APIs that handle the
per-widget visuals_mut dance for you, plus a small design-token theme
system. See the README for a Before/After comparison.
§Quick start
ⓘ
use egui_styled::prelude::*;
Styled::button("Save")
.bg(theme.accent)
.hover_bg(theme.accent_hover)
.text_color(theme.fg_on_accent)
.corner_radius(theme.rounding_md)
.show(ui);The prelude module re-exports everything you usually need.
Re-exports§
pub use apply::Apply;pub use color::ColorExt;pub use color::rgb;pub use color::rgba;pub use containers::area::StyledArea;pub use containers::column::StyledColumn;pub use containers::frame::StyledFrame;pub use containers::row::StyledRow;pub use theme::StyledTheme;pub use theme::theme_ext::DesignSlots;pub use theme::theme_ext::ThemeExt;pub use theme::web_palette::WebPalette;pub use widgets::button::StyledButton;pub use widgets::checkbox::StyledCheckbox;pub use widgets::combo_box::StyledComboBox;pub use widgets::label::StyledLabel;pub use widgets::slider::StyledSlider;pub use widgets::text_edit::StyledTextEdit;
Modules§
- apply
- color
- containers
- prelude
- Commonly-used items. Glob-import this to write a styled UI without reaching into the crate’s module paths.
- state
- style
- theme
- widgets
Macros§
Structs§
- Styled
- Entry-point namespace for constructing styled widgets and containers.