-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.ts
40 lines (33 loc) · 1.13 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
import { buildLegacyTheme } from "sanity";
const props = {
"--my-white": "#ffffff",
"--my-black": "#1A1A1A",
"--my-brand": "#1810f2",
"--my-red": "#db4437",
"--my-green": "#0f9d58",
"--my-yellow": "#f4b400"
};
export const myTheme = buildLegacyTheme({
"--black": props["--my-black"],
"--white": props["--my-white"],
"--gray-base": "#666",
"--gray": "#666",
"--component-bg": props["--my-white"],
"--component-text-color": props["--my-black"],
"--brand-primary": props["--my-brand"],
//Default button
"--default-button-color": "#666",
"--default-button-primary-color": props["--my-brand"],
"--default-button-success-color": props["--my-green"],
"--default-button-danger-color": props["--my-red"],
"--default-button-warning-color": props["--my-yellow"],
//State
"--state-info-color": props["--my-brand"],
"--state-success-color": props["--my-green"],
"--state-warning-color": props["--my-yellow"],
"--state-danger-color": props["--my-red"],
//Navbar
"--main-navigation-color": props["--my-black"],
"--main-navigation-color--inverted": props["--my-white"],
"--focus-color": props["--my-brand"]
});