From be90e69d14fabf57d7d8596040625e195eeb0109 Mon Sep 17 00:00:00 2001 From: Takeshi Kimata <117462761+kimatata@users.noreply.github.com> Date: Fri, 22 Mar 2024 23:33:51 +0900 Subject: [PATCH] Change nextui theme color --- frontend/tailwind.config.js | 37 ++++++++++++++++++++++++++++++------- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js index 8e57551..6d15db2 100644 --- a/frontend/tailwind.config.js +++ b/frontend/tailwind.config.js @@ -1,16 +1,39 @@ -import {nextui} from '@nextui-org/theme' +import { nextui } from "@nextui-org/theme"; /** @type {import('tailwindcss').Config} */ module.exports = { content: [ - './pages/**/*.{js,ts,jsx,tsx,mdx}', - './components/**/*.{js,ts,jsx,tsx,mdx}', - './app/**/*.{js,ts,jsx,tsx,mdx}', - './node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}' + "./pages/**/*.{js,ts,jsx,tsx,mdx}", + "./components/**/*.{js,ts,jsx,tsx,mdx}", + "./app/**/*.{js,ts,jsx,tsx,mdx}", + "./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}", ], theme: { extend: {}, }, darkMode: "class", - plugins: [nextui()], -} + plugins: [ + nextui({ + themes: { + light: { + colors: { + primary: { + DEFAULT: "#030712", + foreground: "#FFFFFF", + }, + focus: "#030712", + }, + }, + dark: { + colors: { + primary: { + DEFAULT: "#d1d5db", + foreground: "#000000", + }, + focus: "#d1d5db", + }, + }, + }, + }), + ], +};