@revenuecat/purchases-ui-js
Version:
Web components for Paywalls. Powered by RevenueCat
19 lines (18 loc) • 803 B
TypeScript
/**
* All text styles get translated into --rc-text-<property_name> CSS variables.
* i.e., --rc-text-title1-font-size or --rc-text-title1-line-height
*/
interface TextStyle {
fontSize: string;
lineHeight: string;
fontWeight: string;
letterSpacing?: string;
}
type TextStyleKey = "heading2xl" | "headingXl" | "headingLg" | "headingMd" | "bodyBase" | "bodySmall" | "labelButton" | "labelDefault" | "captionDefault" | "captionLink";
export type TextStyles = Record<TextStyleKey, {
mobile: TextStyle;
desktop: TextStyle;
}>;
export declare const DEFAULT_FONT_FAMILY = "-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif";
export declare const DEFAULT_TEXT_STYLES: TextStyles;
export {};