Try Install Learn Blog API Packages GitHub
Pages

ColorPalette

Functions

fromColor
(
color
:
Color
background
:
Color
backgroundInverse
:
Color
)
:
ColorPalette

Creates a color palette from the given color.

shadeFromColor
(
color
:
Color
)
:
ColorPalette.Shade

Returns a ColorPalette.Shade from a color, by calulating the readable text color for that color.