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>
This commit is contained in:
co-authored by
李嘉图·M·路
Asher Gomez
Marvin Hagemeister
parent
2d308f6b9e
commit
bb23643779
@@ -158,7 +158,7 @@ export default define.page<typeof handler>(function DocsPage(props) {
|
||||
<div class="flex mx-auto max-w-screen-2xl px-0 md:px-4 md:py-0 justify-start bg-background-secondary">
|
||||
<label
|
||||
for="docs_sidebar"
|
||||
class="px-4 py-3 lg:hidden flex items-center rounded gap-2 cursor-pointer"
|
||||
class="px-4 py-3 lg:hidden flex items-center rounded-sm gap-2 cursor-pointer"
|
||||
>
|
||||
<svg
|
||||
class="h-6 w-6"
|
||||
@@ -204,7 +204,7 @@ export default define.page<typeof handler>(function DocsPage(props) {
|
||||
<div class="lg:order-1 min-w-0 max-w-3xl w-full">
|
||||
{isCanary
|
||||
? (
|
||||
<div class="bg-[#F0900525] p-4 rounded text-base text-yellow-700 dark:text-yellow-500 mb-8">
|
||||
<div class="bg-[#F0900525] p-4 rounded-sm text-base text-yellow-700 dark:text-yellow-500 mb-8">
|
||||
🚧 This documentation is work in progress and for an
|
||||
unreleased version of Fresh.
|
||||
</div>
|
||||
@@ -231,7 +231,7 @@ export default define.page<typeof handler>(function DocsPage(props) {
|
||||
<div class="px-4 md:px-0 flex justify-between my-6">
|
||||
<a
|
||||
href={`https://github.com/denoland/fresh/edit/main/${page.file}`}
|
||||
class="text-gray-700 dark:text-gray-200 text-md flex items-center bg-[#ebedf0] dark:bg-[#2c2d39] px-4 py-2 rounded hover:bg-gray-200 dark:hover:bg-[#36394c] transition-colors"
|
||||
class="text-gray-700 dark:text-gray-200 text-md flex items-center bg-[#ebedf0] dark:bg-[#2c2d39] px-4 py-2 rounded-sm hover:bg-gray-200 dark:hover:bg-[#36394c] transition-colors"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
@@ -303,7 +303,7 @@ function ForwardBackButtons(props: {
|
||||
? (
|
||||
<a
|
||||
href={prev.href}
|
||||
class="px-4 py-2 text-left rounded border border-foreground-secondary/20 grid border-solid w-full hover:border-green-600 transition-colors"
|
||||
class="px-4 py-2 text-left rounded-sm border border-foreground-secondary/20 grid border-solid w-full hover:border-green-600 transition-colors"
|
||||
>
|
||||
<span class="text-sm text-gray-600 dark:text-gray-500">
|
||||
Previous page
|
||||
@@ -318,7 +318,7 @@ function ForwardBackButtons(props: {
|
||||
? (
|
||||
<a
|
||||
href={next.href}
|
||||
class="px-4 py-2 text-left rounded border border-foreground-secondary/20 grid border-solid w-full hover:border-green-600 transition-colors"
|
||||
class="px-4 py-2 text-left rounded-sm border border-foreground-secondary/20 grid border-solid w-full hover:border-green-600 transition-colors"
|
||||
>
|
||||
<span class="text-sm text-gray-600 dark:text-gray-500">
|
||||
Next page
|
||||
|
||||
Reference in New Issue
Block a user