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

Add support for tailwind.prefix config #125

Closed
Tracked by #108
obedm503 opened this issue Aug 10, 2024 · 1 comment
Closed
Tracked by #108

Add support for tailwind.prefix config #125

obedm503 opened this issue Aug 10, 2024 · 1 comment
Labels

Comments

@obedm503
Copy link

shadcn/ui supports setting a prefix in the config. This is especially useful when integrating tailwind in legacy projects.

This is what it looks like in the components.json:

{
  "tailwind": {
    "prefix": "tw-"
  }
}

My current workaround is to add the prefix to every component manually. Please add support for the tailwind prefix.

@stefan-karger
Copy link
Owner

Thanks for the suggestion :)
I'm currently in the process of rebuilding the cli so this is the perfect spot for this kind of issue/wish.

At first I wanted to skip the prefix option but it looks like there is indeed some need.
Can you explain what the actual benefits are or how it's important for legacy projects?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants