Join the dark sideBe the first to know about new products, special releases, and much more.
7,449 people enjoy it!Subscribe to the RSS Feed.
After the Sandpack installation and proper configuration, you can configure Dracula Theme through theme support.
To use Dracula Theme, install the @codesandbox/sandpack-themes
package; this official open source package contains all the Sandpack compatible themes.
npm install @codesandbox/sandpack-themes # or yarn add @codesandbox/sandpack-themes
import { dracula } from "@codesandbox/sandpack-themes";
<Sandpack theme={dracula} />
You can also read the official Sandpack doc on how to do this installation.
There is also this repository with an example with NextJs.