Skip to main content

CSSProcessorConfig

reexport

Fields#

absoluteBorderWidthsPixelMap#

required
absoluteBorderWidthsPixelMap: Record<CSSHardcodedBorderWidth, number>;

absoluteFontSizesPixelMap#

required
absoluteFontSizesPixelMap: Record<CSSAbsoluteHardcodedFontSize, number>;

absoluteLengthUnitsMultiplicators#

required
absoluteLengthUnitsMultiplicators: CSSAbsoluteLengthUnitsMultiplicators;

inlinePropertiesBlacklist#

required
inlinePropertiesBlacklist: CSSPropertyNameList;

Ignore those properties when compiling inline styles. The names should be camelCased.

Remarks

As of this version, inline styles are considered 100% safe and predictable, thus this property is generally not advised.

inlinePropertiesWhitelist#

required
inlinePropertiesWhitelist: null | CSSPropertyNameList;

Allow those properties when compiling inline styles. The names should be camelCased.

Remarks

When present, inlinePropertiesBlacklist will be ignored.

relativeFontSizesCoefficientMap#

required
relativeFontSizesCoefficientMap: Record<CSSRelativeHarcodedFontSize, number>;

rootFontSize#

required
rootFontSize: number;

Font size used to compute REM.

Methods#

isFontSupported#

required
isFontSupported: (fontName: string) => string | boolean;

Determine is the provided font is supported on running platform.

Parameters#

fontName

The name of the font to validate. Any quotes have been removed.