UNPKG

@mui/system

Version:

MUI System is a set of CSS utilities to help you build custom designs more efficiently. It makes it possible to rapidly lay out custom designs.

4 lines 352 B
type RecordPropertyNames<T> = { [K in keyof T]: T[K] extends Function ? never : T[K] extends Record<string, any> ? K : never }[keyof T]; export type ExtractTypographyTokens<T> = { [K in RecordPropertyNames<T>]: string }; export default function prepareTypographyVars<T extends Record<string, any>>(typography: T): ExtractTypographyTokens<T>; export {};