Bubble Tea is the core framework. Install it with:
go get github.com/charmbracelet/bubbletea/v2
Lip Gloss handles styling. Add it to your project:
go get github.com/charmbracelet/lipgloss/v2
Bubbles provides pre-built UI components:
go get github.com/charmbracelet/bubbles/v2
For a typical Bubble Tea project, you'll want all three:
go get github.com/charmbracelet/bubbletea/v2
go get github.com/charmbracelet/lipgloss/v2
go get github.com/charmbracelet/bubbles/v2
Here's how to import the libraries in your Go code:
package main
import (
tea "github.com/charmbracelet/bubbletea/v2"
"github.com/charmbracelet/lipgloss/v2"
"github.com/charmbracelet/bubbles/v2/spinner"
)
go mod tidy to download all dependencies after adding the imports.