Function Repository Resource:

DraculaTheme

Source Notebook

Restyle notebooks to use the Dracula theme

Contributed by: Jesse Dohmann

ResourceFunction["DraculaTheme"][]

restyles the current evaluation notebook with the Dracula theme.

ResourceFunction["DraculaTheme"][notebook]

restyles the notebook object with the Dracula theme.

Details and Options

Use ResourceFunction["DraculaTheme"][False] or ResourceFunction["DraculaTheme"][notebook,False] to revert to default styling.
Use ResourceFunction["DraculaTheme"]["Install"] to install the theme and access it across your Wolfram applications via the menu item Format Stylesheet.
ResourceFunction["DraculaTheme"]["Uninstall"] uninstalls the stylesheet.

Examples

Basic Examples (2) 

Create a notebook with default styling:

In[1]:=
obj = NotebookPut[
BinaryDeserialize[
Identity[ByteArray][CompressedData["
1:eJzVVt1u2zYYtRSnztw6CVqgKDBgY++SrvHitCiKFN3QxckQwGkCM/0BhiGg
ZMphS5Mafxanw+53sT3CnmDvswfY7nazF9jFSFGmVdtq7YsOGCBI5MfDo/N9
/I6g2xHvRkGlUmlcq1Qe7ibLcuUpVzji/HUSyGqHSGWfe5jSJJQN+/xacJ22
kUJJNQeEDgDX95nCAiiiKAbnWGC4fGrHHnDDAaSOCpgVmE897KaHvY28CseR
clXhhKpbORuOFeGsqK4GXWx+ro/Hyqbp6tCHyxlXJxg/KeY6g7QBiyt+27O8
1HioMlwTuMCpQD1ikYgecDEAhKVagYQLgL9HVKOMnjCATD1SJJDCIDZ8IMKU
X+zC6qkhnLscBlj7ig+zpUBe6fILM0uWfNuMIvk2uPTHT7/NCAfDWdi/f/3Z
rMDgM/sW+J1QZhUGb+DyoU1pPgmhvHogUFY5x70KdYqFjAVJHZ+5drJr8jVX
jrUy75HV4xS/4ziXZh9npCnFCvcAUXhQOCVYPTQBj/7UoTOQPY2+QOl5Ed6w
8JPRyvwybvmumhRQgy42v4b1fMccMsqsNy2j7tp6MSU3xpu8GHdAxbvna5d4
xLhhoCnKXNEjMqXo8r2WmNFuoaxZi9nG+q+aX65N+Buutl0CBy6ngs4Vq7vY
HPB+ST2Q/SJQwrCvDCWvMVDnRO4Cf9hzZu7MZO7TWoPm+74vJW5iehAZvdNu
umbt8TRf/fCuuj0hZ0Zfr+VmWVzUB7HZ9bFjFle0oN2O5rCbL93/3Xc33/bd
VHEflRTjBaeJQAPQQayvUR+DVPC+DcS8h13qzfLU35VvdZRDohkMvoHh8AwG
38Jw9zEMWrC6Z/i9ui9L1DHOthZXCH8P2p3O/suT4+6pOVDzu6HZRk7TIZFA
4tKqN1+VyD7vgoHAiIInrdHoThfLzfoP9Xza3T7bflSYtMzExsBjs8eNW2ac
he6M0JbDBS3E1kAJHas9PkgJxVtfTOs5iylG7Fm64XW1Ns1WgZUWDBjOH2Ht
xOU+3fXj3u9qimX9BWE9fgHJGzxqpld/ha9+CT2i4RBHSPQJk0ULZ+A//5Ef
PdGKD8wfWjyKFkJ7h55p7UBwpvZZ77n5kzEdCT9v7TRbmb2OUAyOIXgJhg8f
gI0H97eMeTfBhnlpfA5a9+6Cne2d7U3PtA7VJcVtnBCW9baEdTNBmqomi/4F
t8IX4A==
"]]]]
Out[1]=

Apply the Dracula stylesheet to the notebook:

In[2]:=
ResourceFunction["DraculaTheme"][obj]

Scope (2) 

Install the Dracula stylesheet into your Wolfram desktop application:

In[3]:=
ResourceFunction["DraculaTheme"]["Install"]

Check to ensure the stylesheet has been installed:

In[4]:=
FileExistsQ[
 FileNameJoin[{$UserBaseDirectory, "SystemFiles", "FrontEnd", "StyleSheets", "Dracula.nb"}]]
Out[4]=

Access the stylesheet from the menu: Format Stylesheet Dracula.


Uninstall the stylesheet from the Wolfram system:

In[5]:=
ResourceFunction["DraculaTheme"]["Uninstall"]

Publisher

Jesse Dohmann

Version History

  • 1.0.0 – 26 June 2020

Related Resources

License Information