-
Notifications
You must be signed in to change notification settings - Fork 290
not-prose does not work in @apply #229
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
Comments
Hey! This is by design in a roundabout way, we define not-prose as an attribute selector Can you describe the real world use case here? Happy to offer some alternatives. In general I deeply discourage |
Hey Adam, so I use Ghost for my blog and then prose to style the blog content. One of the downsides to Ghost is that the blog cards need to be styled through the CSS stylesheet and cannot be done on the component. To get around this I use |
A quick example, Ghost has the ability to have two
So to style it I am using
Unfortunately, it doesn't hide the border added by EDIT: Just realises I'm being an idiot and don't need the |
Thank you for the context! Where does the class Maybe the best solution here is an option in the typography plugin to provide a list of classes that should act as module.exports = {
// ...
plugins: [
require('@tailwindcss/typography')({
skip: ['.kg-blockquote-alt']
})
]
} |
Hey! Doing a big GitHub clean-up this week so if this is still relevant for your use case please open a new discussion where we can discuss the exact use case and the options we want to provide. The original issue where |
hey @adamwathan, I've got another use case for this that I'm trying to find a work around. I use mdsvex to render markdown in a svelte application and because of the tailwind reset, the only way I found to properly render the markdown is by adding do you have any recommendations on how to get around here? |
Would be great to be able to do this:
|
Is the skip option has been implemented? |
What version of @tailwindcss/typography are you using?
v0.5.0
What version of Node.js are you using?
v14.17.0
What browser are you using?
Chrome
What operating system are you using?
Windows 10
Reproduction repository
https://play.tailwindcss.com/Enkf1N1gI6?file=css
Describe your issue
Console error when using not-prose in css with @apply:
The 'not-prose' class does not exist. If 'not-prose' is a custom class, make sure it is defined within a '@layer' directive.
The text was updated successfully, but these errors were encountered: