summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-10-06 04:11:14 +0200
committerThomas F. K. Jorna <[email protected]>2021-10-06 04:11:14 +0200
commit57185d21f8c85ad5063a420a12072b7d39e9e77c (patch)
tree2df3feaa904fff0e7db929742a8f241ee7d60446 /util
parente971a5936dbebf26a85446c8f9ed866b71514325 (diff)
feat: theme selector
Diffstat (limited to 'util')
-rw-r--r--util/themecontext.tsx29
1 files changed, 3 insertions, 26 deletions
diff --git a/util/themecontext.tsx b/util/themecontext.tsx
index fdea9d6..1a62e73 100644
--- a/util/themecontext.tsx
+++ b/util/themecontext.tsx
@@ -1,31 +1,8 @@
import { createContext } from 'react'
-const initialTheme = {
- base1: '#1c1f24',
- base2: '#21272d',
- base3: '#23272e',
- base4: '#484854',
- base5: '#62686E',
- base6: '#757B80',
- base7: '#9ca0a4',
- base8: '#DFDFDF',
- bg: '#242730',
- 'bg-alt': '#2a2e38',
- blue: '#51afef',
- cyan: '#5cEfFF',
- 'dark-blue': '#1f5582',
- 'dark-cyan': '#6A8FBF',
- fg: '#bbc2cf',
- 'fg-alt': '#5D656B',
- green: '#7bc275',
- grey: '#484854',
- magenta: '#C57BDB',
- orange: '#e69055',
- red: '#ff665c',
- teal: '#4db5bd',
- violet: '#a991f1',
- yellow: '#FCCE7B',
-}
+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