Skip to content

Tailwind Prefix Support #190

@zngly-vlad

Description

@zngly-vlad

Problem Statement

I would like to propose adding an option to streamdown to specify a Tailwind CSS prefix.

This prefix would then be applied to all internal Tailwind classes that streamdown uses for its built-in typography and component styling and dark mode display of code blocks.

For example, if I use prefix(tw), all rendered elements by streamdown that would normally have:

flex would instead be rendered with tw:flex

This would allow streamdown's output to seamlessly integrate with a project's existing prefixed Tailwind setup.

Image Image

Proposed Solution

@source "../node_modules/streamdown/dist/index.js" prefix(tw);

Alternatives Considered

No response

Use Case

@source "../node_modules/streamdown/dist/index.js" prefix(tw);

Priority

Important

Contribution

  • I am willing to help implement this feature

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions