Open bryaneaton13 opened 1 week ago
Hello there 👋 Thanks for opening your first issue. We welcome you to the ui community! 😊
Yep, as few things "custom" as possible.
+1 for it. IA's will work better with standards, if possible, when possible to sticky with standards of things already done previously.
Plus, lots of folks use shadcn/ui. If you keep things standard we can use the same CLI to install components (like v0, magicui, personal registries, etc)
Feature description
I'm suggesting switching back to the standard
cn
class name helper that shadcn and magicui use for the tailwind merge utility helper. Theny
function is a custom thing that's not as clear what it means.This will help when getting AI to auto-generate code (like GitHub copilot or Cursor) using the components already in the code base. And it'll help when using tools like v0.dev to create the UI elements.
Affected component/components
All Components with styling
Additional Context
Right now, the manual installation shows using this class name helper in
lib/utils.ts
:I'm suggesting using this instead:
Before submitting
Related commits
https://github.com/nyxb-ui/ui/commit/91f664a https://github.com/nyxb-ui/ui/commit/283b44d73d7ed8e7427dacaba3fa47e0c5186e59 https://github.com/nyxb-ui/ui/commit/a702f31b31bc26c744ee4045ee2840c78abf1137 https://github.com/nyxb-ui/ui/commit/134658ba424c17046be09a5e147b1402db994a28 https://github.com/nyxb-ui/ui/commit/dd2ea8dc35a3702d77026751795cb9828a891dab https://github.com/nyxb-ui/ui/commit/dac8517048b13b1b45dc23fc5d637040c71bc46d https://github.com/nyxb-ui/ui/commit/5be2fdb906ad2c57608be7dc3e9ce63390a557f1