feat: Internal Jaspr Prestyled components (library)
Description
Currently, Jaspr users must style and/or hookup external frameworks like TailwindCSS to be able to style their components. This is powerful, but it does come with the fact that users might feel a bit too overwhelmed.
Especially coming from Flutter, having to restyle every component from the bottom up sounds very tedious. I propose an optional package within Jaspr that is tied directly in with Jaspr that comes with prestyled components similar to a component library.
It makes prototyping easier while also giving devs coming from Flutter and other frameworks where its more focused on layout an easier time.
I'm happy to work and contribute to its development
Things to support:
- Prestyled components (buttons, forms)
- Themes (color palettes)
- Icon management (loading icons from SVGs)
Additional Context
A great design language right now would definitely be using Jaspr's website.
Following component libraries from React like antdesign and Material design are great inspirations as they are well known for developers to start prototyping with.
- Material UI - React
- Ant Design - React
- Chakra UI - React
- Fluent UI - Flutter
- Material 3 Design - Flutter
I like your idea. I also wanted to create a component library that enables building web pages with Jaspr, similar to how it works in Flutter.
I’ve already created some basic components here: [link] Unfortunately, I don’t have time to continue the development. Here’s also my unmerged PR adding theming support for Jaspr: [link] Maybe it will be useful for you, and you can take some inspiration from it for your work.
I recommend starting with only a few basic components, without too much special design — as a kind of skeleton that can serve as a solid foundation for more advanced components in the future.
That's super helpful! I will definitely take a look at the work you done.
From the unmerged PR, it seems the schultek wants jaspr to be more of a bring your own style kind of library which is fair. And especially since there is already good integration with Tailwind.
I am not sure on how far this will get, but I will definitely give it a shot and see if at the least it can be a featured package for Jaspr.
Thank you very much!