Unistyles 3.0 #191
Replies: 5 comments 17 replies
-
Hey everyone, I’ve started converting the core to a more extensible structure. I've learned a lot about C++, and I can see some issues that need to be fixed first. From a DX perspective, the API should remain exactly the same, so I will gradually release updates on the 2.x branch. |
Beta Was this translation helpful? Give feedback.
-
After the successful release of There will be a lot of improvements and new APIs, at the cost of backward compatibility. I will share some sneak peeks closer to the release date 🙏🏼 |
Beta Was this translation helpful? Give feedback.
-
This is my initial estimation based on the current progress. I hope it will be faster, but in case anyone is wondering if they should start a new project with 2.x or wait a little bit for 3.x. I will keep you updated! |
Beta Was this translation helpful? Give feedback.
-
Great work @jpudysz! I'm really enjoying Unistyles and have started using it in my projects. One feature I’m missing to fully migrate from styled-components is support for nested themes. Specifically, I'm looking for the ability to define different themes based on a section of the UI (e.g., default vs container). The container might have a different background color, and all components within that container should automatically adapt their styles (like color, padding, or size) based on the container’s theme. All the normal component variants would still apply and be adjusted depending on the nested theme, or inherit the parent theme if it’s missing some keys—so nested themes can be a subset only. Basically, a nested theme should be configured within a base theme, so it will also apply across light/dark modes seamlessly. Right now, it's a bit impractical to pass a special prop or variant to every component depending on where it’s rendered. It would be great if components could inherit their styles contextually without needing to be explicitly aware of their parent section. Is nested theme support something planned for v3, or do you have any thoughts on how to handle this use case? Would love your input! Here some example from Tamagui, which illustrates my use case a bit: https://tamagui.dev/docs/core/theme EDIT: Sorry, I just found the other discussion about this topic here: #308 |
Beta Was this translation helpful? Give feedback.
-
Unistyles 3.0 has been released, only one month after the initial estimation 😅. Thank you all for your feedback and comments! If you need to discuss anything please open separate thread 🙏🏼 |
Beta Was this translation helpful? Give feedback.
-
Hello developers!
I started R&D phase for Unistyles 3.0. At the moment I'm exploring new ways to achieve faster rendering, less or zero re-renders as well as some cool new features. It will take some time as I need to dig deep into C++ and Fabric.I will start actively developing new core as soon as I achieve POC that satisfies me.
Beta Was this translation helpful? Give feedback.
All reactions