-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappearance.ts
74 lines (59 loc) · 1.47 KB
/
appearance.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
// Copyright © 2022 The Radicle Design System Contributors
//
// This file is part of radicle-design-system, distributed under the GPLv3
// with Radicle Linking Exception. For full terms see the included
// LICENSE file.
import { writable } from "svelte/store";
interface Option<T> {
value: T;
title: string;
}
type Theme = "dark" | "light" | "h4x0r";
export const theme = writable<Theme>("dark");
export const themeOptions: Option<Theme>[] = [
{
title: "Light",
value: "light",
},
{
title: "Dark",
value: "dark",
},
{
title: "H4x0r",
value: "h4x0r",
},
];
type UiFont = "inter" | "system";
export const uiFont = writable<UiFont>("inter");
export const uiFontOptions: Option<UiFont>[] = [
{
title: "Inter",
value: "inter",
},
{
title: "System",
value: "system",
},
];
type CodeFont = "sourceCode" | "system";
export const codeFont = writable<CodeFont>("sourceCode");
export const codeFontOptions: Option<CodeFont>[] = [
{
title: "Source Code",
value: "sourceCode",
},
{
title: "System",
value: "system",
},
];
type PrimaryColor = "blue" | "pink" | "orange" | "custom";
export const primaryColor = writable<PrimaryColor>("blue");
export const primaryColorOptions: Option<PrimaryColor>[] = [
{ title: "Blue", value: "blue" },
{ title: "Pink", value: "pink" },
{ title: "Orange", value: "orange" },
{ title: "Custom", value: "custom" },
];
export const primaryColorHex = writable<string>("#5555FF");