diff --git a/bun.lockb b/bun.lockb index 6ee513d..408a62e 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 29ec4a1..d036256 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "dependencies": { "@orama/orama": "^1.2.4", "@orama/plugin-match-highlight": "^1.2.4", + "darkreader": "^4.9.58", "jotai": "^2.4.2", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/src/app.tsx b/src/app.tsx index 009e442..4d251ea 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -4,6 +4,7 @@ import { Item, selectedItemAtom } from './state'; import { FiMenu, FiSearch } from 'react-icons/fi'; import { type OramaWithHighlight } from '@orama/plugin-match-highlight'; import { Search } from './search'; +import { DarkModeToggle } from './dark-mode'; export const App = (props: { title: string; itemTree: Item[]; searchIndex: OramaWithHighlight }) => { const { title, itemTree, searchIndex } = props; @@ -22,6 +23,8 @@ export const App = (props: { title: string; itemTree: Item[]; searchIndex: Orama