Can we have more details about the incoming breaking changes? #176
Replies: 3 comments 5 replies
-
[Edit 2022-08-03]: I've decided to keep the library "as is" with css-in-js, style props, layout components etc.(outdated) original answer : Hi,
Yes, because it can be done in css or with utility library like TailwindCSS, for example : // Hope UI v0.x `VStack`
<VStack space="$4" />
// TailwindCSS equivalent
<div class="flex flex-col space-x-4" /> Its not that "easy to read" but i'm ok with that tradeoff.
No, but it will be done in CSS, the only JavaScript part that will be kept is the ability to globally set default props for a component. Here is an example of using tailwind and overriding Hope UI styles : /* index.css */
/* Add tailwind base layer */
@import "tailwindcss/base";
/* Add Hope UI base styles */
@import "node_modules/@hope-ui/css/base.css";
/* Add tailwind components layer */
@import "tailwindcss/components";
/* Add Hope UI components styles, only what you need */
@import "node_modules/@hope-ui/css/alert.css";
@import "node_modules/@hope-ui/css/button.css";
@import "node_modules/@hope-ui/css/menu.css";
/* Add tailwind utilities layer */
@import "tailwindcss/utilities";
/* Override Hope UI css variables */
:root {
--hope-colors-primary-9: 10 255 128; /* defined as rgb color channel, so it can be used with tailwindcss opacity modifier */
--hope-alert-border-radius: 8px;
}
/* Override Hope UI classes */
.hope-button--outline.hope-button--accent {
background-color: salmon;
}
For all that reasons :
The Chakra UI team mentioned that they will be working on a SolidJS version of they library, maybe worth waiting for it since Hope UI v0.x was inspired by this library.
Since v1.0 is a complete rewrite it will not be in the The
Yes it will be hosted at |
Beta Was this translation helpful? Give feedback.
-
Hi, after a long reflexion i've decided to keep the library "as is" with css-in-js, style props, layout components etc. I'm working on a new style engine and theming API that will be even better, more details soon. |
Beta Was this translation helpful? Give feedback.
-
First pre-release is here. There is not a lot of components, its mostly for testing the new styling/theming api. Depending on my time dedicated to open source, I expect reaching feature parity with If you want to give it a try, go to http://next.hope-ui.com |
Beta Was this translation helpful? Give feedback.
-
Hello.
First of all, I want to thank you for this awesome library. It really helped me delivering a project within one day, where before using your library I was mentally blocked due to my lack of knowledge about tailwind, I was just overwhelmed.
I really enjoyed using it, it allowed me focusing on learning solid and my specific domain problem.
I loved the API from the very beginning. It just feels familiar, and has a lot of valuable things for someone like me (which easily overlooks things). Some of the things I liked the most are:
For that reasons I am a bit concerned about the incoming breaking changes. I find it a bit to short and it let me wondering what exactly will be removed. Will all the components that are not active components (box, center, grid, simple grid etc) be removed? Will I loose the ability to customize the variants, themes and colors using @radix-ui/colors? All the css and style customization options will be removed, along with their autocompletion features?
Also I would love to read more about the reasoning behind the decision if that information is publicly available.
If all the above is true, which options will have those who like the current API? other than pinning the package version, will the old docs be still available? I guess no patches either will be retro added, but I'm fine at the current state.
Thanks again
Beta Was this translation helpful? Give feedback.
All reactions