fui-fancyui
Version:
FancyUI Libary
18 lines (17 loc) • 846 B
TypeScript
import { CSSProp } from 'styled-components';
import { TypographyList } from './Typography.style';
import { TLayer } from '../../../types/TLayer';
import { TUiColorsNotTransparent } from '../../../types/TUiColorsNotTransparent';
import { typography } from '../../../design/theme/designSizes';
import { TgenerateFontVariants } from './utils/TypographyStyleVariants';
import { TTypographyVariants } from '../../../types/TTypographyVariants';
export type TTypography = {
elType?: keyof typeof TypographyList;
variant: TTypographyVariants;
externalStyle?: CSSProp;
htmlFor?: string;
themeType?: TUiColorsNotTransparent;
textAlign?: 'left' | 'center' | 'right';
layer?: TLayer;
} & Omit<React.HTMLAttributes<HTMLElement>, 'style'> & Omit<TgenerateFontVariants, 'themeFonts'>;
export type TTypographyObj = typeof typography;