Upgrade to Tailwind CSS v4 and modernize dependencies#12
Open
dsnsgithub wants to merge 1 commit into
Open
Conversation
- Upgrade astro 5 -> 7 with @astrojs/mdx 7, @astrojs/react 6, @astrojs/vercel 11 - Migrate content collections to the Content Layer API (src/content.config.ts with glob loader, post.id instead of post.slug, render(post)) - Replace <ViewTransitions /> with <ClientRouter /> - Migrate Tailwind 3 -> 4: drop @astrojs/tailwind + tailwind.config.mjs in favor of @tailwindcss/vite and CSS-first config in src/styles/global.css (viola palette, DM Sans, typography + scrollbar plugins, v3 border-color compatibility base style) - Rename v3 utilities to their v4 names (shadow->shadow-sm, rounded->rounded-sm, shadow-sm->shadow-xs, outline-none->outline-hidden, bg-gradient-to-*-> bg-linear-to-*, flex-grow->grow, flex-shrink-0->shrink-0) - Upgrade react to 19 (type children as ReactNode; global JSX namespace removed) - Replace the @octokit/openapi-types fork override with the official @octokit/webhooks-types package for activity event payload types - Update all remaining dependencies to latest (sharp 0.35, jspdf 4.2, bluesky-comments 0.13, react-tooltip 6, prettier-plugin-tailwindcss 0.8, etc.) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012ATokcuH5Lxx9AzHTeREW1
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
This PR upgrades the project to Tailwind CSS v4 with the new
@tailwindcss/viteplugin, modernizes core dependencies (React 19, Astro 7, TypeScript 6), and refactors the configuration to use Tailwind's new theming system.Key Changes
Tailwind CSS v4 Migration
tailwind.config.mjsand migrated configuration tosrc/styles/global.cssusing new@themedirective@astrojs/tailwindintegration with@tailwindcss/viteplugin inastro.config.mjsflex-shrink-0→shrink-0flex-grow→growfocus:outline-none→focus:outline-hiddenrounded→rounded-sm(for smaller elements)shadow→shadow-sm(for lighter shadows)Dependency Updates
Content Collection API Updates
src/content.config.tsto use newglobloader andastro/zodimportspost.slugtopost.idin[...slug].astroandindex.astrorender()function call to use new API in blog post templateGitHub Types Refactoring
@octokit/openapi-typesoverride with official@octokit/webhooks-typespackagesrc/types/GitHub.tsto import event types directly from@octokit/webhooks-typesinstead of OpenAPI schemasoverridesfield frompackage.jsonLayout & Router Changes
ViewTransitionswithClientRouterinLayout.astrosrc/styles/global.cssfor Tailwind v4 configurationComponent Updates
ReactNodeinstead ofJSX.Elementfor better flexibilityhttps://claude.ai/code/session_012ATokcuH5Lxx9AzHTeREW1