-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.ts
43 lines (32 loc) · 1.01 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
import { buildLegacyTheme, defineConfig } from "sanity"
const props = {
"--ng-white": "#fcfaf9",
"--ng-black": "#1a1a1a",
// "--ng-red": "#d61e28",
"--ng-red": "#e2363f",
"--ng-text-red": "#c91d25"
}
// https://www.sanity.io/docs/theming
export const ngTheme = buildLegacyTheme({
/* Base theme colors */
'--black': props[ '--ng-black' ],
'--white': props[ '--ng-white' ],
'--gray': '#666',
'--gray-base': '#666',
'--component-bg': props[ '--ng-white' ],
'--component-text-color': props[ '--ng-black' ],
/* Brand */
'--brand-primary': props[ '--ng-red' ],
// Default button
'--default-button-color': '#666',
'--default-button-primary-color': props[ '--ng-red' ],
/* State */
'--state-info-color': props[ '--ng-red' ],
/* Navbar */
'--main-navigation-color': props[ '--ng-black' ],
'--main-navigation-color--inverted': props[ '--ng-white' ],
'--focus-color': props[ '--ng-red' ],
})
export default defineConfig({
theme: ngTheme
})