Skip to content

Lipgloss TypeScriptBeautiful terminal styling

A comprehensive TypeScript port of Charm's Lipgloss with 100% API compatibility

Lipgloss TypeScript

Quick Preview

typescript
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! │
   ╰─────────────────────╯

Why Lipgloss TypeScript?

100% Compatible

Migrating from Go Lipgloss? Every method, every behavior, every output is identical. Your existing knowledge transfers directly.

Type-Safe

Catch errors at compile time with comprehensive TypeScript definitions. IntelliSense shows you exactly what's available.

Production Ready

Battle-tested with 280+ comparative tests ensuring perfect compatibility. Used in production TypeScript applications.

Zero Dependencies

Lightweight and self-contained. No bloated dependency trees - just beautiful terminal styling.

Trusted by Developers

"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


Get StartedGitHubNPM

Released under the MIT License.