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
+18
-10
@@ -4,7 +4,7 @@
|
||||
--color-prettylights-syntax-constant: #0550ae;
|
||||
--color-prettylights-syntax-entity: #8250df;
|
||||
--color-prettylights-syntax-storage-modifier-import: var(
|
||||
--foreground-secondary
|
||||
--color-foreground-secondary
|
||||
);
|
||||
--color-prettylights-syntax-entity-tag: #22863a;
|
||||
--color-prettylights-syntax-keyword: #cf222e;
|
||||
@@ -16,12 +16,20 @@
|
||||
--color-prettylights-syntax-markup-inserted-text: #116329;
|
||||
--color-prettylights-syntax-markup-inserted-bg: #dafbe1;
|
||||
--color-prettylights-syntax-constant-other-reference-link: #0a3069;
|
||||
--color-fg-default: hsla(var(--foreground-secondary));
|
||||
--color-fg-muted: hsla(var(--foreground-tertiary));
|
||||
--color-canvas-default: hsla(var(--background-primary));
|
||||
--color-canvas-subtle: hsla(var(--background-secondary));
|
||||
--color-border-default: hsla(var(--foreground-secondary), 0.3);
|
||||
--color-border-muted: hsla(var(--foreground-secondary), 0.1);
|
||||
--color-fg-default: var(--color-foreground-secondary);
|
||||
--color-fg-muted: var(--color-foreground-tertiary);
|
||||
--color-canvas-default: var(--color-background-primary);
|
||||
--color-canvas-subtle: var(--color-background-secondary);
|
||||
--color-border-default: hsl(
|
||||
from
|
||||
var(--color-foreground-secondary)
|
||||
h
|
||||
s
|
||||
l
|
||||
/
|
||||
0.3
|
||||
);
|
||||
--color-border-muted: hsl(from var(--color-foreground-secondary) h s l / 0.1);
|
||||
--color-neutral-muted: rgba(175, 184, 193, 0.2);
|
||||
--color-accent-fg: #02aa6f;
|
||||
--color-accent-emphasis: #0969da;
|
||||
@@ -689,8 +697,8 @@ html[data-theme="dark"] .markdown-body .admonition.tip .admonition-header {
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .markdown-body .admonition.info {
|
||||
background-color: hsla(var(--info), 0.1);
|
||||
color: hsla(var(--foreground-primary));
|
||||
background-color: hsl(194 76% 41% / 0.1);
|
||||
color: var(--color-foreground-primary);
|
||||
}
|
||||
.markdown-body .admonition.warn .admonition-header {
|
||||
color: #dd6f04;
|
||||
@@ -794,7 +802,7 @@ ol.nested li:before {
|
||||
border-top-left-radius: 0.5rem;
|
||||
border-top-right-radius: 0.5rem;
|
||||
padding: 0.5rem;
|
||||
background: hsla(var(--background-tertiary));
|
||||
background: var(--color-background-tertiary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
Reference in New Issue
Block a user