Skip to content

Contextualized theme ? #176

@Volune

Description

@Volune

While hacking into react-with-styles in order to integrate react-dates in an application that use a different style architecture (gist), I realized that both the Theme and the Interface are singletons.

So if I understand well, it is not possible to have two customizations (use two different themes) for the same component in different places of the application.
Am I missing something? Wouldn't it be better to rely on React's Context (or another alternative)? What are the recommendations?

I'm asking by curiosity, I don't have an actual use case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions