-
Notifications
You must be signed in to change notification settings - Fork 62
Description
@sethhorsley, I was talking with @cirdes about making RubyUI simpler and distinct. My idea is making RubyUI to work primarily as a component generator that can be used as development dependency than a ui kit that provides components and js package. It will work more like the Shadcn.
I think this approach will make things simpler. Today we need to have a js package and update it, we need to have code that handles if user is using internal components or using generated components, like tailwind config (it checks gem path to get tailwind classes) or stimulus js checking if a controller exists. We need to have gem dependencies like rouge/tailwind-merge. I'm not sure yet, but maybe it can make importmap/esbuild setup easier.
I think RubyUI can be a "eject-only" lib and stand out for it, adding a command like rails g ruby_ui card on each page (like ShadCN). I know that some users will dislike this idea, but we should know what we want, and I think the idea is having a collection of re-usable components that users can copy and paste into their apps, accessible and customizable.