forked from artiva-protocol/baseline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
artiva.config.ts
53 lines (48 loc) · 1.17 KB
/
artiva.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
import { ThemeConfig } from "@artiva/shared";
export type CustomPropertiesType = {
show_platform_cover: boolean;
show_logo_in_navigation: boolean;
header_style: "Center aligned" | "Left aligned" | "Hidden";
connect_wallet_text: string;
color_scheme: "Light" | "Dark" | "Auto";
};
const config: ThemeConfig = {
name: "baseline",
version: "1.0.0",
engines: {
artiva: "0.1.0",
},
custom: {
color_scheme: {
type: "select",
options: ["Light", "Dark", "Auto"],
default: "Light",
},
connect_wallet_text: {
type: "text",
default: "Connect Wallet",
},
show_platform_cover: {
type: "boolean",
default: true,
group: "homepage",
},
header_style: {
type: "select",
options: ["Center aligned", "Left aligned", "Hidden"],
default: "Center aligned",
group: "homepage",
},
show_logo_in_navigation: {
type: "boolean",
default: false,
group: "homepage",
},
},
};
let tmp = {};
Object.keys(config.custom).map((x) => {
(tmp as any)[x] = config.custom[x].default;
});
export const DefaultCustomProps = { ...tmp } as CustomPropertiesType;
export default config;