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:
@@ -25,13 +25,13 @@ const SelectOptionContainer = forwardRef<HTMLDivElement, SelectOptionProps>(
|
||||
const getTextSize = (): string => {
|
||||
switch (size) {
|
||||
case "small":
|
||||
return "text-[10px] leading-[14px]";
|
||||
return "text-xx-small-paragraph";
|
||||
case "medium":
|
||||
return "text-[14px] leading-[20px]";
|
||||
return "text-small-paragraph";
|
||||
case "large":
|
||||
return "text-[16px] leading-[24px]";
|
||||
return "text-medium-paragraph";
|
||||
default:
|
||||
return "text-[14px] leading-[20px]";
|
||||
return "text-small-paragraph";
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user