Refine baseline type sizes
This commit is contained in:
parent
9b1b941755
commit
fa53e7ece3
@ -52,7 +52,7 @@ export default function ComponentsPage() {
|
|||||||
<div
|
<div
|
||||||
className={clsx(
|
className={clsx(
|
||||||
'flex gap-8',
|
'flex gap-8',
|
||||||
debugGrid && 'debug-baseline-grid'
|
debugGrid && 'bg-baseline-grid'
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div className="[&>*]:flex">
|
<div className="[&>*]:flex">
|
||||||
|
|||||||
@ -27,8 +27,8 @@ export default function Badge({
|
|||||||
);
|
);
|
||||||
case 'small':
|
case 'small':
|
||||||
return clsx(
|
return clsx(
|
||||||
'px-[4px] py-[2.5px]',
|
'h-max-baseline',
|
||||||
'md:px-[4.5px] md:py-[3px]',
|
'px-[5px] py-[2.75px]',
|
||||||
'text-[0.7rem] font-medium rounded-[0.25rem]',
|
'text-[0.7rem] font-medium rounded-[0.25rem]',
|
||||||
highContrast
|
highContrast
|
||||||
? 'text-invert bg-invert'
|
? 'text-invert bg-invert'
|
||||||
@ -44,7 +44,7 @@ export default function Badge({
|
|||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<span className={clsx(
|
<span className={clsx(
|
||||||
'leading-none inline-flex',
|
'leading-none',
|
||||||
stylesForType(),
|
stylesForType(),
|
||||||
uppercase && 'uppercase tracking-wider',
|
uppercase && 'uppercase tracking-wider',
|
||||||
className,
|
className,
|
||||||
|
|||||||
@ -110,9 +110,8 @@ export default function OGTile({
|
|||||||
/>}
|
/>}
|
||||||
</div>
|
</div>
|
||||||
<div className={clsx(
|
<div className={clsx(
|
||||||
'md:text-lg',
|
'font-sans leading-tight',
|
||||||
'flex flex-col gap-1 p-3',
|
'flex flex-col gap-1 p-3',
|
||||||
'font-sans leading-none',
|
|
||||||
'bg-gray-50 dark:bg-gray-900/50',
|
'bg-gray-50 dark:bg-gray-900/50',
|
||||||
'group-active:bg-gray-50 group-active:dark:bg-gray-900/50',
|
'group-active:bg-gray-50 group-active:dark:bg-gray-900/50',
|
||||||
'group-hover:bg-gray-100 group-hover:dark:bg-gray-900/70',
|
'group-hover:bg-gray-100 group-hover:dark:bg-gray-900/70',
|
||||||
|
|||||||
@ -24,7 +24,7 @@ export default function ShareModal({
|
|||||||
<div className="space-y-3 md:space-y-4 w-full">
|
<div className="space-y-3 md:space-y-4 w-full">
|
||||||
<div className={clsx(
|
<div className={clsx(
|
||||||
'flex items-center gap-x-3',
|
'flex items-center gap-x-3',
|
||||||
'text-xl md:text-3xl leading-snug',
|
'text-2xl leading-snug',
|
||||||
)}>
|
)}>
|
||||||
<TbPhotoShare size={22} className="hidden xs:block" />
|
<TbPhotoShare size={22} className="hidden xs:block" />
|
||||||
<div className="flex-grow">
|
<div className="flex-grow">
|
||||||
|
|||||||
@ -23,10 +23,7 @@ export default function PhotoFilmSimulation({
|
|||||||
label={medium}
|
label={medium}
|
||||||
labelSmall={small}
|
labelSmall={small}
|
||||||
href={pathForFilmSimulation(simulation)}
|
href={pathForFilmSimulation(simulation)}
|
||||||
icon={<PhotoFilmSimulationIcon
|
icon={<PhotoFilmSimulationIcon simulation={simulation} />}
|
||||||
simulation={simulation}
|
|
||||||
className="translate-y-[-0.5px]"
|
|
||||||
/>}
|
|
||||||
title={`Film Simulation: ${large}`}
|
title={`Film Simulation: ${large}`}
|
||||||
type={type}
|
type={type}
|
||||||
badged={badged}
|
badged={badged}
|
||||||
|
|||||||
@ -57,7 +57,6 @@ export default function NavClient({
|
|||||||
className={clsx(
|
className={clsx(
|
||||||
'flex items-center',
|
'flex items-center',
|
||||||
'w-full min-h-[4rem]',
|
'w-full min-h-[4rem]',
|
||||||
'leading-none',
|
|
||||||
)}>
|
)}>
|
||||||
<div className="flex-grow">
|
<div className="flex-grow">
|
||||||
<ViewSwitcher
|
<ViewSwitcher
|
||||||
|
|||||||
@ -162,21 +162,25 @@
|
|||||||
/* Utilities: Baseline Grid */
|
/* Utilities: Baseline Grid */
|
||||||
.space-y-baseline {
|
.space-y-baseline {
|
||||||
@apply
|
@apply
|
||||||
space-y-[1.125rem] md:space-y-[1.25rem]
|
space-y-[1.1875rem] md:space-y-[1.25rem]
|
||||||
}
|
}
|
||||||
.gap-y-baseline {
|
.gap-y-baseline {
|
||||||
@apply
|
@apply
|
||||||
gap-y-[1.125rem] md:gap-y-[1.25rem]
|
gap-y-[1.1875rem] md:gap-y-[1.25rem]
|
||||||
}
|
}
|
||||||
.gap-baseline {
|
.gap-baseline {
|
||||||
@apply
|
@apply
|
||||||
gap-[1.125rem] md:gap-[1.25rem]
|
gap-[1.1875rem] md:gap-[1.25rem]
|
||||||
}
|
}
|
||||||
.debug-baseline-grid {
|
.max-h-baseline {
|
||||||
@apply
|
@apply
|
||||||
bg-[repeating-linear-gradient(to_bottom,#eee,#eee_1px,transparent_1px,transparent_1.125rem)]
|
max-h-[1.1875rem] md:max-h-[1.25rem]
|
||||||
|
}
|
||||||
|
.bg-baseline-grid {
|
||||||
|
@apply
|
||||||
|
bg-[repeating-linear-gradient(to_bottom,#eee,#eee_1px,transparent_1px,transparent_1.1875rem)]
|
||||||
md:bg-[repeating-linear-gradient(to_bottom,#eee,#eee_1px,transparent_1px,transparent_1.25rem)]
|
md:bg-[repeating-linear-gradient(to_bottom,#eee,#eee_1px,transparent_1px,transparent_1.25rem)]
|
||||||
dark:bg-[repeating-linear-gradient(to_bottom,#222,#222_1px,transparent_1px,transparent_1.125rem)]
|
dark:bg-[repeating-linear-gradient(to_bottom,#222,#222_1px,transparent_1px,transparent_1.1875rem)]
|
||||||
dark:md:bg-[repeating-linear-gradient(to_bottom,#222,#222_1px,transparent_1px,transparent_1.25rem)]
|
dark:md:bg-[repeating-linear-gradient(to_bottom,#222,#222_1px,transparent_1px,transparent_1.25rem)]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12,13 +12,13 @@ module.exports = {
|
|||||||
...defaultTheme.screens,
|
...defaultTheme.screens,
|
||||||
},
|
},
|
||||||
fontSize: {
|
fontSize: {
|
||||||
'xs': ['0.75rem', '1rem'], // 12px on 16px
|
'xs': ['0.75rem', '1rem'], // 12px on 16px
|
||||||
'sm': ['0.8125rem', '1.125rem'], // 13px on 18px [Default: mobile]
|
'sm': ['0.84375rem', '1.1875rem'], // 13.5px on 19px [Default: mobile]
|
||||||
'base': ['0.875rem', '1.25rem'], // 14px on 20px [Default: desktop]
|
'base': ['0.875rem', '1.25rem'], // 14px on 20px [Default: desktop]
|
||||||
'lg': ['1rem', '1.25rem'], // 16px on 20px
|
'lg': ['1rem', '1.25rem'], // 16px on 20px
|
||||||
'xl': ['1.125rem', '1.25rem'], // 18px on 20px
|
'xl': ['1.125rem', '1.25rem'], // 18px on 20px
|
||||||
'2xl': ['1.25rem', '1.25rem'], // 20px on 20px
|
'2xl': ['1.25rem', '1.25rem'], // 20px on 20px
|
||||||
'3xl': ['1.5rem', '1.5rem'], // 24px on 24px
|
'3xl': ['1.5rem', '1.5rem'], // 24px on 24px
|
||||||
},
|
},
|
||||||
extend: {
|
extend: {
|
||||||
fontFamily: {
|
fontFamily: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user