\n\u003C/template>\n```\n\n### Description\n\nhttps://skr.sh/vT9fUh9cK0d\n\nAfter change `1` transforms to `\"1\"` and got error in console.",[2059,2062,2065],{"name":2060,"color":2061},"bug","d73a4a",{"name":2063,"color":2064},"duplicate","cfd3d7",{"name":2066,"color":2067},"v3","49DCB8",2886,"ui","USelect converts integer value to string","2025-01-09T14:22:11Z","https://github.com/nuxt/ui/issues/2886",0.6706115,{"description":2075,"labels":2076,"number":2081,"owner":1985,"repository":2069,"state":2017,"title":2082,"updated_at":2083,"url":2084,"score":2085},"### For what version of Nuxt UI are you asking this question?\n\nv3.0.0-alpha.x\n\n### Description\n\nIn my Nuxt 3 project (that uses Nuxt UI `v3.0.0-alpha9`), I have a Vue component like this:\n\n```vue\n\u003Cscript setup lang=\"ts\">\n...\n\u003C/script>\n\n\u003Ctemplate>\n \u003CUContainer class=\"section\">\n ...\n \u003C/UContainer>\n\u003C/template>\n\n\u003Cstyle scoped lang=\"scss\">\n@use \"tailwindcss\";\n\n.section + .section {\n @apply mt-8 lg:mt-12;\n}\n\u003C/style>\n```\n\nThe problem is that `@apply mt-8 lg:mt-12;` doesn't work unless I add this to my `nuxt.config.ts`:\n```\npostcss: {\n plugins: {\n \"@tailwindcss/postcss\": {}, // https://tailwindcss.com/docs/v4-beta#using-post-css\n },\n},\n```\n\nHowever, when I do this, the Nuxt UI components stop working properly (e.g., Slideover renders at the bottom of the page and with wrong styling). How can I make the `@apply ...` work without breaking the Nuxt UI components?\n\nThis is my `package.json`:\n```json\n{\n \"name\": \"frontend\",\n \"private\": true,\n \"type\": \"module\",\n \"scripts\": {\n \"postinstall\": \"husky install && nuxt prepare\",\n \"dev\": \"nuxt dev\",\n \"build\": \"nuxt build\",\n \"preview\": \"nuxt preview\"\n },\n \"dependencies\": {\n \"@nuxt/ui\": \"^3.0.0-alpha.9\",\n \"nuxt\": \"latest\",\n \"nuxt-svgo\": \"latest\",\n \"vue\": \"latest\",\n \"vue-router\": \"latest\"\n },\n \"devDependencies\": {\n \"@commitlint/cli\": \"latest\",\n \"@commitlint/config-conventional\": \"latest\",\n \"husky\": \"latest\",\n \"sass\": \"latest\"\n }\n}\n```\n\nThis is my `nuxt.config.ts`:\n```ts\n// https://nuxt.com/docs/api/configuration/nuxt-config\nexport default defineNuxtConfig({\n compatibilityDate: \"2024-04-03\",\n devtools: { enabled: false },\n modules: [\"@nuxt/ui\", \"nuxt-svgo\"],\n css: [\"@/assets/css/main.css\"],\n // postcss: {\n // plugins: {\n // \"@tailwindcss/postcss\": {}, // https://tailwindcss.com/docs/v4-beta#using-post-css\n // },\n // },\n appConfig: {\n // https://ui3.nuxt.dev/getting-started/theme#colors\n ui: {\n colors: {\n primary: \"primary\", // Defined in `assets/css/theme.css`\n secondary: \"secondary\", // Defined in `assets/css/theme.css`\n },\n },\n },\n});\n```\n\nThis is my `assets/main.css`:\n```css\n/* https://ui3.nuxt.dev/getting-started/installation/nuxt#import-tailwind-css-and-nuxt-ui-in-your-css */\n@import \"tailwindcss\";\n@import \"@nuxt/ui\";\n```",[2077,2080],{"name":2078,"color":2079},"question","d876e3",{"name":2066,"color":2067},2772,"@apply Tailwind CSS class in a component's `\u003Cstyle>` tag","2024-12-09T11:14:28Z","https://github.com/nuxt/ui/issues/2772",0.6720215,{"description":2087,"labels":2088,"number":2091,"owner":1985,"repository":1985,"state":2017,"title":2092,"updated_at":2093,"url":2094,"score":2095},"### Environment\n\nNuxt project info: (copied to clipboard) 2:12:15 PM\n\n------------------------------\n- Operating System: Darwin\n- Node Version: v18.18.2\n- Nuxt Version: 3.14.0\n- CLI Version: 3.16.0\n- Nitro Version: 2.10.4\n- Package Manager: yarn@3.2.4\n- Builder: webpack\n- User Config: default\n- Runtime Modules: @pinia/nuxt@0.4.11, floating-vue/nuxt, @nuxtjs/style-resources@2.0.0, ~/modules\n- Build Modules: -\n------------------------------\n\n### Reproduction\n\n\n WARN [nuxt] could not import postcss plugin postcss-import. Please report this as a bug. 2:07:55 PM\n\n\n WARN [nuxt] could not import postcss plugin postcss-import. Please report this as a bug. 2:07:55 PM\n\n\n WARN [nuxt] could not import postcss plugin postcss-url. Please report this as a bug. 2:07:55 PM\n\n\n WARN [nuxt] could not import postcss plugin postcss-url. Please report this as a bug. 2:07:55 PM\n\n\n WARN [nuxt] could not import postcss plugin postcss-import. Please report this as a bug. 2:07:55 PM\n\n\n WARN [nuxt] could not import postcss plugin postcss-import. Please report this as a bug. 2:07:55 PM\n\n\n WARN [nuxt] could not import postcss plugin postcss-url. Please report this as a bug. 2:07:56 PM\n\n\n WARN [nuxt] could not import postcss plugin postcss-url. Please report this as a bug. 2:07:56 PM\n\n\n WARN [nuxt] could not import postcss plugin postcss-import. Please report this as a bug. 2:07:56 PM\n\n\n WARN [nuxt] could not import postcss plugin postcss-import. Please report this as a bug. 2:07:56 PM\n\n\n WARN [nuxt] could not import postcss plugin postcss-url. Please report this as a bug. 2:07:56 PM\n\n\n WARN [nuxt] could not import postcss plugin postcss-url. Please report this as a bug. 2:07:56 PM\n\n\n WARN [nuxt] could not import postcss plugin postcss-import. Please report this as a bug. 2:07:56 PM\n\n\n WARN [nuxt] could not import postcss plugin postcss-import. Please report this as a bug. 2:07:56 PM\n\n\n WARN [nuxt] could not import postcss plugin postcss-url. Please report this as a bug. 2:07:56 PM\n\n\n WARN [nuxt] could not import postcss plugin postcss-url. Please report this as a bug. 2:07:56 PM\n\n\n WARN [nuxt] could not import postcss plugin postcss-import. Please report this as a bug. 2:07:57 PM\n\n\n WARN [nuxt] could not import postcss plugin postcss-import. Please report this as a bug. 2:07:57 PM\n\n\n WARN [nuxt] could not import postcss plugin postcss-url. Please report this as a bug. 2:07:57 PM\n\n\n WARN [nuxt] could not import postcss plugin postcss-url. Please report this as a bug. 2:07:57 PM\n\n\n WARN [nuxt] could not import postcss plugin postcss-import. Please report this as a bug. 2:07:57 PM\n\n\n WARN [nuxt] could not import postcss plugin postcss-import. Please report this as a bug. 2:07:57 PM\n\n\n WARN [nuxt] could not import postcss plugin postcss-url. Please report this as a bug. 2:07:58 PM\n\n\n WARN [nuxt] could not import postcss plugin postcss-url. Please report this as a bug. \n\n### Describe the bug\n\nRelated to this https://github.com/nuxt/nuxt/issues/28239\n\n### Additional context\n\n```\n \"dependencies\": {\n \"@babel/core\": \"^7.23.2\",\n \"@babel/preset-env\": \"^7.23.2\",\n \"@nuxt/kit\": \"3.14.0\",\n \"@nuxt/webpack-builder\": \"3.14.0\",\n \"@nuxtjs/style-resources\": \"^2.0.0\",\n \"@pinia/nuxt\": \"^0.4.11\",\n \"@vue/babel-plugin-jsx\": \"^1.1.5\",\n \"babel-loader\": \"^9.1.3\",\n \"cookie-universal\": \"^2.2.2\",\n \"core-js\": \"^3.24.1\",\n \"dotenv\": \"^16.4.5\",\n \"floating-vue\": \"^5.0.3\",\n \"moment\": \"^2.29.4\",\n \"nuxt\": \"3.14.0\",\n \"nuxt-user-agent\": \"^1.2.2\",\n \"nuxt-webfontloader\": \"^1.1.0\",\n \"process\": \"^0.11.10\",\n \"vue\": \"3.5.13\",\n \"vue-i18n\": \"^10.0.4\",\n \"vue-router\": \"^4.2.5\",\n \"vue3-lazy-hydration\": \"^1.2.1\",\n \"vuex\": \"^4.1.0\"\n },\n \"devDependencies\": {\n \"eslint\": \"^8.57.0\",\n \"eslint-config-standard\": \"^17.1.0\",\n \"eslint-plugin-import\": \"^2.29.1\",\n \"eslint-plugin-jest\": \"^27.9.0\",\n \"eslint-plugin-n\": \"^16.6.2\",\n \"eslint-plugin-promise\": \"^6.1.1\",\n \"eslint-plugin-vue\": \"^9.23.0\",\n \"eslint-plugin-workspaces\": \"^0.10.0\",\n \"jest\": \"^29.2.2\",\n \"vue-eslint-parser\": \"^9.4.2\"\n }\n```\n\n### Logs\n\n```shell-script\n\n```",[2089,2090],{"name":2036,"color":2037},{"name":2039,"color":2040},30097,"Could not import postcss plugin with ESM #28239","2025-03-24T23:14:49Z","https://github.com/nuxt/nuxt/issues/30097",0.6723378,{"description":2097,"labels":2098,"number":2101,"owner":1985,"repository":2069,"state":2017,"title":2102,"updated_at":2103,"url":2104,"score":2105},"### Description\n\nBefore using `nuxt ui`, I briefly skimmed through the repository and found an already closed issue: [3018](https://github.com/nuxt/ui/issues/3018)\n\nThe error and solution mentioned in this issue (the [v2 documentation](https://ui.nuxt.com/getting-started/installation) indeed did not mention the solution) can actually be resolved by adding `tailwindcss@next` to the `peerDependencies` section in the `package.json` file.\n\nThis is because when [nuxi module add](https://github.com/nuxt/cli/blob/1afc06e8d08ea781fc5fede343de8d68865c2b4e/packages/nuxi/src/commands/module/add.ts#L134) installs a module, it not only installs the module itself but also scans the module package's `peerDependencies`.\n\nFor example, when using `nuxi module add pinia`, since `@pinia/nuxt` has `pinia` listed in its `peerDependencies` in the [package.json](https://github.com/vuejs/pinia/blob/3b21e08b6a068d18112b915b83f702fb5504ab73/packages/nuxt/package.json#L51C4-L51C20), both `@pinia/nuxt` and `pinia` will be automatically installed during the module installation.\n\nIf there are dependencies in `peerDependencies` that you do not want `nuxi module` to install automatically, you can use `peerDependenciesMeta` to ignore them, for [example](https://github.com/atinux/nuxt-auth-utils/blob/6b61b8888e3b3c6f60fd5ff767b7f0aa6cf09fc9/package.json#L57):\n\n```\n\"peerDependenciesMeta\": {\n \"pinia\": {\n \"optional\": true\n }\n },\n```\n\nTherefore, Nuxt UI can specify `tailwindcss@next` in the `peerDependencies` of `package.json`, ensuring Tailwind CSS is automatically installed when the Nuxt UI module is installed.\n\nThis solution applies to both v3 and v2.\n\n> PS: I noticed `typescript` in the `peerDependencies` of the v3 package.json. Is this a necessary dependency similar to `tailwindcss`? If not, after adding tailwindcss, perhaps `peerDependenciesMeta` could be used to ignore it.",[2099,2100],{"name":2078,"color":2079},{"name":2066,"color":2067},3349,"Add \"tailwindcss@next\" to the \"peerDependencies\" section in the package.json file.","2025-02-21T17:05:10Z","https://github.com/nuxt/ui/issues/3349",0.6768212,["Reactive",2107],{},["Set"],["ShallowReactive",2110],{"TRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"wIA1RNnnk_WOQzZ6oTtzNdLoaGOil41-6wYwhYeTGFg":-1},"/nuxt/test-utils/592"]