UNPKG

@baleada/tailwind-linear-numeric

Version:

A linear numeric naming convention for Tailwind's default configuration.

14 lines (12 loc) 857 B
declare type LinearNumeric<Only extends string | string[]> = Only extends string ? { [suffix: string]: string; } : Partial<Record<Incrementable, { [suffix: string]: string; }>>; declare type Incrementable = 'colors' | 'spacing' | 'blur' | 'borderRadius' | 'borderWidth' | 'boxShadow' | 'dropShadow' | 'flexGrow' | 'flexShrink' | 'fontSize' | 'fontWeight' | 'letterSpacing' | 'lineHeight' | 'maxWidth' | 'outlineOffset' | 'outlineWidth' | 'ringOffsetWidth' | 'ringWidth' | 'textDecorationThickness' | 'textUnderlineOffset' | 'transitionDuration' | 'transitionDelay'; declare type Options<Only extends string | string[]> = { increment?: number; only?: Only; }; declare function getLinearNumeric<Only extends string | string[]>(options?: Options<Only>): LinearNumeric<Only>; export { Incrementable, LinearNumeric, Options, getLinearNumeric };