-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.mjs
60 lines (60 loc) · 1.35 KB
/
tailwind.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const {nextui} = require("@nextui-org/react");
/** @type {import('tailwindcss').Config} */
export default {
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}",
],
theme: {
extend: {
colors: {
background: "var(--background)",
foreground: "var(--foreground)",
},
},
},
darkMode: "class",
module: {
rules: [
{
test: /\.css$/i,
use: [MiniCssExtractPlugin.loader, "css-loader"],
},
],
},
plugins: [
new MiniCssExtractPlugin(),
nextui({
prefix: "nextui",
themes: {
"light": {
layout: {
background: "#e2e2e2",
text: "#09090b",
border: "#101010",
},
colors: {
primary: "#202020",
secondary: "#101010",
accent: "#09090b",
},
},
"dark": {
layout: {
background: "#09090b",
text: "#e2e2e2",
border: "#101010",
},
colors: {
primary: "#202020",
secondary: "#101010",
accent: "#e2e2e2",
},
},
},
}),
],
};