rust-dark-light

Rust crate to detect if dark mode or light mode is enabled.

API Documentation

Usage

rust fn main() { let mode = dark_light::detect(); }

Example

cargo run --example detect