Units Types
The units types include definitions for the various units of measurement used in the framework, such as lengths, sizes, and other CSS-related values. These types help ensure that when specifying dimensions or spacing in component props, the values are valid and consistent with the design system.
WARNING
These are mostly template literal types, or may inherit from other TypeScript built-in types, so rather than listing all possible values, it's best to refer to the TypeScript documentation for template literal types and built-in types for a complete reference of possible values.
Layout Types
The layout types include definitions for the various units, elements, and more.
Type: TLayoutsNode
keyof HTMLElementTagNameMap
| keyof SVGElementTagNameMap
| keyof MathMLElementTagNameMapThe layout lengths type includes definitions for the various length values that can be used in the design system, such as calc(), var(), global values, numeric values, and specific CSS units. This type helps ensure that when specifying length-related props in components, the values are valid and consistent with the design system.
Type: TLayoutsLength
TLayoutsNumeric
| `${number}${TLayoutsUnits}`
| 'auto'Type: TLayoutsUnits
cap | ch | em | ex | ic | lh | vh | vw | vmax | vmin | vb | vi | cqw | cqh
| cqi | cqb | cqmin | cqmax | px | cm | mm | Q | in | pc | ptType: TLayoutsNumeric
TLayoutsBase | TLayoutsZeroType: TLayoutsBase
TLayoutsCalc | TLayoutsVar | TLayoutsGlobalType: TLayoutsCalc
calc(${string})Type: TLayoutsVar
var(--${string})Type: TLayoutsZero
0 | '0'Type: TLayoutsGlobal
'inherit' | 'initial' | 'revert' | 'revert-layer' | 'unset'Type: TLayoutsColour
TLayoutsVar | TLayoutsGlobal | stringType: TLayoutsLengthPercentage
TLayoutsNumeric | `${number}${TLayoutsUnits}` | `${number}%`Type: TLayoutsNumber
TLayoutsNumeric | number | `${number}`Type: TLayoutsPercentage
TLayoutsNumeric | `${number}%`