Replies: 4 comments 2 replies
-
Consider providing git repo that reproduces the unexpected behavior. You could also consider updating Tailwind to see if that helps. |
Beta Was this translation helpful? Give feedback.
-
That’s exactly what I’m doing: I have a wrapper doc with .prose, but
headings and other typography inside of it is not styled.
*Dilip Ramírez*
Data Architect @ Falabella Corp Tech
LinkedIn <https://linkedin.com/in/dilipramirez>
+56 9 90724198
…On Sat, 8 Mar 2025 at 16:48 Justin Wong ***@***.***> wrote:
The typography plugin doesn't introduce typography styling globally. You'd
need to wrap the elements that you'd want styled using the prose class
name:
<h2>Unstyled</h2>
<div class="prose">
<h2>I would be styled</h2></div>
—
Reply to this email directly, view it on GitHub
<#17073 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACU3HEZLC57NIMWT7IXDG32TNCQXAVCNFSM6AAAAABYTLS3A6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENBTGY2TGMQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Is there any fix for this? plugins: [
const defaultTheme = require('tailwindcss/defaultTheme') module.exports = { and using the @plugin inside my style.css it does absolutely nothing(the @layer base code for adding back the cursor works fine):
@plugin "@tailwindcss/typography"; } how do i get back access to the text-blue-500 and other typography classes? |
Beta Was this translation helpful? Give feedback.
-
Ok so the only way to get the classes back so far has been to add them to my style.css using the apply function. `@import "tailwindcss"; } .bg-blue-100 { @apply bg-blue-100; } .bg-red-100 { @apply bg-red-100; } .text-teal-500 { @apply text-teal-500; } .\hs-strong-password-active:text-teal-500 { @apply text-teal-500} .text-blue-400 { @apply text-blue-400; } .text-red-400 { @apply text-red-400; } .border-blue-400 { @apply border-blue-400; } .hs-strong-password-accepted { .hs-strong-password { ` |
Beta Was this translation helpful? Give feedback.
-
on
devDependencies
:on
globals.css
Result:
.prose
div with headings or other typography have absolutely no styles whatsoever. It doesn't even compile any plugin-related styles (I'm not sure if that's normal, but still).Beta Was this translation helpful? Give feedback.
All reactions