ITheme interface

Collection of theme values, which can be used to programatically style components.

Properties

disableGlobalClassNames

Disables global styles on Fabric components. This will prevent global overrides that might have been set by other Fabric users from applying to your components.

fonts

Font styles for different sizes.

isInverted

Indicates whether the theme is inverted.

palette

Color palette.

semanticColors

The collection of all semantic slots for colors used in themes.

Property Details

disableGlobalClassNames

Disables global styles on Fabric components. This will prevent global overrides that might have been set by other Fabric users from applying to your components.

disableGlobalClassNames: boolean;

Property Value

boolean

Remarks

This has a vary narrow use case and most likely should be avoided.

fonts

Font styles for different sizes.

fonts: IFontStyles;

Property Value

isInverted

Indicates whether the theme is inverted.

isInverted: boolean;

Property Value

boolean

palette

Color palette.

palette: IPalette;

Property Value

semanticColors

The collection of all semantic slots for colors used in themes.

semanticColors: ISemanticColors;

Property Value