-
Hello, Cloudscape is such a great design-system, thank you so much for releasing it. It is going to be wildely used. In the documentation it is said:
I'm not sure if there is a built-in function available to switch between light mode and dark mode? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello, great question! You can use the For example: import { applyMode, Mode } from '@cloudscape-design/global-styles';
applyMode(Mode.Dark); Hope that helps! :) |
Beta Was this translation helpful? Give feedback.
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:
Hope that helps! :)