Skip to content

Commit

Permalink
Set styles with qwik structure
Browse files Browse the repository at this point in the history
  • Loading branch information
prototypa committed Mar 9, 2024
1 parent bdce530 commit 01d3d40
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/root.tsx
Original file line number Diff line number Diff line change
@@ -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$(() => {
/**
Expand All @@ -15,6 +15,8 @@ export default component$(() => {
* Dont remove the `<head>` and `<body>` elements.
*/

useStyles$(styles);

return (
<QwikCityProvider>
<head>
Expand Down

0 comments on commit 01d3d40

Please sign in to comment.