Skip to content

How to enable dark mode #101

Answered by timogasda
6be709c0 asked this question in Q&A
Aug 1, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hello,

great question! You can use the applyMode helper from the @cloudscape-design/global-styles package. This is described in detail on the Global styles page: https://cloudscape.design/get-started/integration/global-styles/.

For example:

import { applyMode, Mode } from '@cloudscape-design/global-styles';

applyMode(Mode.Dark);

Hope that helps! :)

Replies: 1 comment 1 reply

Comment options

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

Answer selected by timogasda
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