Replies: 2 comments 4 replies
-
|
I ran into the same issue while setting up Tailwind with Nuxt. The TypeScript error happens because the plugin returned by import tailwindcss from "@tailwindcss/vite"
export default defineNuxtConfig({
compatibilityDate: "2025-07-15",
devtools: { enabled: true },
vite: {
plugins: [
tailwindcss() as any,
],
},
})I also hit the 404 error mentioned in step 5 of the guide. The path in the docs uses css: ['~/assets/css/main.css']After updating the path, the stylesheet loaded correctly and the 404 error disappeared. Might be worth updating the docs to reflect this |
Beta Was this translation helpful? Give feedback.
-
|
One possible approach could be exposing the filter chain so plugins can append to it instead of redefining the whole property. CSS If there were a shared extension point (for example something like That would keep the composable model while making custom filter utilities easier to extend. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Some default utilities rely on pre-defined css variable chains to compose the value of a single css property. One example would be filter utilities which include a common filter chain that translates into something like
When wanting to create custom filter utilities using either the
@utilitysyntax or the js plugin API, we need to either throw that system out completely or manually redeclare an extended version of the variable chain (without guarantee that other custom utilities would be compatible). Could there be an API to conventionally extend such variable chains such that both default utilities and custom ones would take into account the updated base?Beta Was this translation helpful? Give feedback.
All reactions