refactor: replace arbitrary sizes in labelSizeConfig with named tokens

This commit is contained in:
Ilia Mashkov
2026-04-17 09:40:53 +03:00
parent 7f0d2b54e0
commit 64b4a65e7b

View File

@@ -16,10 +16,10 @@ export type LabelVariant =
export type LabelSize = 'xs' | 'sm' | 'md' | 'lg';
export const labelSizeConfig: Record<LabelSize, string> = {
xs: 'text-[0.5rem]',
sm: 'text-[0.5625rem] md:text-[0.625rem]',
md: 'text-[0.625rem] md:text-[0.6875rem]',
lg: 'text-[0.8rem] md:text-[0.875rem]',
xs: 'text-4xs',
sm: 'text-3xs md:text-2xs',
md: 'text-2xs md:text-xs',
lg: 'text-sm',
};
export const labelVariantConfig: Record<LabelVariant, string> = {