PostCSS plugin that replaces Tailwind RGB(a) values with hexadecimal analogues
this code
.element {
border: 2px solid rgba(0, 0, 0, var(--tw-text-opacity));
}
converts to
.element {
border: 2px solid #000000;
}
npm i --save-dev @diverently/postcss-tailwind-hex
postcss([ require('postcss-tailwind-hex') ])
Please refer to PostCSS documentation for you current environment.
default: false
Process only rgb color values
default: false
Process only rgba color values
default: false
Omit verbose conversion logging