-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathtailwind.config.ts
178 lines (175 loc) · 5.71 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
import { nextui } from "@nextui-org/theme";
import type { Config } from "tailwindcss";
import plugin from "tailwindcss/plugin";
const config: Config = {
content: [
"./src/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
colors: {
orange: {
50: "hsl(28, 91%, 95%)",
100: "hsl(28, 91%, 90%)",
200: "hsl(28, 91%, 80%)",
300: "hsl(28, 91%, 70%)",
400: "hsl(28, 91%, 65%)",
500: "hsl(28, 91%, 60%)",
600: "hsl(28, 91%, 50%)",
700: "hsl(28, 91%, 40%)",
800: "hsl(28, 91%, 30%)",
900: "hsl(28, 91%, 20%)",
950: "hsl(28, 91%, 10%)",
},
},
backgroundOpacity: {
"85": "0.85",
},
keyframes: {
"scrolling-banner": {
from: { transform: "translateX(0)" },
to: { transform: "translateX(calc(-50% - var(--gap)/2))" },
},
"scrolling-banner-vertical": {
from: { transform: "translateY(0)" },
to: { transform: "translateY(calc(-50% - var(--gap)/2))" },
},
},
animation: {
"scrolling-banner": "scrolling-banner var(--duration) linear infinite",
"scrolling-banner-vertical":
"scrolling-banner-vertical var(--duration) linear infinite",
},
backgroundImage: {
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
"gradient-conic":
"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
},
fontFamily: {
zepto: ["Zepto", "sans-serif"],
},
},
},
darkMode: "class",
plugins: [
nextui({
addCommonColors: true,
defaultTheme: "dark",
defaultExtendTheme: "dark",
layout: {},
themes: {
light: {
layout: {},
colors: {
background: "hsl(0, 0%, 100%)",
foreground: "hsl(0, 0%, 0%)",
primary: {
50: "hsl(28, 91%, 95%)",
100: "hsl(28, 91%, 90%)",
200: "hsl(28, 91%, 80%)",
300: "hsl(28, 91%, 70%)",
400: "hsl(28, 91%, 65%)",
500: "hsl(28, 91%, 60%)",
600: "hsl(28, 91%, 50%)",
700: "hsl(28, 91%, 40%)",
800: "hsl(28, 91%, 30%)",
900: "hsl(28, 91%, 20%)",
DEFAULT: "hsl(28, 91%, 60%)",
foreground: "hsl(0, 0%, 0%)",
},
secondary: "hsl(0, 0%, 96%)",
},
},
dark: {
layout: {}, // Add this empty object
colors: {
background: "hsl(0, 0%, 0%)",
foreground: "hsl(0, 0%, 100%)",
secondary: {
DEFAULT: "hsl(var(--nextui-default-500))",
foreground: "hsl(var(--nextui-default-500))",
},
primary: {
50: "hsl(28, 91%, 95%)",
100: "hsl(28, 91%, 90%)",
200: "hsl(28, 91%, 80%)",
300: "hsl(28, 91%, 70%)",
400: "hsl(28, 91%, 65%)",
500: "hsl(28, 91%, 60%)",
600: "hsl(28, 91%, 50%)",
700: "hsl(28, 91%, 40%)",
800: "hsl(28, 91%, 30%)",
900: "hsl(28, 91%, 20%)",
DEFAULT: "hsl(28, 91%, 60%)",
foreground: "hsl(0, 0%, 100%)",
},
},
},
},
}),
plugin(({ addBase, theme }) => {
addBase({
":root": {
"--orange-50": theme("colors.orange.50"),
"--orange-100": theme("colors.orange.100"),
"--orange-200": theme("colors.orange.200"),
"--orange-300": theme("colors.orange.300"),
"--orange-400": theme("colors.orange.400"),
"--orange-500": theme("colors.orange.500"),
"--orange-600": theme("colors.orange.600"),
"--orange-700": theme("colors.orange.700"),
"--orange-800": theme("colors.orange.800"),
"--orange-900": theme("colors.orange.900"),
"--orange-950": theme("colors.orange.950"),
},
body: {
"@media (min-width: 1024px)": {
backgroundImage: `
radial-gradient(circle at 50% 0%, ${theme(
"colors.orange.800"
)}, transparent 12%),
radial-gradient(circle at 0% 50%, ${theme(
"colors.orange.800"
)}, transparent 12%),
radial-gradient(circle at 100% 50%, ${theme(
"colors.orange.800"
)}, transparent 12%)
`,
backgroundSize: "80vw 40vh, 40vw 80vh, 40vw 80vh",
backgroundPosition: "top center, left center, right center",
backgroundRepeat: "no-repeat",
backgroundAttachment: "fixed",
},
},
".prose": {
"--tw-prose-links": theme("colors.orange.500"),
"--tw-prose-invert-links": theme("colors.orange.400"),
},
"button, .button": {
transition: "all 0.3s ease",
"&:hover": {
transform: "translateY(-2px)",
boxShadow: "0 4px 6px rgba(0, 0, 0, 0.1)",
},
},
".card": {
backgroundImage: `linear-gradient(135deg, ${theme(
"colors.orange.950"
)}, transparent)`,
borderColor: theme("colors.orange.800"),
boxShadow:
"0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08)",
},
".dark .card": {
backgroundImage: `linear-gradient(135deg, ${theme(
"colors.orange.900"
)}, transparent)`,
borderColor: theme("colors.orange.700"),
},
});
}),
],
};
export default config;