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
|
/** @type {import('tailwindcss').Config} */
const colors = require("tailwindcss/colors");
const lightColors = {
text: colors.black,
background: colors.yellow[50],
primary: "#7df9ff",
secondary: "#9723c9",
accent: "#fffF00",
};
const light = Object.keys(lightColors).reduce((acc, key) => {
acc[`light${key}`] = lightColors[key];
return acc;
}, {});
const darkColors = {
text: colors.white,
background: colors.slate[900],
primary: "#7df9ff",
secondary: "#9723c9",
accent: "#fffF00",
};
const dark = Object.keys(darkColors).reduce((acc, key) => {
acc[`dark${key}`] = darkColors[key];
return acc;
}, {});
module.exports = {
content: ["./src/**/*.{js,jsx,ts,tsx,mdx}"],
darkMode: ["class", '[data-theme="dark"]'],
theme: {
extend: {
boxShadow: {
neoblack: "8px 8px 0px rgba(0,0,0,1)",
neowhite: "8px 8px 0px rgba(255,0,0,1)",
rainbow: `8px 8px 0px ${colors.cyan["400"]}, 16px 16px 0px ${colors.yellow["400"]}, 24px 24px 0px ${colors.violet["400"]}`,
},
colors: {
...light,
...dark,
},
},
},
plugins: [],
};
|