theme

package
v1.75.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FangColorScheme

func FangColorScheme(lightDarkFunc lipglossv2.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.Theme

HuhTheme returns a huh theme with GitLab product colors. This ensures consistent branding across interactive prompts. Note: huh uses lipgloss v1, which doesn't support adaptive colors like v2, so we detect the terminal background and choose appropriate colors.

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 lipglossv2.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