styles

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

This file centralizes all style definitions, making it easy to:

  • Maintain consistent look and feel across the application
  • Implement themes (dark/light mode)
  • Change colors/sizing in one place

References:

Index

Constants

This section is empty.

Variables

View Source
var (
	// Primary colors - main application accent
	Primary   = lipgloss.Color("99") // Purple
	PrimaryBg = lipgloss.Color("63") // Lighter purple for backgrounds

	// Secondary colors - supporting elements
	Secondary = lipgloss.Color("241") // Gray

	// Accent colors - highlights and emphasis
	Accent = lipgloss.Color("212") // Pink

	// Status colors
	Success = lipgloss.Color("10") // Green
	Warning = lipgloss.Color("11") // Yellow
	Error   = lipgloss.Color("9")  // Red
	Info    = lipgloss.Color("12") // Blue

	// Text colors
	Text       = lipgloss.Color("252") // Light gray
	TextMuted  = lipgloss.Color("241") // Dimmed gray
	TextBold   = lipgloss.Color("255") // Bright white
	TextAccent = lipgloss.Color("99")  // Purple tinted

	// Background colors
	BgDefault = lipgloss.Color("235") // Dark gray
	BgDark    = lipgloss.Color("234") // Darker gray
	BgLight   = lipgloss.Color("237") // Lighter gray

	// Border colors
	Border      = lipgloss.Color("238")
	BorderFocus = lipgloss.Color("99") // Purple when focused
)

Functions

func AvailableThemes

func AvailableThemes() []string

func CurrentTheme

func CurrentTheme() string

func SetTheme

func SetTheme(name string) bool

Types

type Styles

type Styles struct {
	Subheader lipgloss.Style
	Muted     lipgloss.Style
	Bold      lipgloss.Style
	Error     lipgloss.Style
	Success   lipgloss.Style
	StatusBar lipgloss.Style
}

Styles holds all pre-defined styles for the application.

func Default

func Default() *Styles

Default returns the default style set.

type ThemePalette

type ThemePalette struct {
	Name                                  string
	Primary, PrimaryBg                    color.Color
	Secondary, Accent                     color.Color
	Success, Warning, Error, Info         color.Color
	Text, TextMuted, TextBold, TextAccent color.Color
	BgDefault, BgDark, BgLight            color.Color
	Border, BorderFocus                   color.Color
}

Jump to

Keyboard shortcuts

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