diff --git a/packages/react/src/components/Theme/Theme.mdx b/packages/react/src/components/Theme/Theme.mdx index 197c60c7a0a1..e059b8a06b7f 100644 --- a/packages/react/src/components/Theme/Theme.mdx +++ b/packages/react/src/components/Theme/Theme.mdx @@ -42,19 +42,48 @@ You also get this file when you import `@carbon/react` directly in your Sass. ## Setting the global theme -Use the `GlobalTheme` component to set the theme for your entire project. By -default, the global theme will be set to the `white` theme. You can change the -global theme value by using the `theme` prop on `GlobalTheme`: +To the set the theme for your entire project, the `GlobalTheme` component can be used. + +Please note that in contrast to `Theme` this does not apply any styles on its own but rather sets the context's theme according to the value you pass to its `theme` prop. + +This is due to the various options of applying global css custom properties which differ from application to application. Depending on your architecture you may want to apply a class to the `
` or add a custom data attribute to your `` element: ```jsx +import { useEffect } from 'react'; import { GlobalTheme } from '@carbon/react'; -