feat: upgrade from Tailwind v3 to v4

See Tailwind v4 breaking changes: https://tailwindcss.com/docs/upgrade-guide
See Hugo's new integration with Tailwind v4: https://gohugo.io/functions/css/tailwindcss/

Close #3211
This commit is contained in:
George Cushen committed 2025-08-17 20:58:14 +01:00
1 parent 1525b21059
commit 7722abcd66
61 files changed
+4607 -1458

No files matched your search

@@ -0,0 +1,54 @@
/* Base styles for better text rendering */
@layer base {
html {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
body {
line-height: 1.5;
}
}
/* Custom utilities and components */
@utility task-list {
list-style: none;
padding-left: 1.5rem;
}
/* Custom typography styles - the plugin handles the base styles */
/* Additional customization for prose elements */
@layer components {
.prose a {
text-decoration: underline;
text-decoration-color: rgb(var(--color-primary-300));
font-weight: 500;
}
.prose a:hover {
color: rgb(var(--color-primary-600));
text-decoration: none;
border-radius: 0.09rem;
}
.prose mark {
color: rgb(var(--color-neutral-900));
background-color: rgb(var(--color-primary-200));
padding: 0.1rem 0.2rem;
border-radius: 0.25rem;
}
.dark .prose-invert a {
text-decoration-color: rgb(var(--color-neutral-500));
}
.dark .prose-invert a:hover {
color: rgb(var(--color-primary-300));
}
.dark .prose-invert mark {
background-color: rgb(var(--color-primary-400));
color: black;
}
}