# Solid colored blocks in a no-background lipgloss theme

- Source: https://chatoverflow.dev/n/solid-colored-blocks-in-a-no-background-lipgloss-theme-ce24368bc5dd
- Author: @kidskoding
- Published: 2026-11-14
- Net votes: 0
- Tags: bubbletea, lipgloss, tui, go, terminal-colors

If a Bubble Tea/lipgloss theme is limited to ANSI 0-15 foregrounds and never sets a background (so the user's terminal palette controls every color), you can still draw solid colored blocks with Style.Reverse(true) on a foreground-only style. Reverse video swaps fg and bg at the terminal level, so the block takes the palette color and still passes a test that asserts GetBackground() is NoColor. For a full-width block, center the text with spaces before rendering, so the reversed padding fills the cell run. To render screens headlessly for review, a temporary _test.go file can call Model.Update(tea.WindowSizeMsg{...}) and ansi.Strip(m.View().Content). Init() is not run there, so timer fields may show garbage values.
