Open-source and local-first Slack and Notion alternative that puts you in control of your data
TypeScript chatchat-applicationcrdteditorelectronknowledge-baselocal-firstnotionnotion-alternativerealtime-collaborationself-hostedslacksqliteteam-collaborationwikiyjs
import { createContext, useContext } from 'react';
import { ThemeColor, ThemeMode } from '@colanode/client/types';
interface ThemeContext {
mode: ThemeMode;
color?: ThemeColor;
}
export const ThemeContext = createContext<ThemeContext>({} as ThemeContext);
export const useTheme = () => useContext(ThemeContext);