Skip to content

feat: use prose-v3 typography styles#473

Merged
netchampfaris merged 1 commit intodevelopfrom
better-prose-styles
Apr 13, 2026
Merged

feat: use prose-v3 typography styles#473
netchampfaris merged 1 commit intodevelopfrom
better-prose-styles

Conversation

@netchampfaris
Copy link
Copy Markdown
Contributor

Summary

Switch all TextEditor instances from prose-sm to prose-v3.

What is prose-v3?

prose-v3 is a new Tailwind Typography modifier in frappe-ui that replaces prose-sm as the default editor style. See frappe-ui PR: frappe/frappe-ui#620

Key changes

  • Zero paragraph margins — users control spacing between paragraphs by pressing Enter. An empty paragraph ≈ 20px, which becomes the intentional spacing unit.
  • 8px grid spacing for headings, block elements, lists, and hr
  • Softer body color and subtle link underlines
  • Blockquote has a 2px left border and receded color
  • Inline code gets a subtle background pill
  • Code blocks switch between GitHub light and dark themes based on data-theme

Files changed

  • All editor-class props updated from prose-sm to prose-v3
  • frappe-ui pinned to frappe/frappe-ui#better-prose-styles

Data migration

Existing content authored with prose-sm had automatic 8px paragraph margins. A one-time migration script will be needed to insert empty <p> tags between adjacent non-empty paragraphs in existing records. Details in frappe-ui/src/components/TextEditor/PROSE_V3.md.

… branch

- Switch all editor instances from prose-sm to prose-v3
- Point frappe-ui to frappe/frappe-ui#better-prose-styles
  (frappe-ui PR: frappe/frappe-ui#620)
@cypress
Copy link
Copy Markdown

cypress Bot commented Apr 13, 2026

gameplan    Run #412

Run Properties:  status check passed Passed #412  •  git commit da5d9549be ℹ️: Merge 0abcb651a039ea70e16e4e62a8de850edbe79f7c into 413b62784317fcc8aae4415c8b95...
Project gameplan
Branch Review better-prose-styles
Run status status check passed Passed #412
Run duration 00m 55s
Commit git commit da5d9549be ℹ️: Merge 0abcb651a039ea70e16e4e62a8de850edbe79f7c into 413b62784317fcc8aae4415c8b95...
Committer Faris Ansari
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 7
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.
View all changes introduced in this branch ↗︎

@netchampfaris netchampfaris merged commit 6a722db into develop Apr 13, 2026
3 checks passed
@netchampfaris netchampfaris deleted the better-prose-styles branch April 13, 2026 21:35
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