brand

package
v0.0.0-...-c9cfaf6 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package brand provides Go Brand colors.

Index

Constants

View Source
const (
	GopherBlue = "#00ADD8"
	LightBlue  = "#5DC9E2"
	Aqua       = "#00A29C"
	Black      = "#000000"
	Fuchsia    = "#CE3262"
	Yellow     = "#FDDD00"
	Turquoise  = "#00758D"
	Slate      = "#555759"
	Purple     = "#402B56"
	CoolGray   = "#DBD9D6"
)

Brand colors in hex.

View Source
const (
	Pass = "#36B37E"
	Fail = "#FF5630"
	Warn = "#FFAB00"
)

Status colors.

Variables

View Source
var ColorNames []string

ColorNames is the list of color names.

View Source
var Colors = map[string]string{
	"gopher-blue": GopherBlue,
	"light-blue":  LightBlue,
	"aqua":        Aqua,
	"black":       Black,
	"fuchsia":     Fuchsia,
	"yellow":      Yellow,
	"turquoise":   Turquoise,
	"slate":       Slate,
	"purple":      Purple,
	"cool-gray":   CoolGray,

	"pass": Pass,
	"fail": Fail,
	"warn": Warn,
}

Colors is a map of named colors.

Functions

func Color

func Color(name string) (string, error)

Color looks up a named color.

func Lighten

func Lighten(name string, p float64) (string, error)

Lighten returns the named color lightened by the given proportion (in range 0-1).

Types

This section is empty.

Jump to

Keyboard shortcuts

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