[Refactor/Chore] Remove tailwind typography or markdown.scss #21870

Open
opened 2026-02-21 20:14:39 -05:00 by yindo · 1 comment
Owner

Originally created by @DavideDelbianco on GitHub (Jan 23, 2026).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for refactors or chores; if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Description

Theres a file named typography.js which contains multiple css variables marked as --prose-XXX
I've searched the package: https://github.com/tailwindlabs/tailwindcss-typography

It seems that to use it you need to add the class "prose" to a component.
It's intended to style HTML not in your control, for example in markdown.

But markdown has its own scss stylesheet and the class "prose" is used only in a "doc.tsx" component under develop/ folder and it was last touched 2 years ago and never used in any place.

I think it would be safe to remove:
package -> @tailwindcss/typography
file -> typography.js
component -> doc.tsx
tailwind config -> plugins: [require('@tailwindcss/typography')]

Motivation

No response

Additional Context

No response

Originally created by @DavideDelbianco on GitHub (Jan 23, 2026). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [x] This is only for refactors or chores; if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Description Theres a file named `typography.js` which contains multiple css variables marked as --prose-XXX I've searched the package: https://github.com/tailwindlabs/tailwindcss-typography It seems that to use it you need to add the class "prose" to a component. It's intended to style HTML not in your control, for example in markdown. But markdown has its own `scss` stylesheet and the class "prose" is used only in a "doc.tsx" component under `develop/` folder and it was last touched 2 years ago and never used in any place. I think it would be safe to remove: package -> `@tailwindcss/typography` file -> `typography.js` component -> `doc.tsx` tailwind config -> `plugins: [require('@tailwindcss/typography')]` ### Motivation _No response_ ### Additional Context _No response_
yindo added the status: in discussion label 2026-02-21 20:14:39 -05:00
Author
Owner

@hyoban commented on GitHub (Jan 24, 2026):

Yes, we can consider removing one of these two. However, we must ensure that the existing application's styles remain intact and are not broken in the process.

Actually, I'm more inclined to remove markdown.scss.

@hyoban commented on GitHub (Jan 24, 2026): Yes, we can consider removing one of these two. However, we must ensure that the existing application's styles remain intact and are not broken in the process. Actually, I'm more inclined to remove markdown.scss.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#21870