-
Notifications
You must be signed in to change notification settings - Fork 287
dark:prose-invert not included in Tailwind standalone version #233
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
Does this mean prose-invert is unavailable at this moment? |
Yes. I have to use workaround in app.css as prose-invert does nothing: @media (prefers-color-scheme: dark) {
.prose {
color: theme('colors.gray.300') !important;
}
.prose ol > li::marker,
.prose ul > li::marker {
color: theme('colors.gray.300') !important;
}
.prose hr {
border-color: theme('colors.gray.500') !important;
}
.prose a,
.prose blockquote,
.prose figcaption,
.prose pre,
.prose code,
.prose {
color: theme('colors.gray.300') !important;
}
.prose strong,
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5 {
color: theme('colors.gray.200') !important;
}
} |
Hey @danjac. - <div class="prose dark:prose-invert prose-sm lg:prose break-words">
+ <div class="prose dark:prose-invert prose-sm lg:prose-base break-words"> I hope that helps! |
Works beautifully, thank you! |
I am on NuxtJS version 2.15.6, VueJS 2.6.12 and TailwindCSS v2 and this will not work:
Edit: Just checked the documentation about the releases: |
What version of @tailwindcss/typography are you using?
Tailwind standalone release v3.0.13
What version of Node.js are you using?
n/a
What browser are you using?
Firefox, Chrome
What operating system are you using?
Linux, Android
Reproduction repository
https://github.com/danjac/jcasts
Describe your issue
The standalone Tailwind which includes typography does not include dark:prose-invert, so all colors are rendered unreadable in dark mode. The current workaround is to provide custom CSS.
e.g
The text was updated successfully, but these errors were encountered: