Theme

Summary

We use the react-css-theme-switcher1 hook to manage themes.

import { ThemeSwitcherProvider } from "react-css-theme-switcher";

It works by looking for CSS to load in ./public/{name}.css


Footnotes

  1. react-css-theme-switcher˄

Implementation

Theme is loaded here: https://github.com/dendronhq/dendron/blob/3b9f8109123e92e7bce2acfc44ba8b0534530cdd/packages/nextjs-template/pages/_app.tsx#L24-L24


Backlinks