976 B33 lines
Blame
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
8import 'react';
9import ReactDOM from 'react-dom/client';
10import {ThemedComponentsRoot} from '../ThemedComponentsRoot';
11import {ViewportOverlayRoot} from '../ViewportOverlay';
12import ComponentExplorer from './ComponentExplorer';
13
14import './index.css';
15
16import '../theme/themeDark.css';
17import '../theme/themeLight.css';
18
19// Include CSS variables we use, originally from vscode-webview-ui-toolkit
20import '../theme/themeDarkVariables.css';
21import '../theme/themeLightVariables.css';
22
23import '../theme/index.css';
24
25// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
26const root = ReactDOM.createRoot(document.getElementById('root')!);
27root.render(
28 <ThemedComponentsRoot theme="light">
29 <ComponentExplorer />
30 <ViewportOverlayRoot />
31 </ThemedComponentsRoot>,
32);
33