Skip to content

fix(docs): Tailwind Typography for proper prose spacing#30

Merged
ronaldtse merged 1 commit into
mainfrom
fix/docs-tailwind-prose
Jul 15, 2026
Merged

fix(docs): Tailwind Typography for proper prose spacing#30
ronaldtse merged 1 commit into
mainfrom
fix/docs-tailwind-prose

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

Docs pages used class=prose but the styles were dead — the old VitePress .vp-doc selectors no longer applied to anything. Paragraphs, lists, headings, and tables all lacked margins.

Install @tailwindcss/typography, load via @plugin in global.css. Customize the .prose class with Edoxen brand tokens (--tw-prose-body, --tw-prose-headings, --tw-prose-links, etc.). Restore the display-serif headings, inline code tinting, editorial table design, and blockquote styling. Remove all dead .vp-doc rules.

Test plan: vitest 187 passed / 3 skipped; build 51 pages; verified prose CSS (margins, headings, code, tables, blockquotes) present in compiled output.

Docs pages used class=prose but had no styles — the old VitePress .vp-doc selectors were dead code. Install @tailwindcss/typography, load via @plugin in global.css, and customize the .prose class with brand tokens (--tw-prose-body, --tw-prose-headings, etc). Restore the display-serif headings, inline code tinting, editorial table design, and blockquote styling that previously lived under .vp-doc. Remove all dead .vp-doc rules.
@ronaldtse
ronaldtse merged commit 2cb4d30 into main Jul 15, 2026
4 checks passed
@ronaldtse
ronaldtse deleted the fix/docs-tailwind-prose branch July 15, 2026 16:31
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