import { StylinComponentProps } from '@stylin.js/react'; import { HTMLAttributes, RefAttributes } from 'react'; import { lightTheme } from '../../theme'; export type TypographyElementProps = Omit, 'color' | 'translate'> & RefAttributes; export interface TypographyProps extends StylinComponentProps, TypographyElementProps { as?: keyof JSX.IntrinsicElements; variant: keyof (typeof lightTheme)['typography']; }