styles

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BaseStyle = lipgloss.NewStyle().Foreground(primary)
	AppStyle  = BaseStyle.Padding(0, 1, 0, 1)

	// Text styles
	HighlightStyle      = BaseStyle.Foreground(highlight)
	MutedStyle          = BaseStyle.Foreground(muted)
	ToolCallResultStyle = BaseStyle.Foreground(muted).Margin(1, 0, 0, 0).Background(lighten(Background, 5)).Padding(1, 1)
	SubtleStyle         = BaseStyle.Foreground(subtle)
	SecondaryStyle      = BaseStyle.Foreground(secondary)

	// Status styles
	SuccessStyle    = BaseStyle.Foreground(success)
	ErrorStyle      = BaseStyle.Foreground(errorColor)
	WarningStyle    = BaseStyle.Foreground(warning)
	ActiveStyle     = BaseStyle.Foreground(active)
	InProgressStyle = BaseStyle.Foreground(inProgress)
	PendingStyle    = BaseStyle.Foreground(pending)

	// Layout styles
	HeaderStyle = BaseStyle.Foreground(highlight).Padding(0, 0, 1, 0)
	BorderStyle = BaseStyle.Border(lipgloss.RoundedBorder()).BorderForeground(borderPrimary)

	// Input styles
	InputStyle = textarea.Styles{
		Focused: textarea.StyleState{
			Base:        BaseStyle,
			Placeholder: BaseStyle.Foreground(darken(primary, 40)),
		},
		Blurred: textarea.StyleState{
			Base:        BaseStyle,
			Placeholder: BaseStyle.Foreground(darken(primary, 40)),
		},
		Cursor: textarea.CursorStyle{
			Color: highlight,
		},
	}
	EditorStyle = BaseStyle.Padding(2, 0, 0, 0)

	// Layout helpers
	CenterStyle = BaseStyle.Align(lipgloss.Center, lipgloss.Center)

	// Deprecated styles (kept for backward compatibility)
	StatusStyle = MutedStyle
	ActionStyle = SecondaryStyle
	ChatStyle   = BaseStyle
)
View Source
var (
	Background = lipgloss.Color("#1f1c28ff")
)

Color scheme - centralized color palette

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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