import { Config, system } from 'styled-system'; import type { ResponsiveValue } from './responsiveValue'; import type * as CSS from 'csstype'; const config: Config = { wordBreak: true, overflowWrap: true, textOverflow: true, textTransform: true, whiteSpace: true, textDecoration: true, txtDecor: { property: 'textDecoration' }, textDecorationLine: { property: 'textDecorationLine' }, }; /** * Types for typography related CSS properties */ export interface customTypographyProps { /** * The CSS `word-break` property */ wordBreak?: ResponsiveValue; /** * The CSS `overflow-wrap` property */ overflowWrap?: ResponsiveValue; /** * The CSS `text-overflow` property */ textOverflow?: ResponsiveValue; /** * The CSS `text-transform` property */ textTransform?: ResponsiveValue; /** * The CSS `white-space` property */ whiteSpace?: ResponsiveValue; /** * The CSS `text-decoration` property */ textDecoration?: ResponsiveValue; /** * The CSS `text-decoration` property */ txtDecor?: ResponsiveValue; /** * The CSS `text-decoration-line` property */ textDecorationLine?: ResponsiveValue; } export const customTypography = system(config);