-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
59 lines (57 loc) · 1.27 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
import type { Config } from "tailwindcss";
import plugin from "tailwindcss/plugin";
const ElementRotationClass = plugin(function ({ addUtilities }) {
addUtilities({
".my-rotate-y-180": {
transform: "rotateY(180deg)",
},
".preserve-3d": {
transformStyle: "preserve-3d",
},
".perspective": {
perspective: "1000px",
},
".backface-hidden": {
backfaceVisibility: "hidden",
},
});
});
const config: Config = {
mode: "jit",
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
"./src/client/**/*.{js,ts,jsx,tsx,mdx}",
"./src/server/**/*.{js,ts,jsx,tsx,mdx}",
],
darkMode: "class",
theme: {
extend: {
colors: {
primary: {
light: "#F7FAFC",
dark: "#121A21",
},
secondary: {
light: "#4F7396",
dark: "#94ADC7",
},
button: {
light: "#E8EDF2",
dark: "#243647",
},
text: {
light: "#0D141C",
dark: "#FFFFFF",
},
"text-secondary": {
light: "#4F7396",
dark: "#94ADC7",
},
},
},
},
plugins: [ElementRotationClass],
};
export default config;