Loading tutorials
Intermediate · Mid: 10 chapters · 31 min read. States assumed prerequisites
Start readingp-4 and text-lg, and variant prefixes such as hover: and md:.p-4 and variants such as hover:. You should already know that square brackets turn a utility into an arbitrary value, such as w-[317px]. Here you wilw-[317px] and that you know what a CSS custom property (variable) is. You should also be comfortable with Tailwind utilities like text-lg and border-2.w-[317px]. It also assumes you know CSS custom properties (--name: value, read with var(--name)) and the calc() function. Here you will put variables and calc() inside arbitrary values and avoid thep-4 and variant prefixes such as hover: and md:. You have already seen arbitrary values like w-[317px]. Here you will go one step further and p-4 and bg-blue-500, and variant prefixes such as hover: and md:. It also assumes you have seen the square-bracket syntax for arbitrary values, like w-[317px].hover: and md:. You should also know basic CSS selectors and at-rules like @media and @supports. It builds on arbitrary values (square brackets for one-off values) and arbitrary properties (square brackets for a ww-[317px], and that you know variants like hover: and md:. It also assumes basic JavaScript, such as template strings and objects. You will learn how Tailwind finds class names in your code, why building names from pieces breaks that,w-[317px]), arbitrary properties ([mask-type:luminance]) and arbitrary variants. It also assumes you know why Tailwind needs complete class names in your source. Here you will decide which tool fits a given style.