tailwind.config.js

The JavaScript configuration file older Tailwind versions used to define theme values, replaced in version 4 by @theme in CSS.

In more detail

In version 3 tokens were defined in JavaScript and copied into generated CSS, so they lived in two places. Version 4 can still load such a file, but the recommended approach is to keep tokens in the stylesheet.

Related terms

Taught in

References