-
Hello everyone, I wanted to ask if there are any utilities for ab tests? Currently in my project the ab tests flags are placed in a class in the body and then used like this .button {
color: red;
.ab_my_experiment-v1 & {
color: blue;
}
.ab_my_experiment-v2 & {
color: green;
}
} With tailwind is it possible to do smth like that? <h1 class="bg-sky-500 ab_my_experiment-v1#text-3xl ab_my_experiment-v1#hover:bg-sky-700">
Hello world!
</h1> And the final css compiled by tailwind would be smth like in the first example. Or maybe there are some other technics to handle ab tests? |
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
Feb 9, 2025
Replies: 1 comment 7 replies
-
You could use |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
aspirisen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could use
@custom-variant
to do this, something like: https://play.tailwindcss.com/TwaiWaE7z3?file=css