From 9c35bcaa501a73db6900aa93c608cf88f8259e63 Mon Sep 17 00:00:00 2001 From: Francois Buys Date: Sat, 20 May 2023 16:35:50 +0200 Subject: [PATCH 1/2] Add dracula theme style See: https://draculatheme.com/ --- lib/makeup/styles/html/style_map.ex | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/lib/makeup/styles/html/style_map.ex b/lib/makeup/styles/html/style_map.ex index 71c9c99..808c5d7 100644 --- a/lib/makeup/styles/html/style_map.ex +++ b/lib/makeup/styles/html/style_map.ex @@ -345,6 +345,34 @@ defmodule Makeup.Styles.HTML.StyleMap do """ def default_style, do: @default_style + @dracula_style Style.make_style( + short_name: "dracula", + long_name: "Dracula Style", + background_color: "#282a36", + highlight_color: "#44475A", + styles: %{ + :comment_single => "#44475A", + :keyword => "#FF92DF", + :keyword_declaration => "#FF92DF", + :keyword_namespace => "#FF92DF", + :name => "#50FA7B", + :name_attribute => "#BD93F9", + :name_builtin_pseudo => "#44475A", + :name_class => "#A4FFFF", + :name_constant => "#BD93F9", + :name_function => "#50FA7B", + :operator => "#FF92DF", + :punctuation => "#F8F8F2", + :string => "#F1FA8C", + :string_symbol => "#FFB86C", + } + ) + + @doc """ + The *dracula* style. Example [here](https://elixir-makeup.github.io/makeup_demo/elixir.html#dracula). + """ + def dracula_style, do: @dracula_style + @emacs_style Style.make_style( short_name: "emacs", long_name: "Emacs Style", From f3ed3a6ca2c0669bcd8d910cae617bb7b7164711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Tue, 30 May 2023 00:51:38 +0200 Subject: [PATCH 2/2] Update lib/makeup/styles/html/style_map.ex --- lib/makeup/styles/html/style_map.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/makeup/styles/html/style_map.ex b/lib/makeup/styles/html/style_map.ex index 808c5d7..3c5e054 100644 --- a/lib/makeup/styles/html/style_map.ex +++ b/lib/makeup/styles/html/style_map.ex @@ -369,8 +369,8 @@ defmodule Makeup.Styles.HTML.StyleMap do ) @doc """ - The *dracula* style. Example [here](https://elixir-makeup.github.io/makeup_demo/elixir.html#dracula). - """ + The *dracula* style. Example [here](https://elixir-makeup.github.io/makeup_demo/elixir.html#dracula). + """ def dracula_style, do: @dracula_style @emacs_style Style.make_style(