diff --git a/src/root.tsx b/src/root.tsx index 404225a..fe5b199 100644 --- a/src/root.tsx +++ b/src/root.tsx @@ -1,11 +1,11 @@ -import { component$ } from "@builder.io/qwik"; +import { component$, useStyles$ } from "@builder.io/qwik"; import { QwikCityProvider, RouterOutlet, ServiceWorkerRegister } from "@builder.io/qwik-city"; import { RouterHead } from "~/components/common/RouterHead"; import { DarkThemeLauncher } from "~/components/common/DarkThemeLauncher"; // import "@fontsource-variable/inter"; -import "~/assets/styles/global.css"; +import styles from "~/assets/styles/global.css?inline"; export default component$(() => { /** @@ -15,6 +15,8 @@ export default component$(() => { * Dont remove the `
` and `` elements. */ + useStyles$(styles); + return (