}
diff --git a/src/site/globals.css b/src/site/globals.css
index 9803be2a..fefddffb 100644
--- a/src/site/globals.css
+++ b/src/site/globals.css
@@ -116,7 +116,7 @@
hover:text-gray-600
hover:dark:text-gray-400
}
- /* Common Utilities: Text */
+ /* Utilities: Text */
.text-main {
@apply
text-gray-900 dark:text-gray-100
@@ -145,7 +145,7 @@
@apply
text-red-500 dark:text-red-400
}
- /* Common Utilities: Background */
+ /* Utilities: Background */
.bg-main {
@apply
bg-white dark:bg-black
@@ -159,4 +159,22 @@
@apply
bg-gray-900 dark:bg-gray-100
}
+ /* Utilities: Baseline Grid */
+ .space-y-baseline {
+ @apply
+ space-y-[1.125rem] md:space-y-[1.25rem]
+ }
+ .gap-y-baseline {
+ @apply
+ gap-y-[1.125rem] md:gap-y-[1.25rem]
+ }
+ .gap-baseline {
+ @apply
+ gap-[1.125rem] md:gap-[1.25rem]
+ }
+ .debug-baseline-grid {
+ @apply
+ bg-[repeating-linear-gradient(to_bottom,#222,#222_1px,transparent_1px,transparent_1.125rem)]
+ md:bg-[repeating-linear-gradient(to_bottom,#222,#222_1px,transparent_1px,transparent_1.25rem)]
+ }
}
diff --git a/src/tag/FavsTag.tsx b/src/tag/FavsTag.tsx
index 5496a276..65fc5d8e 100644
--- a/src/tag/FavsTag.tsx
+++ b/src/tag/FavsTag.tsx
@@ -1,8 +1,10 @@
import { FaStar } from 'react-icons/fa';
-import EntityLink, { EntityLinkExternalProps } from '@/components/EntityLink';
import { TAG_FAVS } from '.';
import { pathForTag } from '@/site/paths';
import { clsx } from 'clsx/lite';
+import EntityLink, {
+ EntityLinkExternalProps,
+} from '@/components/primitives/EntityLink';
export default function FavsTag({
type,
@@ -30,7 +32,7 @@ export default function FavsTag({
size={12}
className={clsx(
'text-amber-500',
- 'translate-x-[-1px] translate-y-[3.5px]',
+ 'translate-x-[-1px] translate-y-[-0.5px]',
)}
/>}
type={type}
diff --git a/src/tag/PhotoTag.tsx b/src/tag/PhotoTag.tsx
index 56fab6a6..0c1e4546 100644
--- a/src/tag/PhotoTag.tsx
+++ b/src/tag/PhotoTag.tsx
@@ -1,7 +1,9 @@
import { pathForTag } from '@/site/paths';
import { FaTag } from 'react-icons/fa';
import { formatTag } from '.';
-import EntityLink, { EntityLinkExternalProps } from '@/components/EntityLink';
+import EntityLink, {
+ EntityLinkExternalProps,
+} from '@/components/primitives/EntityLink';
export default function PhotoTag({
tag,
@@ -19,7 +21,7 @@ export default function PhotoTag({
href={pathForTag(tag)}
icon={
}
type={type}
badged={badged}
diff --git a/src/tag/PhotoTags.tsx b/src/tag/PhotoTags.tsx
index ef48121e..6eec2af3 100644
--- a/src/tag/PhotoTags.tsx
+++ b/src/tag/PhotoTags.tsx
@@ -1,7 +1,7 @@
import PhotoTag from '@/tag/PhotoTag';
import { isTagFavs } from '.';
import FavsTag from './FavsTag';
-import { EntityLinkExternalProps } from '@/components/EntityLink';
+import { EntityLinkExternalProps } from '@/components/primitives/EntityLink';
export default function PhotoTags({
tags,
@@ -10,13 +10,13 @@ export default function PhotoTags({
tags: string[]
} & EntityLinkExternalProps) {
return (
-
+
{tags.map(tag =>
-
+ <>
{isTagFavs(tag)
- ?
- :
}
-
)}
+ ?
+ :
}
+ >)}
);
}
diff --git a/tailwind.config.js b/tailwind.config.js
index 9816930c..b76c7276 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -12,13 +12,13 @@ module.exports = {
...defaultTheme.screens,
},
fontSize: {
- 'xs': '0.75rem',
- 'sm': ['0.825rem', '1.15rem'],
- 'base': ['0.875rem', '1.275rem'],
- 'lg': ['0.925rem', '1.05rem'],
- 'xl': '1rem',
- '2xl': '1.1rem',
- '3xl': ['1.3rem', '1.7rem'],
+ 'xs': ['0.75rem', '1rem'], // 12px on 16px
+ 'sm': ['0.8125rem', '1.125rem'], // 13px on 18px [Default: mobile]
+ 'base': ['0.875rem', '1.25rem'], // 14px on 20px [Default: desktop]
+ 'lg': ['1rem', '1.25rem'], // 16px on 20px
+ 'xl': ['1.125rem', '1.25rem'], // 18px on 20px
+ '2xl': ['1.25rem', '1.25rem'], // 20px on 20px
+ '3xl': ['1.5rem', '1.5rem'], // 24px on 24px
},
extend: {
fontFamily: {