From fd5e8fc20018ed9d06733cdd33b4e18347957cf5 Mon Sep 17 00:00:00 2001 From: Nick Bland Date: Tue, 19 Jul 2022 14:19:51 +1000 Subject: [PATCH] Update to include DaisyUI over Headless --- package-lock.json | 16 ++-------------- package.json | 4 ++-- tailwind.config.js | 7 ++++++- 3 files changed, 10 insertions(+), 17 deletions(-) diff --git a/package-lock.json b/package-lock.json index ce854b4..028b512 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,9 +8,9 @@ "name": "website-2.0", "version": "0.1.0", "dependencies": { - "@headlessui/react": "^1.5.0", + "daisyui": "^1.25.4", "next": "^12.2.2", - "next-themes": "^0.1.1", + "next-themes": "^0.2.0", "react": "18.0.0", "react-dom": "18.0.0", "react-icons": "^4.3.1" @@ -72,18 +72,6 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, - "node_modules/@headlessui/react": { - "version": "1.6.6", - "resolved": "https://registry.npmjs.org/@headlessui/react/-/react-1.6.6.tgz", - "integrity": "sha512-MFJtmj9Xh/hhBMhLccGbBoSk+sk61BlP6sJe4uQcVMtXZhCgGqd2GyIQzzmsdPdTEWGSF434CBi8mnhR6um46Q==", - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "react": "^16 || ^17 || ^18", - "react-dom": "^16 || ^17 || ^18" - } - }, "node_modules/@humanwhocodes/config-array": { "version": "0.9.5", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.9.5.tgz", diff --git a/package.json b/package.json index 28c906b..3d98d2b 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,9 @@ "lint": "next lint" }, "dependencies": { - "@headlessui/react": "^1.5.0", + "daisyui": "^1.25.4", "next": "^12.2.2", - "next-themes": "^0.1.1", + "next-themes": "^0.2.0", "react": "18.0.0", "react-dom": "18.0.0", "react-icons": "^4.3.1" diff --git a/tailwind.config.js b/tailwind.config.js index 1010358..4ae6098 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -31,5 +31,10 @@ module.exports = { }, }, }, - plugins: [], + plugins: [ + require("daisyui") + ], + daisyui: { + themes: false, + }, }