refactor: replace arbitrary sizes in labelSizeConfig with named tokens
This commit is contained in:
@@ -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> = {
|
||||||
|
|||||||
Reference in New Issue
Block a user