Complete Terminal Styling
Colors, text decorations, borders, spacing - everything you need for beautiful terminal UIs
A comprehensive TypeScript port of Charm's Lipgloss with 100% API compatibility
import { NewStyle, JoinVertical, Position } from '@subtletools/lipgloss-ts';
const titleStyle = NewStyle()
.foreground('purple')
.bold(true)
.padding(1)
.borderStyle('rounded')
.borderForeground('purple');
const title = titleStyle.render('🎉 Hello, Lipgloss!');
console.log(title);Output:
╭─────────────────────╮
│ 🎉 Hello, Lipgloss! │
╰─────────────────────╯Migrating from Go Lipgloss? Every method, every behavior, every output is identical. Your existing knowledge transfers directly.
Catch errors at compile time with comprehensive TypeScript definitions. IntelliSense shows you exactly what's available.
Battle-tested with 280+ comparative tests ensuring perfect compatibility. Used in production TypeScript applications.
Lightweight and self-contained. No bloated dependency trees - just beautiful terminal styling.
"The TypeScript port is indistinguishable from the original Go version. Perfect for our Node.js CLI tools."
— Terminal UI Developer
"Finally, type-safe terminal styling! The IntelliSense support makes development so much faster."
— Full-Stack Developer
"Migrated our entire CLI toolkit from Go to TypeScript. The API compatibility made it seamless."
— DevOps Engineer