latex_resources_niklas/beamer/beamercolorthemeNik.sty

101 lines
3.5 KiB
Plaintext
Raw Normal View History

2022-05-12 00:16:27 +00:00
\mode<presentation>
% define colors
\definecolor{DraculaBackground}{HTML}{282a36}
\definecolor{DraculaCurrentLine}{HTML}{44475a}
\definecolor{DraculaSelection}{HTML}{44475a}
\definecolor{DraculaForeground}{HTML}{f8f8f2}
\definecolor{DraculaComment}{HTML}{6272a4}
\definecolor{DraculaCyan}{HTML}{8be9fd}
\definecolor{DraculaGreen}{HTML}{50fa7b}
\definecolor{DraculaOrange}{HTML}{ffb86c}
\definecolor{DraculaPink}{HTML}{ff79c6}
\definecolor{DraculaPurple}{HTML}{bd93f9}
\definecolor{DraculaRed}{HTML}{ff5555}
\definecolor{DraculaYellow}{HTML}{f1fa8c}
% define color variables
\colorlet{ColorAlertedText}{DraculaRed}
\colorlet{ColorSubtitle}{DraculaPurple}
\colorlet{ColorSubsectionInToc}{ColorSubtitle}
\colorlet{ColorBackground}{DraculaBackground}
\colorlet{ColorText}{DraculaForeground}
\colorlet{ColorExampleText}{DraculaCyan}
\colorlet{ColorStructure}{DraculaCyan}
\colorlet{ColorTitle}{DraculaGreen}
\colorlet{ColorSubsectionInTocShaded}{DraculaComment!20!DraculaCurrentLine}
\colorlet{ColorItemizeItem}{DraculaGreen}
%% block color
%%% normal block
\colorlet{ColorBlockTitleBg}{DraculaCurrentLine!80}
\colorlet{ColorBlockBodyBg}{DraculaPurple!50!DraculaCurrentLine}
\colorlet{ColorBlockBodyFg}{DraculaCyan}
%%% example block
\colorlet{ColorExampleBlockTitleBg}{ColorBlockTitleBg}
\colorlet{ColorExampleBlockBodyBg}{DraculaCyan!50!DraculaCurrentLine}
\colorlet{ColorExampleBlockBodyFg}{DraculaForeground}
%%% alerted block
\colorlet{ColorAlertedBlockTitleBg}{ColorBlockTitleBg}
\colorlet{ColorAlertedBlockBodyBg}{DraculaRed!50!DraculaCurrentLine}
\colorlet{ColorAlertedBlockBodyFg}{DraculaForeground}
\colorlet{ColorNormalText}{ColorText}
\colorlet{ColorFrameTitle}{ColorTitle}
\colorlet{ColorFrameSubtitle}{ColorSubtitle}
\colorlet{ColorSectionInToc}{ColorTitle}
\colorlet{ColorEnumerateColor}{ColorItemizeItem}
\colorlet{ColorSectionInHeadFoot}{ColorStructure}
% set beamer color
\setbeamercolor*{background canvas}{bg=ColorBackground}
\setbeamercolor*{normal text}{fg=ColorNormalText}
\setbeamercolor*{alerted text}{fg=ColorAlertedText}
\setbeamercolor*{example text}{fg=ColorExampleText}
\setbeamercolor*{structure}{fg=ColorStructure}
% title colors
\setbeamercolor*{title}{fg=ColorTitle}
\setbeamercolor*{subtitle}{fg=ColorSubtitle}
\setbeamercolor*{frametitle}{fg=ColorFrameTitle}
\setbeamercolor*{framesubtitle}{fg=ColorFrameSubtitle}
% section colors
\setbeamercolor*{section in toc}{fg=ColorSectionInToc}
\setbeamercolor*{subsection in toc}{fg=ColorSubsectionInToc}
\setbeamercolor*{subsection in toc shaded}{fg=ColorSubsectionInTocShaded}
\setbeamercolor*{subsubsection in toc}{fg=ColorSubsectionInToc}
\setbeamercolor*{subsubsection in toc shaded}{fg=ColorSubsectionInTocShaded}
% item colors
\setbeamercolor*{itemize item}{fg=ColorItemizeItem}
\setbeamercolor*{enumerate item}{fg=ColorEnumerateColor}
\setbeamercolor*{section in head/foot}{bg=ColorBackground, fg=ColorSectionInHeadFoot}
% block color
\setbeamercolor{block title}{bg=ColorBlockTitleBg,fg=DraculaYellow}
\setbeamercolor{block body}{bg=ColorBlockBodyBg,fg=ColorBlockBodyFg}
\setbeamercolor{block title example}{bg=ColorExampleBlockTitleBg,fg=DraculaYellow,parent={example text}}
\setbeamercolor{block body example}{bg=ColorExampleBlockBodyBg,fg=ColorExampleBlockBodyFg}
\setbeamercolor{block title alerted}{bg=ColorAlertedBlockTitleBg,fg=DraculaOrange,parent={alerted text}}
\setbeamercolor{block body alerted}{bg=ColorAlertedBlockBodyBg,fg=ColorAlertedBlockBodyFg}
\setbeamercolor{caption}{fg=DraculaPink}
\mode
<all>
\endinput