forked from mantinedev/next-app-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.ts
85 lines (78 loc) · 1.22 KB
/
theme.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
'use client';
/*
import { createTheme } from '@mantine/core';
export const theme = createTheme({
});
*/
import { MantineColorsTuple, createTheme, virtualColor } from "@mantine/core";
const myColor: MantineColorsTuple = [
"#eafaed",
"#ddeee0",
"#bfdbc2",
"#9dc6a2",
"#81b487",
"#6ea975",
"#64a46c",
"#528f5a",
"#477f4f",
"#386f40"
];
const myRed: MantineColorsTuple = [
"#ffeaf3",
"#fdd4e1",
"#f4a7bf",
"#ec779c",
"#e64f7e",
"#e3356b",
"#e22762",
"#c91a52",
"#b41149",
"#9f003e"
];
const myLight: MantineColorsTuple = [
"#edf9ed",
"#e0ede2",
"#c3d7c5",
"#a3c0a7",
"#88ad8d",
"#77a17c",
"#6d9b73",
"#5b8760",
"#4f7954",
"#3f6945"
];
const myDark: MantineColorsTuple = [
"#eafaed",
"#ddeee0",
"#bfdbc2",
"#9dc6a2",
"#81b487",
"#6ea975",
"#64a46c",
"#528f5a",
"#477f4f",
"#386f40"
];
/*
export const theme = createTheme({
colors: {
myColor,
},
primaryColor: "myColor",
defaultRadius: 15,
});
*/
export const theme = createTheme({
colors: {
myRed,
myDark,
myLight,
myPrimary: virtualColor({
name: 'myPrimary',
dark: 'myDark',
light: 'myLight',
}),
},
primaryColor: "myPrimary",
defaultRadius: 15,
});