Skip to content
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

fix(shadcn): extract tailwind v4 prefix from css file #6604

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lottamus
Copy link

@lottamus lottamus commented Feb 9, 2025

In Tailwind v4, you can set your Tailwind prefix via a function in the CSS import: https://tailwindcss.com/docs/styling-with-utility-classes#using-the-prefix-option

Tailwind prefix option is strictly set to only lowercase characters ([a-z]): https://github.com/tailwindlabs/tailwindcss/blob/ad001199f6e3ce64472de1b3d5f5a424c9d065c8/packages/%40tailwindcss-upgrade/src/template/codemods/prefix.ts#L117

Related to #6585

Copy link

vercel bot commented Feb 9, 2025

@lottamus is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@lottamus lottamus changed the base branch from main to canary February 9, 2025 07:50
@lottamus lottamus changed the title fix: extract tailwind v4 prefix from css file fix(canary): extract tailwind v4 prefix from css file Feb 9, 2025
@lottamus lottamus changed the base branch from canary to main February 23, 2025 07:35
@lottamus lottamus changed the title fix(canary): extract tailwind v4 prefix from css file fix(shadcn): extract tailwind v4 prefix from css file Feb 23, 2025
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.

1 participant