Allows having CSS variables and constants that accept a "ratio"
CSS value
Allows having CSS variables and constants that accept a "frequency"
CSS value
Allows having CSS variables and constants that accept multiple "multi-position"
CSS values
Allows having CSS variables and constants that accept a "point"
value
Allows having CSS variables and constants that accept a "position"
CSS value
Allows having CSS variables and constants that accept a "radius"
CSS value
Allows having CSS variables and constants that accept a "size"
value
Allows having CSS variables and constants that accept a "string"
value
Allows having CSS variables and constants that accept value of any type
The
ICustomTypeStyleset
interface maps template names to the types, which can be used for defining custom CSS properties (a.k.a. variables). Normally, variables are defined using the names of the style properties and their type is determined by the type of this property in the IStyleset interface. Sometimes, however, there is a need to define variables of some other types, for which there is no suitable style property. TheICustomTypeStyleset
interface provides many basic types and it can also be extended using the TypeScript's module augmentation.