sek-consulting / solid-ui

Beautifully designed components. Built with Kobalte & corvu. Styled with Tailwind CSS.
https://www.solid-ui.com
MIT License
887 stars 34 forks source link

Add support for `tailwind.prefix` config #125

Closed obedm503 closed 1 month ago

obedm503 commented 3 months ago

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.

sek-consulting commented 2 months ago

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?