Skip to content

Update peer dependency version to include 4.0.0-beta.1#365

Merged
philipp-spiess merged 1 commit into
mainfrom
fix/peer-beta-version
Jan 7, 2025
Merged

Update peer dependency version to include 4.0.0-beta.1#365
philipp-spiess merged 1 commit into
mainfrom
fix/peer-beta-version

Conversation

@philipp-spiess

@philipp-spiess philipp-spiess commented Nov 29, 2024

Copy link
Copy Markdown
Contributor

Same as #358 but for beta releases.

@vercel

vercel Bot commented Nov 29, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tailwindcss-typography ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 29, 2024 3:06pm

@silvenon

Copy link
Copy Markdown

I'm a little confused, what is the recommended way to configure this plugin in Tailwind v4? Or is this currently only possible via the config file or a wrapper plugin?

@philipp-spiess

Copy link
Copy Markdown
Contributor Author

I'm a little confused, what is the recommended way to configure this plugin in Tailwind v4? Or is this currently only possible via the config file or a wrapper plugin?

Yea extended configuration will require a JS config file, if you're fine with the defaults you can enable it via @plugin 'tailwindcss-typography';

@philipp-spiess
philipp-spiess merged commit 25b0f9e into main Jan 7, 2025
@philipp-spiess
philipp-spiess deleted the fix/peer-beta-version branch January 7, 2025 13:57
@JWPapi

JWPapi commented Jan 18, 2025

Copy link
Copy Markdown

Where do I put ? @plugin 'tailwindcss-typography';

@silvenon

silvenon commented Jan 18, 2025

Copy link
Copy Markdown

In the CSS file where you have @import "tailwindcss" (and @theme etc.). You can find info about this in the very informative v4 documentation: https://tailwindcss.com/docs/v4-beta#using-plugins

But as far as configuring the plugin goes, currently Tailwind v4 doesn't appear to be able have interoperability between both tailwind.config.js and @theme, so I guess all plugins if I'm using Tailwind v4, everything except for @import "tailwindcss" (and @config "../tailwind.config.js") shoud be configured in the JS/TS config.

@aparajita

Copy link
Copy Markdown

Where do I put ? @plugin 'tailwindcss-typography';

I believe that should be @plugin '@tailwindcss/typography';. That's what worked for me.

@denniseffing

denniseffing commented Jan 23, 2025

Copy link
Copy Markdown

Question: Custom CSS now has a lower specificity than before because custom CSS is applied via layer utilities. This breaks a few custom CSS definitions on our side. Is there any fix for this?

EDIT: Nvm, fixed it by importing the CSS with higher specificity (which actually caused the issue) into the utilities layer as well.

@clicktodev

Copy link
Copy Markdown

where are the install instructions for tw v3?

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

Successfully merging this pull request may close these issues.

7 participants