Skip to content

Commit 9708284

Browse files
feat: remove global.css import to enable global CSS file customizations (#650)
Co-authored-by: Marco Pasqualetti <24919330+marcalexiei@users.noreply.github.com>
1 parent d562aa8 commit 9708284

File tree

5 files changed

+8
-1
lines changed

5 files changed

+8
-1
lines changed

crates/tuono/src/source_builder.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ const CLIENT_ENTRY_DATA: &str = "// File automatically generated by tuono
4242
// Do not manually update this file
4343
import 'vite/modulepreload-polyfill'
4444
import { hydrate } from 'tuono/hydration'
45-
import '../src/styles/global.css'
4645
4746
// Import the generated route tree
4847
import { routeTree } from './routeTree.gen'

examples/tuono-app/src/routes/__layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import type { ReactNode, JSX } from 'react'
22
import { TuonoScripts } from 'tuono'
33

4+
import '../styles/global.css'
5+
46
interface RootLayoutProps {
57
children: ReactNode
68
}

examples/tuono-tutorial/src/routes/__layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import type { ReactNode, JSX } from 'react'
22
import { TuonoScripts } from 'tuono'
33

4+
import '../styles/global.css'
5+
46
interface RootLayoutProps {
57
children: ReactNode
68
}

examples/with-mdx/src/routes/__layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import type { ReactNode, JSX } from 'react'
22
import { MDXProvider } from '@mdx-js/react'
33
import { TuonoScripts } from 'tuono'
44

5+
import '../styles/global.css'
6+
57
interface RootLayoutProps {
68
children: ReactNode
79
}

examples/with-tailwind/src/routes/__layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import type { ReactNode, JSX } from 'react'
22
import { TuonoScripts } from 'tuono'
33

4+
import '../styles/global.css'
5+
46
interface RootLayoutProps {
57
children: ReactNode
68
}

0 commit comments

Comments
 (0)