Skip to main content

Interface: UseMaterialColorFromImageOptions

Defined in: hooks/use-material-color-from-image/UseMaterialColorFromImageOptions.ts:5

Specified material color options like Variant, Contrast Level, etc.

const defaultOptions = {
variant: MaterialColor.Variant.TONAL_SPOT,

// 0 or MaterialColor.ContrastLevelPresets.DEFAULT
contrastLevel: 0,

// React Native app color scheme
isDark: Appearance.getColorScheme() == "dark",
}

Extends

Properties

errorPalette?

optional errorPalette?: string

Inherited from

UseMaterialColorInstance.errorPalette


neutralPalette?

optional neutralPalette?: string

Inherited from

UseMaterialColorInstance.neutralPalette


neutralVariantPalette?

optional neutralVariantPalette?: string

Inherited from

UseMaterialColorInstance.neutralVariantPalette


primaryPalette?

optional primaryPalette?: string

Inherited from

UseMaterialColorInstance.primaryPalette


secondaryPalette?

optional secondaryPalette?: string

Inherited from

UseMaterialColorInstance.secondaryPalette


tertiaryPalette?

optional tertiaryPalette?: string

Inherited from

UseMaterialColorInstance.tertiaryPalette