chore: upgrade to Astro 6, Tailwind CSS v4, and latest packages#18
Open
ChrisLaRocque wants to merge 3 commits into
Open
chore: upgrade to Astro 6, Tailwind CSS v4, and latest packages#18ChrisLaRocque wants to merge 3 commits into
ChrisLaRocque wants to merge 3 commits into
Conversation
Major changes: - Astro 5.14.1 → 6.0.5 - @astrojs/mdx 4.3.6 → 5.0.1 - @astrojs/netlify 6.6.4 → 7.0.3 - Tailwind CSS 3.3.5 → 4.2.1 (major rewrite) - Replace @astrojs/tailwind with @tailwindcss/vite - octokit 3.1.2 → 5.0.5 - satori 0.4.0 → 0.25.0 - sharp 0.31.3 → 0.34.5 - tailwind-merge 2.0.0 → 3.5.0 - prettier 3.2.5 → 3.8.1 Migration details: - Content collections: migrate to Content Layer API with glob() loader - Move src/content/config.ts → src/content.config.ts - entry.slug → entry.id throughout - entry.render() → render(entry) from astro:content - Tailwind v4: move config from tailwind.config.cjs to CSS @theme - Add @import "tailwindcss" and @theme block to main.css - Add @variant dark for class-based dark mode - Add @reference "tailwindcss" to content.css for @apply support - Delete tailwind.config.cjs - Astro config: replace tailwind() integration with vite plugin Co-authored-by: astroexpert <astroexpert@miriad.systems>
✅ Deploy Preview for calm-rolypoly-59f26c ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
In Tailwind v4, unlayered author styles take precedence over @layer utilities regardless of specificity. The main > section h* rules were unlayered, so they overrode explicit text-size utility classes on individual elements (e.g. text-2xl on project/tech card h3s), forcing all of them to text-3xl. Wrapping in @layer components restores the expected cascade: utilities still win when explicitly applied. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Upgrades all Astro packages and dependencies to their latest versions. Build passes cleanly with all 70+ pages pre-rendering correctly.
Package Updates
astro@astrojs/mdx@astrojs/netlify@astrojs/partytown@astrojs/tailwind@tailwindcss/vitetailwindcssastro-expressive-codesharpsatorioctokittailwind-mergeprettierprettier-plugin-astroprettier-plugin-tailwindcssMigration Changes
Tailwind CSS v3 → v4
@astrojs/tailwindintegration andtailwind.config.cjs@tailwindcss/viteplugin toastro.config.mjs@themedirectives insrc/styles/main.css@variant darkfor class-based dark mode support@reference "tailwindcss"tosrc/styles/content.cssfor@applyresolutionContent Collections → Content Layer API (Astro 6)
src/content/config.ts→src/content.config.tsglob()loader fromastro/loadersto both collectionsentry.slug→entry.id,entry.render()→render(entry)fromastro:contentFiles Changed (14)
package.json/pnpm-lock.yamlastro.config.mjssrc/content.config.ts(new, replacessrc/content/config.ts)tailwind.config.cjs(deleted)src/styles/main.css/src/styles/content.csssrc/pages/index.astrosrc/pages/projects/[...slug].astro/[...slug].md.ts/index.astrosrc/pages/tech/[...slug].astro/index.astroutils/collections.ts