color

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package color provides opinionated colors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Color

type Color struct {
	Variant string // "dark" or "light"
}

Color is a way to 'theme' the returned hex values of colors.

func (Color) Green

func (c Color) Green() string

Green provides an opinionated 'green' hex value.

func (Color) Normal

func (c Color) Normal() string

Normal provides an opinionated foreground hex value.

func (Color) Red

func (c Color) Red() string

Red provides an opinionated 'red' hex value.

func (Color) Yellow

func (c Color) Yellow() string

Yellow provides an opinionated 'yellow' hex value.

Jump to

Keyboard shortcuts

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