@patreon/studio
Version:
Patreon Studio Design System
13 lines (12 loc) • 718 B
TypeScript
import type { CustomTypographyBundle } from './types';
/**
* Generates a css template which can be used to style a custom typography bundle.
*
* This function requires that you define all the propeties of your typographic style
* completely. If you only need to change a few properties, use the `typeTokens` object
* to fill in the original, default values.
*
* @warning this should be only used as an escape hatch for when Text components
* and typography bundles are not capable of supporting the desired typography.
*/
export declare function cssForCustomText({ fontStack, fontSize, fontWeight, letterSpacing, lineHeight, fontWidth, }: CustomTypographyBundle): import("styled-components").RuleSet<object>;