Replies: 3 comments 1 reply
-
|
The API looks exactly like what I'd wish for 🙌 I'm currently doing some shenanigans where I track a "temporary" theme change so that I can reset it later to the users preferred/chosen theme. I'm using Expo, so what I do currently is to call a It's not perfect, and has some of the issues described in #300, but it's something I can live with knowing that there is a proper solution on the way with this proposal 😁 I can really only do it because it's for the entire page that I want it, and my current solution wouldn't work if I only needed to change a part of the screen. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for putting this together! The proposed API looks clean and straightforward. That said, scoped theme is a must-have for our architecture, so it's currently the main blocker for migration. Specifically, we need multiple nesting — app-level default theme → screen-level brand theme — so child components including modals resolve styles against the closest . <ScopedTheme theme="default">
<Screen>
<ScopedTheme theme="brandA">
<Content />
</ScopedTheme>
<ScopedTheme theme="brandB">
<Modal />
</ScopedTheme>
</Screen>
</ScopedTheme>If this lands within Q1 as planned, we'd be ready to move forward. We're also considering the Pro version. |
Beta Was this translation helpful? Give feedback.
-
|
I was going to start a discussion about that lol, I need to do that in an app, any news about this feature? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This topic has been brought up in multiple channels, so I am creating this discussion to summarize the requirement and our proposed solution.
Context
There is a strong demand in the community for a component that forces a specific theme for a specific tree of components. This concept already exists in Unistyles 3.0 (see: Unistyles Scoped Theme).
Proposed API
We discussed this internally and decided to align with a similar syntax. We propose exporting a new component from
uniwindcalled<ScopedTheme />.It will accept a single prop,
theme, which will be:Technical Considerations & Challenges
We are currently investigating the following areas to ensure a robust implementation:
Roadmap
We aim to land this feature in Q1 2026. It will be available for both the free and Pro versions
Feedback request
We would love to hear your thoughts on the proposed API.
Beta Was this translation helpful? Give feedback.
All reactions