diff --git a/init.ts b/init.ts
index 3220d7ed..3c139b5d 100644
--- a/init.ts
+++ b/init.ts
@@ -401,8 +401,18 @@ html {
}
`;
-const NO_TWIND_APP_WRAPPER = `
-import { AppProps } from "$fresh/server.ts";
+const APP_WRAPPER = useTwind
+ ? `import { AppProps } from "$fresh/server.ts";
+
+export default function App({ Component }: AppProps) {
+ return (
+ <>
+
+ >
+ );
+}
+`
+ : `import { AppProps } from "$fresh/server.ts";
import { Head } from "$fresh/runtime.ts";
export default function App({ Component }: AppProps) {
@@ -422,13 +432,13 @@ if (!useTwind) {
join(resolvedDirectory, "static", "styles.css"),
NO_TWIND_STYLES,
);
-
- await Deno.writeTextFile(
- join(resolvedDirectory, "routes", "_app.tsx"),
- NO_TWIND_APP_WRAPPER,
- );
}
+await Deno.writeTextFile(
+ join(resolvedDirectory, "routes", "_app.tsx"),
+ APP_WRAPPER,
+);
+
const STATIC_LOGO =
`