Adopt remaining typography token classes (CR-24)
Map exact size/weight/line-height combos onto existing text-* utilities across cards, sections, navigation, modals, controls, and create-flow. Leave unmappable combos hardcoded for design review. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -106,11 +106,11 @@ const Button = memo<ButtonProps>(
|
||||
};
|
||||
|
||||
const fontStyles: Record<string, string> = {
|
||||
xsmall: "font-inter text-[10px] leading-[12px] font-medium tracking-[0%]",
|
||||
small: "font-inter text-[12px] leading-[14px] font-medium tracking-[0%]",
|
||||
medium: "font-inter text-[14px] leading-[16px] font-medium tracking-[0%]",
|
||||
large: "font-inter text-[16px] leading-[20px] font-medium tracking-[0%]",
|
||||
xlarge: "font-inter text-[24px] leading-[28px] font-normal tracking-[0%]",
|
||||
xsmall: "text-xx-small-label",
|
||||
small: "text-x-small-label",
|
||||
medium: "text-small-label",
|
||||
large: "text-medium-label",
|
||||
xlarge: "text-x-large-label",
|
||||
};
|
||||
|
||||
const variantStyles: Record<string, string> = {
|
||||
|
||||
Reference in New Issue
Block a user