0
I would like to know if there is the possibility of informing values through class names to be used as values in the properties of the same. Example:
.text-(color) {
color: (color);
}
The result would be:
.text-blue {
color: blue;
}
I read about pre-processors, I had never used, but until then I found nothing that refers to the solution of this doubt. Only a similar solution that is not yet supported by any browser: https://css-tricks.com/css-attr-function-got-nothin-custom-properties/#article-header-id-2
Look at this CSS writing methodology
<input type="text" class="focus:bg-red">
here you have more details https://answall.com/questions/432733/methodologia-de-escrita-css-usando-no-classe-tailwind-css– hugocsl