-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
78 lines (75 loc) · 1.79 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
import colors from "tailwindcss/colors";
import type { Config } from "tailwindcss";
import kokopelli from "./kokopelli.config";
function getColorScheme(colorName: string) {
switch (colorName) {
case "slate":
return colors.slate;
case "gray":
return colors.gray;
case "zinc":
return colors.zinc;
case "neutral":
return colors.neutral;
case "stone":
return colors.stone;
case "red":
return colors.red;
case "orange":
return colors.orange;
case "amber":
return colors.amber;
case "yellow":
return colors.yellow;
case "lime":
return colors.lime;
case "green":
return colors.green;
case "emerald":
return colors.emerald;
case "teal":
return colors.teal;
case "cyan":
return colors.cyan;
case "sky":
return colors.sky;
case "blue":
return colors.blue;
case "indigo":
return colors.indigo;
case "violet":
return colors.violet;
case "purple":
return colors.purple;
case "fuchsia":
return colors.fuchsia;
case "pink":
return colors.pink;
case "rose":
return colors.rose;
default:
return colors.slate;
}
}
const config: Config = {
// toggle to 'media' to disable dark mode, see: https://tailwindcss.com/docs/dark-mode#toggling-dark-mode-manually
darkMode: "media",
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
colors: {
primary: getColorScheme(kokopelli.theme.primary),
secondary: getColorScheme(kokopelli.theme.secondary),
},
},
},
plugins: [require("@tailwindcss/typography")],
corePlugins: {
transform: true,
},
};
export default config;