Themenator provides Catppuccin color palettes for ready-made themes, packaged as a widget for egui.
It allows egui applications to switch between Latte, Frappé, Macchiato, and Mocha at runtime, with the selected theme automatically persisted across app restarts.
- Full Catppuccin palettes (Latte / Frappé / Macchiato / Mocha)
- Complete egui Style and Visuals integration
- Correct light / dark base theme handling
- Runtime theme switching
- Persistent theme storage across app restarts
- Theme selector buttons
- Builder pattern for clean, fluent configuration
- Runs on Linux, Mac, Windows, WebAssembly (wasm) and Raspberry Pi
The wasm demo app runs in your web browser.
Add egui-widget-themenator as a dependency in your Cargo.toml file:
[dependencies]
egui_widget_themenator = 0.2Add the theme widget:
ui.add(ThemeWidget::new().label("Theme selector:"));
);The theme automatically:
- Adds an icon indicating light or dark mode
- Icon is clickable and cycles through themes Applies all Catppuccin color styling
- Switches between light and dark mode
- Persists the selected theme across restarts
- Linux
- macOS
- Windows
- WebAssembly (wasm)
- Raspberry Pi 5 with Touchscreen
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT License (LICENSE-MIT)
at your option.
Made with ❤️ by Rob @ White Rabbit Scientific.
Inspired by modern design tools and clean UI patterns.
Star this repo if you like it! ⭐️