# charmbracelet/lipgloss

Style definitions for nice terminal layouts 👄

Repository: https://github.com/charmbracelet/lipgloss
Canonical: https://ross.abutalabs.com/products/lipgloss
Language: Go
License: MIT
License Family: permissive
Topics: tui, go, golang, cli, layout, style, hacktoberfest
Last push: 2026-08-16T00:16:03+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 85, longevity 100
- inputs: {"age_days": 2011, "days_push": 18, "days_rel": 22, "gap_med": 33, "n_releases_24m": 10}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 11753, forks 391 (observed 2026-08-28T04:10:49.680127+00:00)

## What it is
Lip Gloss is a Go library for styling and laying out terminal output with a declarative, CSS-like API. It handles colors (ANSI through truecolor with automatic downsampling), padding, borders, and alignment for building polished TUIs.

## Use cases
- style terminal output with colors and bold text
- build TUI layouts with padding, borders, and alignment
- render styled CLI output that adapts to the terminal's color profile
- create nice-looking command-line tool interfaces
- compose terminal UI components for Bubble Tea apps
- downsample truecolor styles for limited terminals

## When to choose
- you're writing a Go CLI or TUI and want attractive styled output
- you need CSS-like declarative styling for terminal rendering
- you want automatic color profile detection and downsampling
- you're building Bubble Tea apps and need layout and styling

## When to avoid
- you need a full TUI framework with event handling (use Bubble Tea instead)
- you're not working in Go
- you only need simple one-off ANSI escape codes without layout features

## Facets
- artifact type: library
- maturity: active
- function: ui-components, cli, developer-tools
- domain: developer-tools, cross-platform
- platform: go, cli, cross-platform
- tags: tui, terminal-styling, layout, ansi-colors, css-like-styles, charmbracelet, command-line

## Member repositories
- charmbracelet/lipgloss (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:49.680127+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:15:20.963526+00:00, confidence not recorded.
  - readme: https://github.com/charmbracelet/lipgloss (fetched 2026-08-28T04:10:49.680127+00:00, sha 141ba0c0d9b4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
