+
+
+
+### The solution: CSS variables
+
+Solving this problem requires a novel approach to styling and theming.
+(See this [RFC on CSS variables support](https://github.com/mui/material-ui/issues/27651) to learn more about the implementation of this feature.)
+
+For applications that need to support light and dark mode using CSS media `prefers-color-scheme`, enabling the [CSS variables feature](/material-ui/customization/css-theme-variables/usage/#light-and-dark-modes) fixes the issue.
+
+But if you want to be able to toggle between modes manually, avoiding the flicker requires a combination of CSS variables and the `InitColorSchemeScript` component.
+Check out the [Preventing SSR flicker](/material-ui/customization/css-theme-variables/configuration/#preventing-ssr-flickering) section for more details.
diff --git a/docs/public/material-ui/customization/default-theme.md b/docs/public/material-ui/customization/default-theme.md
new file mode 100644
index 00000000000000..55ee97c8cb7b93
--- /dev/null
+++ b/docs/public/material-ui/customization/default-theme.md
@@ -0,0 +1,216 @@
+# Default theme viewer
+
+This tree view allows you to explore how the theme object looks like with the default values.
+
+If you want to learn more about how the theme is assembled, take a look at [`material-ui/style/createTheme.ts`](https://github.com/mui/material-ui/blob/-/packages/mui-material/src/styles/createTheme.ts),
+and the related imports which `createTheme()` uses.
+
+You can play with the documentation theme object in your browser console,
+as the `theme` variable is exposed on all the documentation pages.
+
+:::warning
+Please note that **the documentation site is using a custom theme** (the MUI's organization branding).
+:::
+
+
+
+```tsx
+import * as React from 'react';
+import Slider from '@mui/material/Slider';
+
+export default function DevTools() {
+ return (
+