Imports using tsconfig paths do not work

Author: ttoinoCreated Nov 9, 2025Updated Jan 13, 2026

What version of prettier-plugin-tailwindcss are you using?

v0.7.1

What version of Tailwind CSS are you using?

v4.1.17

What version of Node.js are you using?

v22.20.0

What package manager are you using?

pnpm v10.19.0

What operating system are you using?

Linux

Reproduction URL

https://github.com/ttoino/svelte-prettier-tailwind-error-repro

Relevant files are .prettierrc, src/app.css, and src/lib/test.css.

Describe your issue

@importing a CSS file in your tailwind stylesheet in a SvelteKit project results in an error when formatting if said file is in the $lib folder. This used to work in previous versions of the plugin (pre v0.7).

Source: tailwindlabs/prettier-plugin-tailwindcss