Change nextui theme color

This commit is contained in:
Takeshi Kimata
2024-03-22 23:33:51 +09:00
parent 42aefe306f
commit be90e69d14

View File

@@ -1,16 +1,39 @@
import {nextui} from '@nextui-org/theme' import { nextui } from "@nextui-org/theme";
/** @type {import('tailwindcss').Config} */ /** @type {import('tailwindcss').Config} */
module.exports = { module.exports = {
content: [ content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}', "./pages/**/*.{js,ts,jsx,tsx,mdx}",
'./components/**/*.{js,ts,jsx,tsx,mdx}', "./components/**/*.{js,ts,jsx,tsx,mdx}",
'./app/**/*.{js,ts,jsx,tsx,mdx}', "./app/**/*.{js,ts,jsx,tsx,mdx}",
'./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}' "./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}",
], ],
theme: { theme: {
extend: {}, extend: {},
}, },
darkMode: "class", 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",
},
},
},
}),
],
};