Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

Conversation

@hrynevychroman
Copy link
Collaborator

You can use shortcut for arbitrary-values without var() wrapper

image

Docs: https://tailwindcss.com/docs/adding-custom-styles#using-arbitrary-values

Globally replaced with regex 😅

@cloudflare-workers-and-pages
Copy link

Deploying vue-ui-playground with  Cloudflare Pages  Cloudflare Pages

Latest commit: 661f9bd
Status: ✅  Deploy successful!
Preview URL: https://114aacbd.vue-ui-playground.pages.dev
Branch Preview URL: https://fix-tailwindcss-arbitrary.vue-ui-playground.pages.dev

View logs

@hrynevychroman
Copy link
Collaborator Author

Interesting why tests are failing, as I see I just replace tailwindcss arbitrary classes 🥲

@Barbapapazes
Copy link
Contributor

Interesting why tests are failing, as I see I just replace tailwindcss arbitrary classes 🥲

Hey 👋 ! This is a great idea to improve readability. Tests are failing because you've change classes so the template. You must update the snapshots with vitest -u

Copy link
Contributor

@Barbapapazes Barbapapazes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update snapshots

@Barbapapazes
Copy link
Contributor

@Barbapapazes
Copy link
Contributor

for reference: ([a-zA-Z0-9_-]+)-\[var\((--[\w-]+)\)\] to $1-($2)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants