blob: 1a62e73eeeab25ec66ce7ecb59a5df5479eb170c (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import { createContext } from 'react'
import { themes } from '../components/themes'
const initialTheme = ['vibrant', themes['one-vibrant']]
type Theme = [name: string, themeObject: { [color: string]: string }]
export interface ThemeContextProps {
emacsTheme: typeof initialTheme
setEmacsTheme: any
highlightColor: string
setHighlightColor: any
}
const ThemeContext = createContext<ThemeContextProps>({
emacsTheme: initialTheme,
setEmacsTheme: null,
highlightColor: 'purple',
setHighlightColor: null,
})
export { ThemeContext }
|