Skip to content

How to get current theme mode (light or dark) when making custom preview #455

Answered by fgatti675
fe7ng654123 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @fe7ng654123
You can get the current color mode using the hook useModeController

const {mode} = useModeController();

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@fe7ng654123
Comment options

Answer selected by fe7ng654123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants