diff --git a/components/Footer.tsx b/components/Footer.tsx
index 5d2fe47..e2c90bb 100644
--- a/components/Footer.tsx
+++ b/components/Footer.tsx
@@ -15,7 +15,7 @@ export function Footer() {
Deno Deno
-
+
Deno
-
+
by example
diff --git a/deno.json b/deno.json
index b951d2c..f6a416e 100644
--- a/deno.json
+++ b/deno.json
@@ -16,8 +16,6 @@
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.1",
"@preact/signals": "https://esm.sh/*@preact/signals@1.2.2",
"@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.1",
- "twind": "https://esm.sh/twind@0.16.19",
- "twind/": "https://esm.sh/twind@0.16.19/",
"$gfm": "https://deno.land/x/gfm@0.1.28/mod.ts",
"$prism": "https://esm.sh/prismjs@1.29.0",
"$prism/": "https://esm.sh/prismjs@1.29.0/",
diff --git a/fresh.config.ts b/fresh.config.ts
index fd48d1b..e1ebe91 100644
--- a/fresh.config.ts
+++ b/fresh.config.ts
@@ -1,5 +1,5 @@
import { defineConfig } from "$fresh/server.ts";
-import twindPlugin from "$fresh/plugins/twind.ts";
+import twindPlugin from "$fresh/plugins/twindv1.ts";
import twindConfig from "./twind.config.ts";
export default defineConfig({
plugins: [twindPlugin(twindConfig)],
diff --git a/islands/CopyButton.tsx b/islands/CopyButton.tsx
index 38615a9..5739fef 100644
--- a/islands/CopyButton.tsx
+++ b/islands/CopyButton.tsx
@@ -8,9 +8,17 @@ function Copy() {
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
+ +
Run{" "} this example {" "} locally using the Deno CLI:
-
+
{example.run.startsWith("deno")
? example.run.replace("", url)
: "deno run " + example.run.replace("", url)}
@@ -170,7 +172,7 @@ export default function ExamplePage(props: PageProps) {
)}
{example.playground && (
-
+
Try this example in a Deno Deploy playground:
@@ -192,7 +194,7 @@ export default function ExamplePage(props: PageProps) {
{example.additionalResources.map(([link, title]) => (
-
@@ -211,7 +213,7 @@ export default function ExamplePage(props: PageProps) {
? (
{prev.title}
@@ -221,7 +223,7 @@ export default function ExamplePage(props: PageProps) {
{next && (
{next.title}
@@ -247,11 +249,11 @@ function SnippetComponent(props: {
return (
-
+
{props.snippet.text}
{props.filename && (
@@ -269,8 +271,17 @@ function SnippetComponent(props: {
-
-
+
+
diff --git a/routes/_app.tsx b/routes/_app.tsx
index 0f65d05..e2591f1 100644
--- a/routes/_app.tsx
+++ b/routes/_app.tsx
@@ -7,7 +7,7 @@ export default function App({ Component }: PageProps) {
-
+
diff --git a/routes/index.tsx b/routes/index.tsx
index 30ff0a7..06cae81 100644
--- a/routes/index.tsx
+++ b/routes/index.tsx
@@ -39,26 +39,26 @@ export default function Home(props: PageProps) {
-
+
Deno
-
+
by example
-
+
Deno is a simple, modern and secure runtime for JavaScript and
TypeScript that uses V8 and is built in Rust.
-
+
Deno by example{" "}
is a collection of annotated examples for how to use Deno, and the
various features it provides. It acts as a reference for how to do
various things in Deno, but can also be used as a guide to learn about
many of the features Deno provides.
-
+
{props.data.map(
(group) => ,
)}
diff --git a/twind.config.ts b/twind.config.ts
index 2a7ac27..8c5b4d2 100644
--- a/twind.config.ts
+++ b/twind.config.ts
@@ -1,5 +1,10 @@
-import { Options } from "$fresh/plugins/twind.ts";
+import { defineConfig, Preset } from "@twind/core";
+import presetTailwind from "@twind/preset-tailwind";
+import presetAutoprefix from "@twind/preset-autoprefix";
export default {
+ ...defineConfig({
+ presets: [presetTailwind() as Preset, presetAutoprefix()],
+ }),
selfURL: import.meta.url,
-} as Options;
+};