fix(web): enable @tailwindcss/typography for docs prose styling#80
Merged
Conversation
The docs layout used classes but @tailwindcss/typography was not installed, so all docs pages rendered as unstyled HTML (browser-default headings, code blocks, tables, lists). - Install @tailwindcss/typography as devDep - Register plugin via @plugin in globals.css (Tailwind v4 syntax) - Remove hardcoded Arial font-family from body (was overriding Geist)
|
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
The docs pages (
/docs,/docs/quickstart,/docs/glossary, etc.) rendered asunstyled HTML — raw headings, code blocks, tables, and lists with browser defaults
only.
Root cause: The docs layout already used
prose prose-neutral dark:prose-invertclasses (Tailwind Typography), but the
@tailwindcss/typographyplugin was neverinstalled or registered. Without it,
proseis a no-op class.Secondary issue:
globals.csshardcodedfont-family: Arial, Helvetica, sans-serifon
body, overriding the Geist font loaded vianext/fontinlayout.tsx. The entiresite was rendering in Arial instead of Geist.
Changes
apps/web/package.json— added@tailwindcss/typographyas devDependencyapps/web/src/app/globals.css— registered@plugin '@tailwindcss/typography'(Tailwind v4 CSS-based config), removed the Arial
font-familyoverride frombodypnpm-lock.yaml— lockfile updatedNo changes to any page, layout, or component code. The fix is purely infrastructural.
Verification
pnpm build— passes, all 12 static pages generatedpnpm lint— passespnpm format:check— passespnpm typecheck— passespnpm test— 295 tests passpnpm test:e2e— 16 Playwright tests passVisual verification via dev server confirmed: