Skip to content

Commit

Permalink
Enable Dracula theme
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed Sep 4, 2023
1 parent e7f7801 commit 1486e3c
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/asciinema_web/templates/doc/embedding.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ to a theme set by the asciicast author (or to "asciinema" if not set by the
author). The available themes are:

* asciinema
* dracula
* monokai
* nord
* solarized-dark
Expand Down
22 changes: 22 additions & 0 deletions lib/asciinema_web/templates/recording/_svg_theme_dracula.css.eex
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!-- dracula theme -->

.default-text-fill {fill: #f8f8f2}
.default-bg-fill {fill: #282a36}

.c-0 {fill: #21222c}
.c-1 {fill: #ff5555}
.c-2 {fill: #50fa7b}
.c-3 {fill: #f1fa8c}
.c-4 {fill: #bd93f9}
.c-5 {fill: #ff79c6}
.c-6 {fill: #8be9fd}
.c-7 {fill: #f8f8f2}
.c-8 {fill: #6272a4}
.c-9 {fill: #ff6e6e}
.c-10 {fill: #69ff94}
.c-11 {fill: #ffffa5}
.c-12 {fill: #d6acff}
.c-13 {fill: #ff92df}
.c-14 {fill: #a4ffff}
.c-15 {fill: #ffffff}
.c-8, .c-9, .c-10, .c-11, .c-12, .c-13, .c-14, .c-15 {font-weight: bold}
1 change: 1 addition & 0 deletions lib/asciinema_web/views/player_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ defmodule AsciinemaWeb.PlayerView do
def theme_options do
[
{"asciinema", "asciinema"},
{"Dracula", "dracula"},
{"Monokai", "monokai"},
{"Nord", "nord"},
{"Tango", "tango"},
Expand Down
1 change: 1 addition & 0 deletions lib/media.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ defmodule Asciinema.Media do

@themes [
"asciinema",
"dracula",
"monokai",
"nord",
"solarized-dark",
Expand Down

0 comments on commit 1486e3c

Please sign in to comment.