From 2df70ff0b258b0d8382fd89219f4711484e885dc Mon Sep 17 00:00:00 2001 From: Spencer Schoeneman <78219375+Spencer-Sch@users.noreply.github.com> Date: Sat, 2 Dec 2023 06:51:02 -0600 Subject: [PATCH] add light/dark theme change (#6) --- packages/nextjs/tailwind.config.js | 98 +----------------------------- 1 file changed, 2 insertions(+), 96 deletions(-) diff --git a/packages/nextjs/tailwind.config.js b/packages/nextjs/tailwind.config.js index 33cf01a..b346baf 100644 --- a/packages/nextjs/tailwind.config.js +++ b/packages/nextjs/tailwind.config.js @@ -7,104 +7,10 @@ module.exports = { "./node_modules/react-tailwindcss-datepicker/dist/index.esm.js", ], plugins: [require("daisyui")], - darkTheme: "scaffoldEthDark", + darkMode: ["class", '[data-theme="dark"]'], // DaisyUI theme colors daisyui: { - themes: [ - { - myTheme: { - primary: "#4b6bfb", - secondary: "#7b92b2", - accent: "#67cba0", - neutral: "#181a2a", - "neutral-content": "#edf2f7", - "base-100": "#ffffff", - "base-content": "#181a2a", - "--rounded-box": "0.25rem", - "--rounded-btn": ".125rem", - "--rounded-badge": ".125rem", - "--animation-btn": "0", - "--animation-input": "0", - "--btn-focus-scale": "1", - - // "--rounded-btn": "9999rem", - // ".tooltip": { - // "--tooltip-tail": "6px", - // }, - // ".link": { - // textUnderlineOffset: "2px", - // }, - // ".link:hover": { - // opacity: "80%", - // }, - }, - }, - // { - // scaffoldEth: { - // primary: "#93BBFB", - // "primary-content": "#212638", - // secondary: "#DAE8FF", - // "secondary-content": "#212638", - // accent: "#93BBFB", - // "accent-content": "#212638", - // neutral: "#212638", - // "neutral-content": "#ffffff", - // "base-100": "#ffffff", - // "base-200": "#f4f8ff", - // "base-300": "#DAE8FF", - // "base-content": "#212638", - // info: "#93BBFB", - // success: "#34EEB6", - // warning: "#FFCF72", - // error: "#FF8863", - - // "--rounded-btn": "9999rem", - - // ".tooltip": { - // "--tooltip-tail": "6px", - // }, - // ".link": { - // textUnderlineOffset: "2px", - // }, - // ".link:hover": { - // opacity: "80%", - // }, - // }, - // }, - // { - // scaffoldEthDark: { - // primary: "#212638", - // "primary-content": "#F9FBFF", - // secondary: "#323f61", - // "secondary-content": "#F9FBFF", - // accent: "#4969A6", - // "accent-content": "#F9FBFF", - // neutral: "#F9FBFF", - // "neutral-content": "#385183", - // "base-100": "#385183", - // "base-200": "#2A3655", - // "base-300": "#212638", - // "base-content": "#F9FBFF", - // info: "#385183", - // success: "#34EEB6", - // warning: "#FFCF72", - // error: "#FF8863", - - // "--rounded-btn": "9999rem", - - // ".tooltip": { - // "--tooltip-tail": "6px", - // "--tooltip-color": "hsl(var(--p))", - // }, - // ".link": { - // textUnderlineOffset: "2px", - // }, - // ".link:hover": { - // opacity: "80%", - // }, - // }, - // }, - ], + themes: ["light", "dark"], }, theme: { extend: {