diff --git a/deno.json b/deno.json index 3a3c00e..406fe81 100644 --- a/deno.json +++ b/deno.json @@ -14,8 +14,6 @@ "preact-render-to-string": "https://esm.sh/*preact-render-to-string@5.2.4", "@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.17", - "twind/": "https://esm.sh/twind@0.16.17/", "$gfm": "https://deno.land/x/gfm@0.6.0/mod.ts" }, "compilerOptions": { diff --git a/main.ts b/main.ts index 27962df..e3a52ce 100644 --- a/main.ts +++ b/main.ts @@ -1,7 +1,7 @@ import { start } from "$fresh/server.ts"; import manifest from "./fresh.gen.ts"; -import twindPlugin from "$fresh/plugins/twind.ts"; +import twindPlugin from "$fresh/plugins/twindv1.ts"; import twindConfig from "./twind.config.ts"; await start(manifest, { plugins: [twindPlugin(twindConfig)] }); diff --git a/twind.config.ts b/twind.config.ts index 2a7ac27..8a01177 100644 --- a/twind.config.ts +++ b/twind.config.ts @@ -1,5 +1,10 @@ -import { Options } from "$fresh/plugins/twind.ts"; +import { defineConfig, Preset } from "https://esm.sh/@twind/core@1.1.3"; +import presetTailwind from "https://esm.sh/@twind/preset-tailwind@1.1.4"; +import presetAutoprefix from "https://esm.sh/@twind/preset-autoprefix@1.0.7"; export default { + ...defineConfig({ + presets: [presetTailwind() as Preset, presetAutoprefix() as Preset], + }), selfURL: import.meta.url, -} as Options; +};