@revenuecat/purchases-ui-js
Version:
Web components for Paywalls. Powered by RevenueCat
20 lines (19 loc) • 916 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
*/
export interface TextStyle {
fontSize: string;
lineHeight: string;
fontWeight: string;
letterSpacing?: string;
}
export type ScreenType = "mobile" | "desktop";
export type ScreenTextStyle = Record<TextStyleKey, TextStyle>;
export 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;