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