refactor: replace px text sizes in Button, Loader, Footnote with named tokens

This commit is contained in:
Ilia Mashkov
2026-04-17 09:41:14 +03:00
parent 64b4a65e7b
commit 0737db69a9
3 changed files with 8 additions and 8 deletions

View File

@@ -150,11 +150,11 @@ const variantStyles: Record<ButtonVariant, string> = {
};
const sizeStyles: Record<ButtonSize, string> = {
xs: 'h-6 px-2 text-[9px] gap-1',
sm: 'h-8 px-3 text-[10px] gap-1.5',
md: 'h-10 px-4 text-[11px] gap-2',
lg: 'h-12 px-6 text-[12px] gap-2',
xl: 'h-14 px-8 text-[13px] gap-2.5',
xs: 'h-6 px-2 text-3xs gap-1',
sm: 'h-8 px-3 text-2xs gap-1.5',
md: 'h-10 px-4 text-xs gap-2',
lg: 'h-12 px-6 text-xs gap-2',
xl: 'h-14 px-8 text-sm gap-2.5',
};
// Square padding for icon-only mode