theming-material / Interface

SchemeStaticColorBuilderConfig

Configuration for SchemeStaticColorBuilder.

Properties

NameTypeDescription
mode
SchemeMode

Mode of the scheme. Light or Dark.

name
string

Name of the static color, e.g. "success".

source
Hct

Source/Seed color for the static color. Only the hue and chroma of this color will be used.

Notes

Hct is the color representation from material-color-utilities, which consists of hue, chroma, and tone.

Example usage
import { Hct, argbFromHex } from '@material/material-color-utilities';
Hct.fromInt(0xc2e7ff)
Hct.fromInt(argbFromHex("#c2e7ff"))