Skip to content

fix(web): enable @tailwindcss/typography for docs prose styling#80

Merged
sepehr-safari merged 1 commit into
mainfrom
fix/web-docs-styling
Jul 8, 2026
Merged

fix(web): enable @tailwindcss/typography for docs prose styling#80
sepehr-safari merged 1 commit into
mainfrom
fix/web-docs-styling

Conversation

@sepehr-safari

Copy link
Copy Markdown
Member

Summary

The docs pages (/docs, /docs/quickstart, /docs/glossary, etc.) rendered as
unstyled HTML — raw headings, code blocks, tables, and lists with browser defaults
only.

Root cause: The docs layout already used prose prose-neutral dark:prose-invert
classes (Tailwind Typography), but the @tailwindcss/typography plugin was never
installed or registered. Without it, prose is a no-op class.

Secondary issue: globals.css hardcoded font-family: Arial, Helvetica, sans-serif
on body, overriding the Geist font loaded via next/font in layout.tsx. The entire
site was rendering in Arial instead of Geist.

Changes

  • apps/web/package.json — added @tailwindcss/typography as devDependency
  • apps/web/src/app/globals.css — registered @plugin '@tailwindcss/typography'
    (Tailwind v4 CSS-based config), removed the Arial font-family override from body
  • pnpm-lock.yaml — lockfile updated

No changes to any page, layout, or component code. The fix is purely infrastructural.

Verification

  • pnpm build — passes, all 12 static pages generated
  • pnpm lint — passes
  • pnpm format:check — passes
  • pnpm typecheck — passes
  • pnpm test — 295 tests pass
  • pnpm test:e2e — 16 Playwright tests pass

Visual verification via dev server confirmed:

  • H1: 36px, weight 800, proper margins
  • Code blocks: dark background, padding, border-radius, Geist Mono
  • Body font: Geist (not Arial)

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)
@vercel

vercel Bot commented Jul 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ocpp-debugkit-web Ready Ready Preview, Comment Jul 8, 2026 9:29pm

@sepehr-safari sepehr-safari merged commit ada4aae into main Jul 8, 2026
4 checks passed
@sepehr-safari sepehr-safari deleted the fix/web-docs-styling branch July 8, 2026 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant