Gotcha: Mixing Tailwind's spacing scale with arbitrary pixel values frequently (e.g., `m-[3px]`, `p-[7px]`). While sometimes necessary for pixel-perfect adjustments, overdoing it can undermine the visual consistency Tailwind aims to provide. It's generally better to stick to Tailwind's predefined scale (e.g., `m-1`, `p-2`) for a more harmonious design.
Notice how the custom `mt-[5px]` here feels slightly 'off' when next to scaled elements.
The `mt-1` here aligns perfectly with the scale.
Try to exhaust Tailwind's spacing scale options (`m-0.5`, `m-1`, `m-1.5`, `m-2`, etc., and their `p-*` counterparts) before resorting to arbitrary values like `m-[value]`. This helps maintain the design system's integrity and visual harmony. If you find yourself using many arbitrary values, consider customizing your `tailwind.config.js` to extend the spacing scale.