Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyAsContrast ¶
func ApplyAsContrast(p material.Palette, pair ContrastPair) material.Palette
func ApplyAsNormal ¶
func ApplyAsNormal(p material.Palette, pair ContrastPair) material.Palette
Types ¶
type ContrastPair ¶
func PairFor ¶
func PairFor(bg color.NRGBA) ContrastPair
PairFor wraps the provided theme color in a Color type with an automatically populated Text color. The Text field value is chosen based on the luminance of the provided color.
type Swatch ¶
type Swatch struct {
Light, Dark, Default ContrastPair
}
Click to show internal directories.
Click to hide internal directories.