Native Theme Config API should match Web Theme Config API #70
Replies: 3 comments
-
|
Hey! Regarding tailwind.config — it will not be used soon. HeroUI v3 and HeroUI Native will manage everything through CSS variables inside the global.css file. Surface comes from the new design system, and its purpose is to provide the proper layer hierarchy. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the response. I see that Button in Native has no "color" attribute (only variant), is that also part of the new design system? Is it all in flux right now or can I read up on any of the decisions anywhere? Would you say that a consistent API across web an UI is one of the goals for release? |
Beta Was this translation helpful? Give feedback.
-
|
New design system is coming with v3 (https://v3.heroui.com/docs/introduction). We're trying to keep the API as consistent as possible between web and mobile, that's our goal |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be really nice if I could reuse my theme settings JSON file that I have for the web version with the native version.
I don't know why you wouldn't do this when you already have a theme configurator for the web version.
Web (./web/tailwind.config.ts)
Native (./mobile/app/_layout.tsx)
In addition I see we have moved from content-1, content-2 etc for card backgrounds to "surface". I don't know why we would rename these (maybe there is a platform reason?) but we should aim to keep as much of the heroUI ideas transposable.
Beta Was this translation helpful? Give feedback.
All reactions