Terminal UI Styling Library
11.1k 2026-04-19

charmbracelet/lipgloss

A Go library offering an expressive, declarative, CSS-like approach to styling terminal layouts and text.

Core Features

Declarative, CSS-like syntax for terminal styling.
Extensive color support including ANSI 16, 256, True Color, and automatic downsampling.
Comprehensive inline text formatting (bold, italic, underline, strikethrough, etc.).
Block-level formatting with padding and margins, similar to CSS.
Support for clickable hyperlinks in compatible terminals.

Quick Start

go get charm.land/lipgloss/v2

Detailed Introduction

Lip Gloss is a powerful Go library designed to simplify the creation of visually appealing terminal user interfaces (TUIs). It provides a declarative, CSS-like API for defining styles, making it intuitive for developers familiar with web styling. With robust support for various color profiles, automatic color downsampling, and a rich set of text and block-level formatting options, Lip Gloss empowers developers to build sophisticated and accessible terminal applications. It's an essential tool for enhancing the aesthetics and user experience of command-line tools and TUIs.

OSS Alternative

Explore the best open source alternatives to commercial software.

© 2026 OSS Alternative. hotgithub.com - All rights reserved.