style : use darcula style for code.

This commit is contained in:
Dmitry Voronin 2023-08-01 15:08:27 +03:00
parent 6db408b513
commit d98b13aa2b

View file

@ -6,12 +6,13 @@
\definecolor{gray} {RGB}{209,213,219} % gray.
\definecolor{ref} {RGB}{53,82,105} % reference color.
\definecolor{code_background}{RGB}{238,238,238} % code background.
\definecolor{code_string} {RGB}{18,118,34} % code string colors like "hello world".
\definecolor{code_literal} {RGB}{211,134,155} % code literal colors like "8L".
\definecolor{code_property} {RGB}{152,118,170} % code properties like variables and methods.
\definecolor{code_keyword} {RGB}{184,92,0} % code keywords like "val", "fun" etc.
\definecolor{code_comment} {RGB}{146,131,116} % code comment colors like // todo.
\definecolor{code_background}{RGB}{40,42,54} % code background.
\definecolor{code_text} {RGB}{248,248,242} % code default text.
\definecolor{code_string} {RGB}{80,250,123} % code string colors like "hello world".
\definecolor{code_literal} {RGB}{139,233,253} % code literal colors like "8L".
\definecolor{code_property} {RGB}{139,233,253} % code properties like variables and methods.
\definecolor{code_keyword} {RGB}{255,184,108} % code keywords like "val", "fun" etc.
\definecolor{code_comment} {RGB}{98,114,164} % code comment colors like // todo.
% code block box.
\newtcolorbox{scodebox}[1][]{