bg-[#123abc] or p-[10px]?Arbitrary values let you write exact CSS values inside Tailwind classes. This helps when the default scale doesn't have what you want, so you can still use Tailwind's utility system with custom values.
Arbitrary values in Tailwind must be wrapped in square brackets with no spaces, like m-[7px]. Other forms are invalid syntax.
bg-[#ff4500]#ff4500 is a known bright orange-red color.The class bg-[#ff4500] sets the background color exactly to the hex color #ff4500, which is a bright orange-red shade.
In Tailwind, pseudo-classes like hover: prefix the utility class. So hover:p-[3rem] applies 3rem padding on hover.
bg-[#123456] in Tailwind, what should you always check to ensure good accessibility?Using arbitrary colors can cause poor contrast with text. Always check contrast ratios to keep text readable and accessible for all users.
