Skip to main content

Interface: MaterialColorOptions

Defined in: modules/material-color/MaterialColorOptions.ts:30

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​

  • Options.Partial<Record<keyof MaterialColorPalettes, string>>

Extended by​

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