Skip to content
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

[Feature]: support vars in square brackts #507

Open
s-cork opened this issue Apr 15, 2024 · 0 comments
Open

[Feature]: support vars in square brackts #507

s-cork opened this issue Apr 15, 2024 · 0 comments
Labels
✨ Feature Request Something should be added

Comments

@s-cork
Copy link

s-cork commented Apr 15, 2024

Describe the problem

i want to do something like bg-[--my-var]

expected output

.bg-\[--my-var\] {
    background-color: var(--my-var);
}

actual output

.bg-\[--my-var\] {
}

I also tried doing bg-[var(--my-var)]

but ended up with the output:

.bg-\[var(--my-var\)] {
    background-image: var(--my-var);
}

which seems like a bug

Describe the proposed solution

support vars like tailwind css:
https://tailwindcss.com/docs/adding-custom-styles#using-arbitrary-values

Alternatives considered

No response

Importance

would make my life easier

Additional Information

No response

@s-cork s-cork added the ✨ Feature Request Something should be added label Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature Request Something should be added
Projects
None yet
Development

No branches or pull requests

1 participant