| 1 | /** |
| 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | * |
| 4 | * This source code is licensed under the MIT license found in the |
| 5 | * LICENSE file in the root directory of this source tree. |
| 6 | */ |
| 7 | |
| 8 | import 'react'; |
| 9 | import ReactDOM from 'react-dom/client'; |
| 10 | import {ThemedComponentsRoot} from '../ThemedComponentsRoot'; |
| 11 | import {ViewportOverlayRoot} from '../ViewportOverlay'; |
| 12 | import ComponentExplorer from './ComponentExplorer'; |
| 13 | |
| 14 | import './index.css'; |
| 15 | |
| 16 | import '../theme/themeDark.css'; |
| 17 | import '../theme/themeLight.css'; |
| 18 | |
| 19 | // Include CSS variables we use, originally from vscode-webview-ui-toolkit |
| 20 | import '../theme/themeDarkVariables.css'; |
| 21 | import '../theme/themeLightVariables.css'; |
| 22 | |
| 23 | import '../theme/index.css'; |
| 24 | |
| 25 | // eslint-disable-next-line @typescript-eslint/no-non-null-assertion |
| 26 | const root = ReactDOM.createRoot(document.getElementById('root')!); |
| 27 | root.render( |
| 28 | <ThemedComponentsRoot theme="light"> |
| 29 | <ComponentExplorer /> |
| 30 | <ViewportOverlayRoot /> |
| 31 | </ThemedComponentsRoot>, |
| 32 | ); |
| 33 | |