color

package module
v0.0.0-...-9bebc94 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2017 License: MIT Imports: 0 Imported by: 3

README

color

Material Design Lite colors palette for vecty and gopherjs

This provides all the colors available in material desin=gn lite. You can use this library in your vecty or application to describe various colors as per the material design rituals.

This breaks down the color to Hue and Shade which you can mix to produce various coor combinations.

NOTE : The colors are abtsractions for the material design lite css classes. So you will need to include the css file for this to work.

Installation

go get github.com/wizenerd/color

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Color

type Color string
const (
	Black           Color = "black"
	Primary         Color = "primary"
	PrimaryDark     Color = "primary-dark"
	PrimaryContrast Color = "primary-contrast"
	Accent          Color = "accent"
	AccentContrast  Color = "accent-contrast"
)

func Class

func Class(h Hue, s Shade) Color

func (Color) Background

func (c Color) Background() string

func (Color) Text

func (c Color) Text() string

type Hue

type Hue uint
const (
	Indigo Hue = iota
	Blue
	LightBlue
	Cyan
	Teal
	Green
	LightGreen
	Lime
	Yellow
	Amber
	Orange
	Brown
	BlueGrey
	Grey
	DeepOrange
	Red
	Pink
	Purple
	DeepPurple
)

func (Hue) String

func (h Hue) String() string

type Shade

type Shade uint
const (
	S50 Shade = iota
	S100
	S200
	S300
	S400
	S500
	S600
	S700
	S800
	S900
	A100
	A200
	A400
	A700
)

func (Shade) String

func (s Shade) String() string

Jump to

Keyboard shortcuts

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