Skip to content

Handle hierarchical or multidimensional themes #10

@uliluckas

Description

@uliluckas

Hi Julian,
great work!

Here comes a feature request with a first idea as Draft PR.

The screens in our App have different brand themes. Both brands use day and night mode.
In our palette we have some branded colors and some brand independent colors.

So or themes look like this (can be changed if a different approach makes more sense)
Dark
Dark/Brand1
Dark/Brand2
Light
Light/Brand1
Light/Brand2

A typical screen would have the themes Dark and Dark/Brand1. Some screens might even have Dark, Dark/Brand1 and Dark/Brand2.

Now the primary goal is to make it possible to switch all Dark* themes at once by just switching from Dark to Light. This is what my PR does.
This could also be solved non-hierarchically by also matching sub-themes. I.e. Switching Brand1 to Brand2 would then also work for switching Light/Brand1 and Dark/Brand1 to Light/Brand2 and Dark/Brand2. Of cause this does not make sense for Dark/Light themes but maybe for other multi dimensional themes.

Would be great if you let me know what you think.

Best regards,
Uli

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions