{"_id":"@daver987/naive-ui-nuxt","name":"@daver987/naive-ui-nuxt","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.2":{"name":"@daver987/naive-ui-nuxt","type":"module","version":"1.0.2","packageManager":"pnpm@8.6.5","description":"Nuxt 3 Naive UI library module fork","author":{"name":"David Robertson","email":"info@drobertson.pro"},"license":"MIT","funding":"https://github.com/sponsors/daver987","homepage":"https://github.com/daver987/naive-ui-nuxt","repository":{"type":"git","url":"git+https://github.com/daver987/naive-ui-nuxt.git"},"bugs":{"url":"https://github.com/daver987/naive-ui-nuxt/issues"},"keywords":["nuxt 3","naive","naive ui","nuxt 3 module","plugin"],"exports":{".":{"types":"./dist/types.d.ts","require":"./dist/module.cjs","import":"./dist/module.mjs"}},"main":"./dist/module.cjs","types":"./dist/types.d.ts","engines":{"node":">=16","pnpm":">=8"},"scripts":{"dev":"pnpm nuxi dev playground-nuxt","build":"pnpm dev:prepare && pnpm nuxt-module-build","dev:build":"nuxi build playground-nuxt","dev:prepare":"nuxt-module-build --stub && nuxi prepare playground-nuxt","play":"pnpm --filter playground-nuxt dev","play:vue":"pnpm --filter playground-vue dev","prepublishOnly":"pnpm run build","release":"pnpm build && bumpp --commit --push --tag && pnpm publish","lint":"eslint .","lint:fix":"eslint . --fix","test":"pnpm build && vitest","test:watch":"pnpm dev:prepare && vitest --watch","coverage":"vitest run --coverage"},"peerDependencies":{"vue":">=3.3.0"},"dependencies":{"@css-render/vue3-ssr":"^0.15.12","@nuxt/kit":"^3.6.1","defu":"^6.1.2","naive-ui":"^2.34.4"},"devDependencies":{"@antfu/eslint-config":"^0.39.6","@nuxt/module-builder":"^0.4.0","@nuxt/schema":"^3.6.1","@nuxt/test-utils":"^3.6.1","@vitejs/plugin-vue":"^4.2.3","@vitest/coverage-c8":"^0.32.4","@vue-macros/volar":"^0.11.0","@vue/test-utils":"^2.4.0","bumpp":"^9.1.1","eslint":"^8.44.0","jsdom":"^22.1.0","typescript":"^5.1.6","unbuild":"^1.2.1","unconfig":"^0.3.9","unplugin-vue-macros":"^2.3.0","vite":"4.3.9","vite-plugin-dts":"^3.0.3","vitest":"^0.32.4","vue":"^3.3.4"},"publishConfig":{"access":"public"},"gitHead":"a5c0caacaac4ff05cf519d159e28f9d09de627f6","_id":"@daver987/naive-ui-nuxt@1.0.2","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-bhPNOWTkwcbs6sHzE2aZwa+Qb3VU09Nt09hp8jv0dkHffK983lPZsoGO/heQf/Oy81Aybh7pLfuURNr4PvGzVA==","shasum":"dcfc1323a9c891f44ea83cd519100adcea35b536","tarball":"https://registry.npmjs.org/@daver987/naive-ui-nuxt/-/naive-ui-nuxt-1.0.2.tgz","fileCount":12,"unpackedSize":14882,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHwpbc3vwO/Jhf4Z3aDUVMrWt8pYhWJI1dIQqN8Nqg9EAiEA+X8tfI7+Wq4tLFOUf++yMFNbYEaJHF+cg6aooY53obA="}]},"_npmUser":{"name":"daver987","email":"info@drobertson.pro"},"directories":{},"maintainers":[{"name":"daver987","email":"info@drobertson.pro"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/naive-ui-nuxt_1.0.2_1688440875558_0.6163114399814058"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-04T03:21:15.492Z","1.0.2":"2023-07-04T03:21:15.717Z","modified":"2023-07-04T03:21:15.901Z"},"maintainers":[{"name":"daver987","email":"info@drobertson.pro"}],"description":"Nuxt 3 Naive UI library module fork","homepage":"https://github.com/daver987/naive-ui-nuxt","keywords":["nuxt 3","naive","naive ui","nuxt 3 module","plugin"],"repository":{"type":"git","url":"git+https://github.com/daver987/naive-ui-nuxt.git"},"author":{"name":"David Robertson","email":"info@drobertson.pro"},"bugs":{"url":"https://github.com/daver987/naive-ui-nuxt/issues"},"license":"MIT","readme":"![alt text](https://github.com/huntersofbook/naive-ui-nuxt/blob/main/.github/assets/naive-ui-nuxt.png?raw=true)\n\n# Naive UI Nuxt 3 Module\n<br/>\n\n<p>\n      <a href=\"https://www.npmjs.com/package/@huntersofbook/naive-ui-nuxt\"><img src=\"https://img.shields.io/npm/v/@huntersofbook/naive-ui-nuxt.svg?style=flat&colorA=002438&colorB=28CF8D\" alt=\"Version\"></a>\n      <a href=\"https://www.npmjs.com/package/@huntersofbook/naive-ui-nuxt\"><img src=\"https://img.shields.io/npm/dm/@huntersofbook/naive-ui-nuxt.svg?style=flat&colorA=002438&colorB=28CF8D\" alt=\"Downloads\"></a>\n      <a href=\"./LICENSE\"><img src=\"https://img.shields.io/github/license/huntersofbook/naive-ui-nuxt.svg?style=flat&colorA=002438&colorB=28CF8D\" alt=\"License\"></a>\n      <a href=\"https://github.com/huntersofbook/naive-ui-nuxt\">\n      <img src=\"https://img.shields.io/github/stars/huntersofbook/naive-ui-nuxt.svg?style=social&label=Star&maxAge=2592000\" alt=\"Github Stars\"> </a>\n      <a href=\"https://chat.huntersofbook.com\"> <img src=\"https://img.shields.io/discord/1008640116564181023?color=7289da&label=Discord&logo=discord&logoColor=white\" alt=\"Discord\"></a>\n</p>\n\n### @huntersofbook/naive-ui-nuxt [![npm](https://img.shields.io/npm/v/@huntersofbook/naive-ui-nuxt.svg)](https://npmjs.com/package/@huntersofbook/naive-ui-nuxt)\n<br/>\n\nThis module huntersofbook team created.\n\n> [Naive UI](https://www.naiveui.com/en-US/light/components/button) integration for [Nuxt](https://nuxtjs.org)\n\n## Features\n\n- Zero-config required\n- Auto-import component and imports\n- Tailwind CSS support\n\n## Setup\n```\npnpm add @huntersofbook/naive-ui-nuxt\n```\n```\nyarn add @huntersofbook/naive-ui-nuxt\n```\n```\nnpm add @huntersofbook/naive-ui-nuxt\n```\n### Nuxt Config\n\n```ts\nexport default defineNuxtConfig({\n  modules: [\n    '@huntersofbook/naive-ui-nuxt'\n  ],\n\n  // Optionally, specify global naive-ui config\n  // Supports options that are normally set via 'n-config-provider'\n  // https://www.naiveui.com/en-US/os-theme/docs/customize-theme\n  naiveUI: {\n    themeOverrides: {\n      common: {\n        primaryColor: '#ff0000',\n        primaryColorHover: '#8b0000'\n      }\n    }\n  }\n})\n```\n\n### Composables\n\n```vue\n<script setup lang=\"ts\">\nimport { darkTheme } from 'naive-ui'\n</script>\n\n<template>\n  <NConfigProvider :theme=\"darkTheme\">\n    <NGlobalStyle />\n    <div>\n      Nuxt module playground!\n      <NButton>Default</NButton>\n    </div>\n  </NConfigProvider>\n</template>\n```\n\n\n### How to fix naive-ui nuxt conflict with tailwindcss Preflight style ?\n\nThe real reason is that tailwind has a preset default style of Preflight, which is friendly to new projects, but when we integrate tailwindcss into existing projects, it will cause style conflicts, we only need to disable this tailwindcss Preflight The style settings in your tailwind.config.js or tailwind.config.cjs\n\n```ts\nmodule.exports = {\n  corePlugins: {\n    preflight: false,\n  }\n}\n```\n\nRefer to tailwind css official website for explanation：\nhttps://tailwindcss.com/docs/preflight#disabling-preflight\n\n\n## 💻 Development\n\n- Clone this repository\n- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable` (use `npm i -g corepack` for Node.js < 16.10)\n- Install dependencies using `pnpm install`\n- Stub module with `pnpm dev:prepare`\n- Run `pnpm dev` to start [playground](./playground) in development mode\n\n\n## Thanks\n\nThanks to [@07akioni](https://github.com/07akioni), this project is heavily inspired by [naive-ui-nuxt-demo](https://github.com/07akioni/naive-ui-nuxt-demo).\n\nThanks to [@tobiasdiez](https://github.com/tobiasdiez), this project is inspired by some code structure.\nz\n\n\n## Sponsors\n\n<p align=\"center\">\n  <a href=\"https://cdn.jsdelivr.net/gh/oku-ui/static/sponsors/sponsors.svg\">\n    <img alt=\"sponsors\" src='https://cdn.jsdelivr.net/gh/oku-ui/static/sponsors/sponsors.svg'/>\n  </a>\n</p>\n\n\n## License\n\nMIT License © 2022-PRESENT [productdevbook](https://github.com/productdevbook)\n","readmeFilename":"README.md"}