You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this idea that it'd be pretty sweet to create a component library that renders radix/shadcn components on desktop and the Konsta variant on mobile.
The components would share a common interface (most likely extending Konsta's props with a desktop variant, but this is just an implementation detail).
I've begun working on a proof of concept for this and it looks promising. Getting the tailwind config set up in a way that shares common values like the runtime colour space, in a way that is still easily customisable, was a pain - but it looks like the end result would justify the effort.
If anyone is interested in collaborating on this let me know!
Will also emphasise that the beauty of this approach is that everything is just tailwind. So it should work in all environments and any general improvements, e.g. optimising compilers using postcss plug-ins, benefits the whole system
** another benefit is this could help supplement Konsta with some components it lacks - e.g. accordions - and free up the author to focus on the mobile variants
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Reposting from #109
I have this idea that it'd be pretty sweet to create a component library that renders radix/shadcn components on desktop and the Konsta variant on mobile.
The components would share a common interface (most likely extending Konsta's props with a
desktop
variant, but this is just an implementation detail).I've begun working on a proof of concept for this and it looks promising. Getting the tailwind config set up in a way that shares common values like the runtime colour space, in a way that is still easily customisable, was a pain - but it looks like the end result would justify the effort.
If anyone is interested in collaborating on this let me know!
** another benefit is this could help supplement Konsta with some components it lacks - e.g. accordions - and free up the author to focus on the mobile variants
Beta Was this translation helpful? Give feedback.
All reactions