Skip to content

v3.3 blog announcement shows v4 variable shorthand syntax #2232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
brandonmcconnell opened this issue May 3, 2025 · 0 comments · Fixed by #2233
Closed

v3.3 blog announcement shows v4 variable shorthand syntax #2232

brandonmcconnell opened this issue May 3, 2025 · 0 comments · Fixed by #2233

Comments

@brandonmcconnell
Copy link

brandonmcconnell commented May 3, 2025

I'm writing up some documentation for one of my plugins, and I noticed that when mentioning the variable shorthand syntax, the blog article about Tailwind v3.3 was updated to demonstrate the variable shorthand syntax using the v4-only syntax. This should ideally show the old syntax, with a note about the new syntax used in v4.x.

-  className="bg-[var(--brand-color)] hover:bg-[var(--brand-hover-color)]"
+  className="bg-(--brand-color) hover:bg-(--brand-hover-color)"

Source: https://tailwindcss.com/blog/tailwindcss-v3-3#css-variables-without-the-var

@brandonmcconnell brandonmcconnell changed the title v3.3 blog announcement shows v4 shorthand variable syntax v3.3 blog announcement shows v4 variable shorthand syntax May 3, 2025
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 a pull request may close this issue.

1 participant