@sinchsmb/ui-kit
Version:
UI kit for SinchSMB frontend
15 lines (14 loc) • 428 B
TypeScript
import { PropsWithTheme, TypographyToken, TypographyTokenRef } from './types';
/**
* Returns font that can be used inside styled-component.
*
* ```tsx
* import styled from 'styled-components/macro';
* import { font } from '../theme';
*
* const StyledDiv = styled.div`
* ${typography('caption')}
* `;
* ```
*/
export declare function typography(name: TypographyTokenRef): (props: PropsWithTheme) => TypographyToken;