prism-react-renderer
prism-react-renderer copied to clipboard
expose CSS variables to avoid FOUC during SSR
Context:
- https://github.com/facebook/docusaurus/issues/6246
- https://github.com/facebook/docusaurus/pull/7373
- https://github.com/FormidableLabs/prism-react-renderer/issues/112
Useful info:
- https://www.joshwcomeau.com/react/dark-mode/