-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtailwind.config.js
103 lines (102 loc) · 2.67 KB
/
tailwind.config.js
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import { colors, nextui } from "@nextui-org/theme";
const typography = require("@tailwindcss/typography");
const primary = "#FA8946";
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./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: {
primary: primary,
secondary: colors.white,
secondaryCutoff: {
50: "#f9f9f9",
100: "#f3f3f3",
200: "#e0e0e0",
300: "#cccccc",
400: "#a6a6a6",
500: "#808080",
600: "#666666",
700: "#4d4d4d",
800: "#333333",
900: "#1a1a1a",
},
},
typography: {
// make default top and bottom margin 1
DEFAULT: {
css: {
"*": {
marginTop: "0",
marginBottom: "0",
},
},
},
}
},
},
darkMode: "class",
plugins: [
typography,
nextui({
prefix: "nextui",
addCommonColors: true,
themes: {
light: {
colors: {
primary: primary,
secondary: colors.white,
// content1: colors.white,
// content2: colors.black,
// content3: colors.black,
// content4: colors.black,
// content5: colors.black,
// default: colors.black,
// foreground: colors.black,
// background: colors.white,
// danger: colors.red[500],
// success: colors.green[500],
// warning: colors.yellow[500],
},
layout: {
fontSize: {
// large: "1.25rem",
// medium: "1rem",
// small: "0.875rem",
// tiny: "0.75rem",
},
},
},
dark: {
colors: {
primary: primary,
secondary: colors.black,
// content1: colors.black,
// content2: colors.white,
// content3: colors.white,
// content4: colors.white,
// content5: colors.white,
// default: colors.white,
// foreground: colors.white,
// background: colors.black,
// danger: colors.red[500],
// success: colors.green[500],
// warning: colors.yellow[500],
},
layout: {
fontSize: {
// large: "1.25rem",
// medium: "1rem",
// small: "0.875rem",
// tiny: "0.75rem",
},
},
},
},
}),
],
};