Skip to content

Releases: charmbracelet/fang

v2.0.1

11 Mar 23:37
v2.0.1
d89b30a

Choose a tag to compare

Changelog

Fixed


The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.

v2.0.0

09 Mar 12:51
v2.0.0
bf86821

Choose a tag to compare

Are you ready for Fang v2?

The second major release of Fang is here!

❤️ Charm Land Import Path

We've updated our import paths to use vanity domains and use our domain to import Go packages.

// Before
import "github.com/charmbracelet/fang"

// After
import "charm.land/fang/v2"

💄 Lip Gloss v2

Fang v2 now uses Lip Gloss v2, which brings a host of improvements and performance enhancements. The new version of Lip Gloss is pure and declarative, which means better rendering, more consistent styling, and fewer surprises.

🎨 Built-in Color Downsampling

Fang now automatically detects your terminal's color profile and downsamples colors to match. This means your CLI will look great everywhere — from full TrueColor terminals to basic 16-color TTYs. No configuration needed; it just works.

🌈 Light/Dark Theme Support

The default theme now adapts to your terminal's background color. Light terminal? You get the light theme. Dark terminal? Dark theme. You can also create your own adaptive themes using WithColorSchemeFunc:

fang.Execute(ctx, cmd, fang.WithColorSchemeFunc(func(ld lipgloss.LightDarkFunc) fang.ColorScheme {
    return fang.ColorScheme{
        Primary:   ld(lipgloss.Color("#FF6B6B"), lipgloss.Color("#4ECDC4")),
        Secondary: ld(lipgloss.Color("#95E1D3"), lipgloss.Color("#F38181")),
        // ...
    }
}))

For backwards compatibility, the old WithTheme option still works but is now deprecated.

🪟 Better Windows Support

Windows users rejoice! Fang v2 ensures VT processing is always enabled on Windows, so ANSI colors and styling work correctly without any extra configuration.

🛠️ Bug Fixes and Polish

Fang v2 includes several quality-of-life improvements:

  • Multiline flag descriptions are now preserved and formatted correctly
  • Command aliases are styled consistently
  • Default values in help output have better spacing
  • Terminal checks are now done in the right place, preventing panics in non-TTY environments

Changelog

Other stuff


Feedback

Have thoughts on Fang v2? We'd love to hear about it. Let us know on…


Part of Charm.

The Charm logo

Charm热爱开源 • Charm loves open source

v1.0.0

09 Mar 12:49
v1.0.0
3b93b3b

Choose a tag to compare

Changelog

Other stuff

  • 3b93b3b: ci: sync golangci-lint config (#83) (@github-actions[bot])

The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.

v0.4.3

30 Sep 18:24
8764398

Choose a tag to compare

Changelog

Bug fixes


The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.

v0.4.2

18 Sep 14:10
v0.4.2
055c2e3

Choose a tag to compare

Changelog


The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.

v0.4.1

15 Sep 21:02
v0.4.1
7d856d9

Choose a tag to compare

Changelog

Bug fixes


The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.

v0.4.0

29 Aug 12:50
008e912

Choose a tag to compare

Changelog

New Features

Bug fixes

Other work

  • 6c05a2b: ci: sync golangci-lint config (#68) (@github-actions[bot])

The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, Discord, Slack, The Fediverse.

v0.3.0

03 Jul 16:38
6b48057

Choose a tag to compare

Changelog

New Features

Bug fixes


The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.

v0.2.0

23 Jun 18:14
e0d85b6

Choose a tag to compare

Changelog

New Features

Bug fixes

Documentation updates


The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.

v0.1.0

18 Jun 16:32
5fb26c3

Choose a tag to compare

Changelog

New Features

Bug fixes

Dependency updates

Documentation updates

Other work


The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.