Skip to content

Passing options from @tailwindcss/ui to typography plugin #322

Closed
@thomasbrus

Description

@thomasbrus

So I already solved this but I figured it might be helpful to post it here still in case anyone else runs into this problem as well. Couldn't figure out how to pass a custom class name to the @tailwindcss/typography plugin, but found a simple workaround.. Just disable the plugin and require it separately 👍

  plugins: [
    require('@tailwindcss/ui')({ typography: false }),
    require('@tailwindcss/typography')({ className: 'html' }),
  ],

However it'd be nice if @tailwindcss/ui' accepted a hash of options that is then passed to the typography plugin:

require('@tailwindcss/ui')({ typography: { className: 'html' } })

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions