-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
138 lines (136 loc) · 3.87 KB
/
tailwind.config.ts
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
import type { Config } from "tailwindcss";
import type { PluginUtils } from "tailwindcss/types/config";
import { nextui } from "@nextui-org/react";
const config: Config = {
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}",
],
darkMode: "class",
theme: {
extend: {
fontSize: {
h1: "48px",
h2: "36px",
h3: "30px",
h4: "24px",
h5: "20px",
h6: "16px",
},
backgroundColor: {
graish: "rgba(63, 63, 70, 0.4)",
},
typography: ({ theme }: PluginUtils) => ({
DEFAULT: {
css: {
color: theme("colors.foreground"),
a: {
color: theme("colors.primary.DEFAULT"),
"&:hover": {
color: theme("colors.primary.600"),
},
},
h1: { color: theme("colors.foreground") },
h2: { color: theme("colors.foreground") },
h3: { color: theme("colors.foreground") },
h4: { color: theme("colors.foreground") },
h5: { color: theme("colors.foreground") },
h6: { color: theme("colors.foreground") },
strong: { color: theme("colors.foreground") },
code: { color: theme("colors.foreground") },
blockquote: {
borderLeftColor: theme("colors.primary.500"),
color: theme("colors.foreground"),
},
},
},
dark: {
css: {
color: theme("colors.foreground"),
a: {
color: theme("colors.primary.DEFAULT"),
"&:hover": {
color: theme("colors.primary.400"),
},
},
h1: { color: theme("colors.foreground") },
h2: { color: theme("colors.foreground") },
h3: { color: theme("colors.foreground") },
h4: { color: theme("colors.foreground") },
h5: { color: theme("colors.foreground") },
h6: { color: theme("colors.foreground") },
strong: { color: theme("colors.foreground") },
code: { color: theme("colors.primary.DEFAULT") },
blockquote: {
borderLeftColor: theme("colors.primary.400"),
color: theme("colors.foreground"),
},
},
},
}),
},
container: {
padding: {
DEFAULT: "1rem",
sm: "2rem",
lg: "4rem",
xl: "5rem",
"2xl": "6rem",
},
},
},
plugins: [
require("@tailwindcss/typography"),
nextui({
themes: {
light: {
layout: {},
colors: {
background: "#ffffff",
foreground: "#000",
primary: {
50: "#e6f1e7",
100: "#c0ddc4",
200: "#97c7a0",
300: "#6dbf7c",
400: "#47a858",
500: "#1c542b",
600: "#184a25",
700: "#133d1e",
800: "#0f2e18",
900: "#0a1f10",
DEFAULT: "#1c542b",
foreground: "#ffffff",
},
divider: "#0000001a",
},
},
dark: {
layout: {},
colors: {
background: "#000",
foreground: "#ffffff",
primary: {
50: "#E8F5E9",
100: "#C8E6C9",
200: "#A5D6A7",
300: "#81C784",
400: "#66BB6A",
500: "#4CAF50",
600: "#43A047",
700: "#388E3C",
800: "#2E7D32",
900: "#1B5E20",
DEFAULT: "#4CAF50",
foreground: "#ffffff",
},
divider: "#ffffff26",
},
},
},
}),
],
};
export default config;