Skip to content

How to get current theme? #627

@mortalYoung

Description

@mortalYoung

Question

For now, I develop a system based on molecule with ant design. But I can't get current theme to distinguish the dark mode and light mode. I prefer to get the theme mode and to change the theme of ant design. For example,

// to get current theme in some way
const currentTheme = molecule.colorTheme.getCurrentTheme();
if(currentTheme === 'dark'){
    changeAntDesignTheme();
}

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions