CodeGen and Editor : layout error

Hello,
I try a new project with Plain React using CodeGen.
I create plasmicHost component with a react-rooter.
Here’s the code

index.html

<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vite + React + TS</title>
  </head>
  <body>
    <div id="root"></div>
    <script type="module" src="/src/main.tsx"></script>
  </body>
</html>

main.tsx


createRoot(document.getElementById('root')!).render(
  <StrictMode>
    <App/>
  </StrictMode>
)

App.tsx


import {Route, Routes, BrowserRouter} from 'react-router-dom';
import PlasmicHost from './plasmic-host';

function Toto() {
  return <div>Hello world</div>;
}


function App() {
  return (
      <BrowserRouter>
        <Routes>
          <Route path="/plasmic-host" element={<PlasmicHost />} />
          <Route path="/" element={<Toto />} />
        </Routes>
      </BrowserRouter>
  );
}

export default App;
  

And I launch the code gen part and link to plasmic.
I’va a trouble in the editor.

Have you ever encountered this problem?
I have another project for which I don’t have any issues like this.

Thks in advance

I found the issue :

index.css contain :


:root {

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}

If i remove the content, all will be good.
Do you know, why the file has been changed and why by defaut he cause trouble ?
Thks