Skip to content

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

Closed
@brandonmcconnell

Description

@brandonmcconnell

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions