Glamour is a stylesheet-based markdown renderer for CLI applications written in Go.
The tool solves the problem of displaying formatted markdown in terminal environments by rendering markdown documents and templates to ANSI-compatible output. It uses a stylesheet system that allows developers to apply consistent styling across markdown content. The renderer is designed to be deterministic, producing identical output for the same input regardless of terminal capabilities. Developers can choose from built-in default styles or create custom stylesheets to control how markdown elements appear in their CLI applications.
Glamour suits projects that need to display formatted markdown in terminal interfaces, from documentation viewers to command-line tools. It works well for applications where consistent, styled markdown rendering is a core feature. The tool integrates with Lip Gloss for color downsampling when terminal capability detection is needed. Configuration can be done programmatically through the API, via environment variables, or by specifying custom style files, making it flexible for different integration patterns.
The project maintains active development with consistent build and test coverage monitoring. Pull requests and contributions are actively reviewed and integrated. The maintainers engage with the community through multiple channels and have built an ecosystem of projects that depend on the tool for markdown rendering in production command-line applications.