theme

package
v1.90.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FangColorScheme

func FangColorScheme(lightDarkFunc lipgloss.LightDarkFunc) fang.ColorScheme

FangColorScheme returns a fang color scheme with GitLab product colors. This maintains the existing fang styling established in the CLI.

func HuhTheme

func HuhTheme() huh.ThemeFunc

HuhTheme returns a huh theme with GitLab product colors. This ensures consistent branding across interactive prompts.

Types

type GitLabColors

type GitLabColors struct {
	// Brand colors
	Orange color.Color // GitLab brand orange (#FC6D26)
	Purple color.Color // GitLab brand purple (#7759C2 light, #A989F5 dark)

	// Semantic colors
	Blue  color.Color // Blue for current/active states (#1068BF light, #4285F4 dark)
	Green color.Color // Green for success (#217645 light, #34D058 dark)
	Red   color.Color // Red for errors (#C91C00 light, #F97583 dark)

	// Neutral colors
	Text   color.Color // High-contrast text (#171321 light, #FAFAFA dark)
	Subtle color.Color // Subtle elements (#6B6B73 light, #B0B0B0 dark)
}

GitLabColors contains the GitLab product color palette. These colors are designed for accessibility across different terminal backgrounds.

func NewGitLabColors

func NewGitLabColors(lightDarkFunc lipgloss.LightDarkFunc) GitLabColors

NewGitLabColors creates GitLab brand colors using lightDarkFunc for accessibility. The lightDarkFunc automatically selects colors based on terminal background.

Jump to

Keyboard shortcuts

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