Repository navigation
refactor(web): one Tailwind sheet, scanned from the routes' imports, inside each page CU-17tkuw617h7 - #737
Merged
Conversation
…es import content is the lib's appStyleSources over src/app, not every file under src plus the design-system lib's whole dist. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
Contributor
🦩 Flamingo Code Review✅ Tests and checks passed on this commit (6 lanes). ✅ No findings on the current head. Advisory: findings do not block the merge.
✅ What this change does well
1 possible problem checked and ruled out, 1 after reading more of the repository
🧪 Tests and mutationTests per lane
Checks
flamingo-stack/openframe-oss-lib#2855 was not built first: none of this change's toolchains says how to install it. 1 gap (not tested here):
Review again. New commits are not reviewed until you ask:
Or comment Started 2026-10-29 13:17 UTC · updated 2026-10-29 13:19 UTC · workflow run |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… one Tailwind sheet, and its budget withInlineStyles (the lib's next-styles) writes the route's CSS into its HTML, the static export included, so a page paints without a second request. globals.css no longer repeats the @tailwind directives the library's styles carry: each imported file is its own chunk, so the app shipped two full Tailwind sheets (607 KB inlined, now 326 KB). npm run css:budget:check holds the sheet under 35,000 bytes brotli. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
michaelassraf
commented
Oct 29, 2026
…-styles command Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-17tkuw617h7 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rder CU-17tkuw617h7 - .nvmrc, the Dockerfile (node:26.13.0-alpine3.24), @types/node 26.6.6 and the docs move to Node 26. - vitest 5: Node 25+ defines its own localStorage on the global object, and vitest 4 left it in place of jsdom's, so every test that used storage failed on Node 26. vitest 5 puts jsdom's in. - api-client, session-poll and session-revalidation tests imported two modules in parallel right after vi.resetModules(); under load each import could evaluate its own copy of the shared module, so a test read a store the code under test never wrote. They load in order now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
michaelassraf
commented
Oct 29, 2026
…617h7 tailwindcss-animate was listed twice: the preset already carries it, and the package comes with the library. The app keeps no safelist of its own, which would replace the preset's. Co-Authored-By: Claude Opus 5.5 <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.
What
apps/web/tailwind.config.ts:contentis the lib'sappStyleSources({ root: __dirname, appDir: 'src/app' }), the files the app's routes import (its own and the design-system lib's per-module build), instead of every file undersrcplus the lib's wholedist. Tailwind then writes rules only for classes something on a page can render.No
firstPaintsplit here: the app does not passloadStyles, so its one stylesheet keeps every class it imports, the chat included.Before merging
Needs the lib release carrying
style-sourcesandnext-styles(the PR below), and this app's lib pin moved to it.Not run locally
The pre-commit hook (eslint, prettier, tsc in
apps/web) needsnode_modules, which this worktree has none of; the commit skipped it. CI runs the same checks.Also: the stylesheet inside each page's HTML, one Tailwind sheet, and its budget
next.config.mjswraps the config in the lib'swithInlineStyles: the route's CSS is written into its HTML, the static export included (checked: no stylesheet links left indist/*.html).globals.cssno longer repeats@tailwind base/components/utilities. The library's styles already carry them, and Turbopack builds each imported CSS file as its own chunk, so the app shipped two full Tailwind sheets. Inlined CSS per page: 607 KB → 326 KB raw. Computed styles of all 52 visible elements on/authare identical before and after.npm run css:budget:check(the lib'sbudgetcommand, 35,000 bytes brotli; today 31.8 KB) runs in CI's Unit Test job, after codegen.apps/web/CLAUDE.mdstates the rule.Change-Set: refactor-per-page-css
Depends-On: flamingo-stack/openframe-oss-lib#2855
ClickUp task: CU-17tkuw617h7 Refactor all CSS so every page ships only the styles it uses, by default
🤖 Generated with Claude Code
Change set
flamingo-stack/openframe-oss-frontend#737: these pull requests are one change, reviewed together.Linked work
Linked by the
Depends-On/Change-Setlines in these descriptions; this block is maintained by the hub.