@artsy/palette-tokens
Version:
The design tokens for Artsy's palette
17 lines (16 loc) • 622 B
TypeScript
export interface TextTreatment {
fontSize: string;
lineHeight: string;
letterSpacing?: string;
fontWeight?: "normal" | "bold";
}
/** Available fonts */
export declare const TEXT_FONTS: {
sans: string;
};
/** Available text variant names */
export declare const TEXT_VARIANT_NAMES: readonly ["xxxl", "xxl", "xl", "lg", "lg-display", "md", "sm", "sm-display", "xs", "xxs", "bq"];
/** Available text variants */
export declare const TEXT_VARIANTS: Record<typeof TEXT_VARIANT_NAMES[number], TextTreatment>;
/** Name of typographic treatment */
export declare type TextVariant = keyof typeof TEXT_VARIANTS;