Repository navigation
build(deps): move to Tailwind CSS 4 - #377
Merged
Merged
Conversation
Tailwind 4 is configured in CSS: the tokens map into an @theme block in app/globals.css and tailwind.config.js is gone. The official upgrade tool renamed the classes whose meaning moved (shadow-sm to shadow-xs, outline-none to outline-hidden, ring to ring-3, !x to x!, ...); its false positives in plain strings (graph shapes, the NSFW "blur" setting) are left as they were. tailwind-merge moves to 3, which needs Tailwind 4. Utilities stay outside cascade layers: BlockSuite, the notes editor, adds unlayered global rules such as `input { font-size: 12px }` to the page, and in Tailwind 4's layered build those beat every class, which shrank a note's title to 12 px. Unlayered, a class beats an element rule again, as it did in Tailwind 3. Preflight no longer gives buttons a pointer cursor or placeholders a light grey, so the base layer keeps both. The postcss-selector-parser 6 override goes, as nothing asks for that major any more. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GoeF3WmfShLFtu15B1sQZz
This was referenced Oct 15, 2026
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.
Requested by Adeel · project thread
Description
Before: Dependabot's Tailwind 4 bump (#251) and tailwind-merge 3 bump (#319) were red, because each needs the other plus a migration that a version bump can't do.
After: the web app runs on Tailwind CSS 4 and tailwind-merge 3, and looks the same. Every page the clicks survey visits was screenshotted on Tailwind 3 and on this branch, desktop and phone: same page heights and layout, with differences only in data (timestamps, the new NSFW pipeline step).
How:
@tailwindcss/upgrade) moved the config into CSS (@themeinapp/globals.css;tailwind.config.jsis gone) and renamed the classes whose meaning moved (shadow-smtoshadow-xs,outline-nonetooutline-hidden,ringtoring-3,!xtox!, ...). I re-ran it on current main to catch the code merged since, and left its false positives in plain strings (graph shape names, the NSFW"blur"setting) as they were.input { font-size: 12px }to the page; in Tailwind 4's layered build those beat every class, which shrank a note's title to 12 px. Unlayered, a class beats an element rule again, as in Tailwind 3. A test keeps it that way, anddocs/frontend.mdsays why.postcss-selector-parser@^6override goes, as nothing asks for that major any more;components.jsonpoints shadcn at the CSS config.Motivation and Context
Answering "all tests green?": this clears the last two red Dependabot PRs. Supersedes #251 and #319.
Screenshots (if appropriate):
Side-by-side diffs of every page (Tailwind 3, Tailwind 4, differences in red) were checked locally with the clicks survey harness; the note page's title is 30 px bold on both.
Types of changes
!in the title)Checklist:
make hookschecks it on commit).__tests__/globalsCss.test.ts; jest (803 tests), tsc, eslint, Prettier andnext buildpass locally.docs/accordingly (docs/frontend.md).Done questions (AGENTS.md)
🤖 Generated with Claude Code
https://claude.ai/code/session_01GoeF3WmfShLFtu15B1sQZz
Generated by Claude Code