Skip to content

Commit bb23643

Browse files
SisyphusZhengiuioiuamarvinhagemeister
authored
feat: support tailwindcss v4 (#3054)
update /www and tailwind-plugin to support tailwind v4. Thanks to the merge of #3034, the work of integrating and advancing #2903 is promoted. related #3034 related #2903 close #3056 close #2819 --patch-1 based on review, 1. del compiler and make it more clean and simple, 2. fix init tailwind part, 3. fix test tailwind part --patch-2 1. fix the docs 2. fix the docs of plugin and version --patch-3 1. Addressed various maintenance tasks (chores) 2. Updated the Tailwind CSS plugin to align with this release. Generated a fresh project using the updated init configuration and 3. deployed it via Deno Deploy EA. Deployment is functioning correctly. --patch-4 Move postcss imports to Tailwind section in init script --patch-5 Refactored Tailwind plugin type definitions by copying PluginOptions properties from @tailwindcss/postcss and adding Fresh-specific exclude option, while exporting types from package entrypoint for better accessibility. Test Project: https://fresh.fresh-press.deno.net/ Test Project Repository: https://github.com/SisyphusZheng/fresh-tailwindv4 Test Plugin: https://jsr.io/@freshpress/fresh-plugin-tailwind@1.0.0 --------- Co-authored-by: 李嘉图·M·路 <146103794+Ricardo-M-Zheng@users.noreply.github.com> Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com> Co-authored-by: Marvin Hagemeister <marvin@deno.com>
1 parent 2d308f6 commit bb23643

30 files changed

+740
-1143
lines changed

deno.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"nodeModulesDir": "auto",
23
"workspace": [
34
"./examples",
45
"./init",
@@ -74,14 +75,12 @@
7475
"@std/expect": "jsr:@std/expect@^1.0.16",
7576
"@std/testing": "jsr:@std/testing@^1.0.12",
7677

77-
"autoprefixer": "npm:autoprefixer@10.4.17",
78-
"cssnano": "npm:cssnano@6.0.3",
79-
"postcss": "npm:postcss@8.4.35",
80-
"tailwindcss": "npm:tailwindcss@^3.4.1",
78+
"@tailwindcss/postcss": "npm:@tailwindcss/postcss@^4.1.10",
79+
"tailwindcss": "npm:tailwindcss@^4.1.10",
80+
"postcss": "npm:postcss@8.5.6",
8181

8282
"ts-morph": "npm:ts-morph@^25.0.1",
8383

84-
"@fresh/plugin-tailwind": "jsr:@fresh/plugin-tailwind@^0.0.1-alpha.7",
8584
"@std/front-matter": "jsr:@std/front-matter@^1.0.5",
8685
"github-slugger": "npm:github-slugger@^2.0.0",
8786
"imagescript": "https://deno.land/x/imagescript@1.3.0/mod.ts",

0 commit comments

Comments
 (0)