GenerateThemeOptions<T>
Options for generating a color theme
Example
const options: GenerateThemeOptions = {
baseColor: '#ff0000',
expandPalette: true,
colorScheme: 'complementary',
infoHue: 200,
successHue: 120,
warningHue: 40,
errorHue: 0
};
Type Parameters
Type Parameter | Default type | Description |
---|---|---|
T extends boolean | false | Boolean type parameter that determines if the theme palette should be expanded |
Properties
baseColor
baseColor: `#${string}`;
The base color to generate the theme from
Defined in
colorScheme?
optional colorScheme: ColorSchemeType;
The type of color scheme to generate
Defined in
errorHue?
optional errorHue: number;
The hue value for error colors
Defined in
expandPalette?
optional expandPalette: T;
Whether to generate an expanded palette with additional shades
Defined in
infoHue?
optional infoHue: number;
The hue value for info colors
Defined in
successHue?
optional successHue: number;
The hue value for success colors
Defined in
warningHue?
optional warningHue: number;
The hue value for warning colors