tailwind-v3-unavailable

A project where generate-types finds no loadable Tailwind CSS v3.

Message

A name in angle brackets is a value the message fills in.

absent

[csszyx] tailwind-v3-unavailable: `csszyx generate-types` reads a Tailwind v3 config, and this project has no Tailwind installed.
  help: install `tailwindcss@3` as a dev dependency, such as `npm install -D tailwindcss@3`; on Tailwind v4 the theme lives in CSS under `@theme`, and this command is not needed.
  note: `@csszyx/cli` lists Tailwind v3 as an optional peer, so installing the CLI does not install it.
  docs: https://csszyx.com/e/tailwind-v3-unavailable

wrong-major

[csszyx] tailwind-v3-unavailable: `csszyx generate-types` reads a Tailwind v3 config, and this project has Tailwind <version>, which has no JavaScript config to read.
  help: declare the theme in CSS under `@theme`, which needs no generated types; to type a v3 config left over from a migration, run `npx -p tailwindcss@3 -p @csszyx/cli csszyx generate-types --config ./tailwind.config.js`.
  note: `tailwind.config.js` and the `resolveConfig` helper this command calls were removed in Tailwind v4.
  docs: https://csszyx.com/e/tailwind-v3-unavailable

broken-entry

[csszyx] tailwind-v3-unavailable: `csszyx generate-types` found Tailwind <version> but could not load its `resolveConfig` entry, so it cannot read the config.
  help: reinstall it, such as `npm install --force tailwindcss@3`; if the error stays, report this csszyx bug at https://github.com/nguyennhutien/csszyx/issues with this message.
  note: loading the entry reported: <reason>.
  docs: https://csszyx.com/e/tailwind-v3-unavailable

Arguments

The values this diagnostic names.

NameType
form'absent' | 'wrong-major' | 'broken-entry'
versionstringoptional
reasonstringoptional; text from another tool; may change between its versions