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.
- Now let's import the package.
- And in the Sandpack instance let's reference it.
- Boom! It's working! 🦇
You can also read the official Sandpack doc on how to do this installation.
There is also this repository with an example with NextJs.