Skip to content

Glossary: Tailwind CSS

Lookup object

Also written: object, sizes[size]

In JavaScript, an object is a set of `name: value` pairs in braces, and a lookup object uses one to map a prop value like `"sm"` to a string of complete class names. This lets Tailwind find every class, which it cannot do when class names are built from pieces.

Where the book teaches it

Related terms

PropsSource detection