Skip to content

Commit 54eaef9

Browse files
authored
Add dracula theme style (#59)
1 parent 0469343 commit 54eaef9

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

lib/makeup/styles/html/style_map.ex

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,34 @@ defmodule Makeup.Styles.HTML.StyleMap do
345345
"""
346346
def default_style, do: @default_style
347347

348+
@dracula_style Style.make_style(
349+
short_name: "dracula",
350+
long_name: "Dracula Style",
351+
background_color: "#282a36",
352+
highlight_color: "#44475A",
353+
styles: %{
354+
:comment_single => "#44475A",
355+
:keyword => "#FF92DF",
356+
:keyword_declaration => "#FF92DF",
357+
:keyword_namespace => "#FF92DF",
358+
:name => "#50FA7B",
359+
:name_attribute => "#BD93F9",
360+
:name_builtin_pseudo => "#44475A",
361+
:name_class => "#A4FFFF",
362+
:name_constant => "#BD93F9",
363+
:name_function => "#50FA7B",
364+
:operator => "#FF92DF",
365+
:punctuation => "#F8F8F2",
366+
:string => "#F1FA8C",
367+
:string_symbol => "#FFB86C",
368+
}
369+
)
370+
371+
@doc """
372+
The *dracula* style. Example [here](https://elixir-makeup.github.io/makeup_demo/elixir.html#dracula).
373+
"""
374+
def dracula_style, do: @dracula_style
375+
348376
@emacs_style Style.make_style(
349377
short_name: "emacs",
350378
long_name: "Emacs Style",

0 commit comments

Comments
 (0)