color

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package color provides CLI color constants matching the yapi theme. Uses ANSI true color (24-bit) for exact RGB color matching.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accent

func Accent(text string) string

Accent formats text with the theme accent color (#ff9e64 orange)

func AccentBg

func AccentBg(text string) string

AccentBg formats text with white on accent background

func Cyan

func Cyan(text string) string

Cyan formats text with theme cyan/info (#7aa2f7)

func Dim

func Dim(text string) string

Dim formats text with faint/dim style

func Green

func Green(text string) string

Green formats text with theme green (#69DB7C)

func Red

func Red(text string) string

Red formats text with theme red (#FF6B6B)

func SetNoColor

func SetNoColor(disabled bool)

SetNoColor globally disables color output.

func Yellow

func Yellow(text string) string

Yellow formats text with theme yellow (#FFE066)

Types

This section is empty.

Jump to

Keyboard shortcuts

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