Skip to content

Allow renaming of prose PR? #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
OwenMelbz opened this issue Jul 14, 2020 · 4 comments
Closed

Allow renaming of prose PR? #16

OwenMelbz opened this issue Jul 14, 2020 · 4 comments

Comments

@OwenMelbz
Copy link

Would you accept a PR that allows the user to define a custom base class name? Some might be restricted to certain ones based of CMSs such as .wysiwyg or .cms-content etc

e.g. something like..

// tailwind.config.js
module.exports = {
  theme: {
    typography: {
        className: 'custom-class'
    }
  },
  plugins: [
    require('@tailwindcss/typography'),
    // ...
  ],
}
@adamwathan
Copy link
Member

Yep I'd be open to this, but I'd rather configure it as a plugin option than a theme option:

// tailwind.config.js
module.exports = {
  theme: {},
  plugins: [
    require('@tailwindcss/typography')({
      className: 'wysiwyg',
    }),
    // ...
  ],
}

@sjclark
Copy link

sjclark commented Oct 14, 2020

Was the syntax above what actually ended up being merged?
(as a side-note I can't see this actually in the documentation anywhere?)

I'm using:

  plugins: [
    require('@tailwindcss/custom-forms'),
    require('@tailwindcss/typography')({ className: 'test' }),

But it only ever seems to output/format under prose.

@pierreberchtold
Copy link

@sjclark the change is in the master branch but it does not have been release yet. @adamwathan when do you plan the next release?

@adamwathan
Copy link
Member

It should work in the latest release, just haven't written release notes yet sorry.

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

No branches or pull requests

4 participants