charmtheme

package
v0.2.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProgressGradientStart = "#65A30D"
	ProgressGradientEnd   = "#CAEA28"
)

Variables

View Source
var (
	ColorBgBase    = lipgloss.Color("#0C0A09")
	ColorBgSurface = lipgloss.Color("#1C1917")
	ColorBgOverlay = lipgloss.Color("#292524")

	ColorBrand      = lipgloss.Color("#CAEA28")
	ColorAccent     = lipgloss.Color("#A3E635")
	ColorAccentAlt  = lipgloss.Color("#84CC16")
	ColorAccentDeep = lipgloss.Color("#65A30D")

	ColorSuccess = lipgloss.Color("#10B981")
	ColorError   = lipgloss.Color("#EF4444")
	ColorWarning = lipgloss.Color("#F59E0B")
	ColorInfo    = lipgloss.Color("#3B82F6")

	ColorFgBright = lipgloss.Color("#E7E5E4")
	ColorMuted    = lipgloss.Color("#A8A29E")
	ColorDim      = lipgloss.Color("#78716C")

	ColorBorder      = lipgloss.Color("#44403C")
	ColorBorderFocus = ColorAccent
)
View Source
var TechBorder = lipgloss.Border{
	Top:         "─",
	Bottom:      "─",
	Left:        "│",
	Right:       "│",
	TopLeft:     "┌",
	TopRight:    "┐",
	BottomLeft:  "└",
	BottomRight: "┘",
}

Functions

func Keycap added in v0.2.10

func Keycap(key string) string

Keycap renders a key hint such as "[ENTER]" with a muted bracket and an accented, upper-cased key. It is foreground-only so it composes cleanly with inline (non alt-screen) surfaces that do not own a background.

func TechPanelStyle added in v0.2.10

func TechPanelStyle(totalWidth int, focused bool) lipgloss.Style

TechPanelStyle returns a bordered panel style using the shared TechBorder. totalWidth is the full rendered footprint: in this lipgloss build Width() is the total output width (border + padding inclusive), so the inner content area is totalWidth - GetHorizontalFrameSize(). Focused panels use the accent focus border; unfocused panels use the muted border so the active pane reads at a glance.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL