Best practices
- (source) Don’t use
@apply
just to make things look “cleaner”. Otherwise you are basically just writing CSS again and throwing away all of the workflow and maintainability advantages Tailwind gives you. - Play with tailwind
group-hover
with prefix
:not
in tailwind
Example: Don’t apply :hover
effect on the :disabled
button
Color preview doesn’t show in VSCode
If you have a custom color in tailwind config file that is CSS Variables, It will not show preview in VSCode (preview = a square containing the color before the class)