LiftKit for TypeScript uses types to enforce correct values and formatting for tokens and config objects passed as props.
Certain components may define local types when their interpretation of something global differs in a significant way. For example, the Section
component redefines spacing because "xs
" in reference to Section
spacing is a different computed value than the "xs
" from the globally-defined LkSizeUnit
.
Defined globally under /lib/types
.
Types defined local to a specific component or other utility file.