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