summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rw-r--r--pages/_app.tsx2
-rw-r--r--pages/index.tsx2
-rw-r--r--pages/themecontext.tsx43
3 files changed, 2 insertions, 45 deletions
diff --git a/pages/_app.tsx b/pages/_app.tsx
index ab05e26..f623786 100644
--- a/pages/_app.tsx
+++ b/pages/_app.tsx
@@ -4,7 +4,7 @@ import { ChakraProvider, extendTheme, withDefaultColorScheme } from '@chakra-ui/
import { useEffect, useState, useMemo, useContext, useReducer } from 'react'
import * as d3int from 'd3-interpolate'
-import { ThemeContext } from './themecontext'
+import { ThemeContext } from '../util/themecontext'
import { usePersistantState } from '../util/persistant-state'
function MyApp({ Component, pageProps }: AppProps) {
diff --git a/pages/index.tsx b/pages/index.tsx
index da308c7..d72128b 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -33,7 +33,7 @@ import {
} from '../components/config'
import { Tweaks } from '../components/tweaks'
-import { ThemeContext, ThemeContextProps } from './themecontext'
+import { ThemeContext, ThemeContextProps } from '../util/themecontext'
import SpriteText from 'three-spritetext'
import ReconnectingWebSocket from 'reconnecting-websocket'
diff --git a/pages/themecontext.tsx b/pages/themecontext.tsx
deleted file mode 100644
index fdea9d6..0000000
--- a/pages/themecontext.tsx
+++ /dev/null
@@ -1,43 +0,0 @@
-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',
-}
-
-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 }