Monoprint

Code, ready to share.

A desktop app that turns source code into polished images. Rendered locally.

monoprint share.rs --theme night-owl --highlight 4
share.rs — Monoprint

Source

Rust
fn share(code: &str, theme: &Theme) -> Image {
let tokens = highlight(code, theme.syntax);
// Rendered on this Mac. No network.
let canvas = Canvas::new(640, 64);
canvas.draw(tokens).export(Png { scale: 2 })
}
Rust code in Night Owl, with line four highlighted
Rust code in Catppuccin Mocha
Catppuccin Mocha1 of 96 appearances
Rust code in Ayu Light, with line four highlighted
Line 4 highlightedAyu Light
Rust code in Gruvbox on a transparent background
Transparent backgroundSVG