egui_solarized

Crates.ioegui_solarized
lib.rsegui_solarized
version0.3.1
created_at2025-03-10 20:33:08.281155+00
updated_at2025-07-11 22:01:35.539077+00
descriptionSolarized theme for egui.
homepagehttps://github.com/kpouer/egui_solarized
repositoryhttps://github.com/kpouer/egui_solarized
max_upload_size
id1587208
size739,875
Matthieu Casanova (kpouer)

documentation

README

egui_solarized

Description

This crate is a port of solarized theme to egui

The crate provides a Theme. The theme exists in dark and light. These themes contain the colors defined by the Solarized theme and can be converted into egui Visuals. Note that some colors of the theme are not used in egui but are still available in the library if you need them (can be useful if you do a text editor)

You can use them with egui by calling egui_solarized::install(&ctx.egui_ctx)

Usage

Add the following to your Cargo.toml:

[dependencies]
egui_solarized = "0.3.1"

Then add the following to your main.rs:

use egui_solarized::solarized;

fn main() {
    eframe::run_native(
        "egui demo app",
        options,
        Box::new(|ctx| {
            /// Install egui's default image loaders to open image files from the file system.
            egui_solarized::install(&ctx.egui_ctx);
            Ok(Box::new(DemoApp::default()))
        }),
    )
}

Showcase

You can find a demo in the examples/demo folder. Basically, I "stole" the widget gallery of the egui crate to demonstrate solarized theme on it

Dark Mode

Dark Mode

Light Mode

Light Mode

Commit count: 18

cargo fmt