Revert "feat: update the tailwind plugin to suuport tailwindv4 #2819 (#2903)" (#2988)

Reverts tailwind v4 update. Something is wrong with the CSS files on
fresh.deno.dev 😢
This commit is contained in:
Marvin Hagemeister
2025-05-21 16:07:51 +02:00
committed by GitHub
parent 40e7747228
commit dbb76623a4
13 changed files with 1041 additions and 413 deletions
+5 -3
View File
@@ -4,7 +4,7 @@ import * as path from "@std/path";
// Keep these as is, as we replace these version in our release script
const FRESH_VERSION = "2.0.0-alpha.34";
const FRESH_TAILWIND_VERSION = "0.0.1-alpha.8";
const FRESH_TAILWIND_VERSION = "0.0.1-alpha.7";
const PREACT_VERSION = "10.26.6";
const PREACT_SIGNALS_VERSION = "2.0.4";
@@ -338,7 +338,9 @@ html {
${GRADIENT_CSS}`;
// deno-fmt-ignore
const TAILWIND_CSS = css`@import "tailwindcss";
const TAILWIND_CSS = css`@tailwind base;
@tailwind components;
@tailwind utilities;
${GRADIENT_CSS}`;
const cssStyles = useTailwind ? TAILWIND_CSS : NO_TAILWIND_STYLES;
@@ -549,7 +551,7 @@ if (Deno.args.includes("build")) {
};
if (useTailwind) {
denoJson.imports["tailwindcss"] = "npm:tailwindcss@^4.1.7";
denoJson.imports["tailwindcss"] = "npm:tailwindcss@^3.4.3";
}
await writeFile("deno.json", denoJson);
+1 -1
View File
@@ -92,7 +92,7 @@ Deno.test("init - with tailwind", async () => {
await initProject(dir, [], {});
const css = await readProjectFile(dir, "static/styles.css");
expect(css).toMatch(/tailwindcss/);
expect(css).toMatch(/@tailwind/);
const main = await readProjectFile(dir, "main.ts");
const dev = await readProjectFile(dir, "dev.ts");