Skip to content

fix: preserve CSS variable and gradient references on paste#5716

Merged
kof merged 6 commits into
mainfrom
fix/paste-preserve-gradient-vars
Apr 23, 2026
Merged

fix: preserve CSS variable and gradient references on paste#5716
kof merged 6 commits into
mainfrom
fix/paste-preserve-gradient-vars

Conversation

@kof
Copy link
Copy Markdown
Member

@kof kof commented Apr 23, 2026

Preserve var() references in pasted gradient shorthand (css-data/parse-css.ts)
When expanding shorthand properties (e.g. background), unresolved var() tokens were lost. Now they're recovered by probing each longhand with a placeholder, mapping which longhands the var belongs to, and restoring it.

Fix border-(--x) Tailwind v4 syntax not recognized (tailwind.ts)
borde

kof added 6 commits April 22, 2026 11:35
Drop the border color literal override collection and injection in parseTailwindClasses — the code no longer captures `border-[color:#...]` tokens or adds override CSS to preserve hex colorSpace. Update tests to stop expecting a `colorSpace: "hex"` field and instead assert a generic color object. This aligns parsing with UnoCSS normalization and removes the previous manual hex preservation logic.
@kof kof merged commit f052200 into main Apr 23, 2026
20 of 22 checks passed
@kof kof deleted the fix/paste-preserve-gradient-vars branch April 23, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant