-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeamercolorthemenumpex.sty
85 lines (63 loc) · 2.77 KB
/
beamercolorthemenumpex.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
% Beamer mtheme
%
% Copyright 2014 Matthias Vogelgesang
% Licensed under CC-BY-SA 4.0 International.
%
% The initial template comes from the HSRM beamer theme by Benjamin Weiss, which
% you can find at https://github.com/hsrmbeamertheme/hsrmbeamertheme.
%
\ProvidesPackage{beamercolorthemenumpex}
%}}}
%{{{ --- Options ----------------------
\newif\if@beamer@numpex@blockbg
\@beamer@numpex@blockbgfalse
\DeclareOptionBeamer{blockbg}{\@beamer@numpex@blockbgtrue}
\DeclareOptionBeamer*{%
\PackageWarning{beamercolorthemenumpex}{Unknown option `\CurrentOption'}%
}
\ProcessOptionsBeamer
%}}}
%{{{ --- Colors ---------------------
% http://paletton.com/#uid=7050t0kkJkJsntwoyp6gYgoddc4
\definecolor{nblue}{HTML}{000091}
\definecolor{nred}{HTML}{E1000F}
\definecolor{ngreen}{HTML}{467248}
\definecolor{npurple}{HTML}{6E445A}
\definecolor{gray30}{rgb}{0.3,0.3,0.3}
\definecolor{gray60}{rgb}{0.6,0.6,0.6}
\definecolor{gray80}{rgb}{0.85,0.85,0.85}
\setbeamercolor{block body}{bg=gray80, fg=black}
\setbeamercolor{block title}{bg=nblue, fg=white}
\setbeamercolor{block title example}{bg=nred, fg=white}
\setbeamercolor{block body example}{bg=gray80, fg=black}
\setbeamercolor{palette primary}{fg=nblue, bg=black!2}
\setbeamercolor{palette secondary}{fg=white, bg=nblue}
\setbeamercolor{palette quaternary}{fg=white}
\setbeamercolor{palette tertiary}{fg=nblue, bg=white}
\setbeamercolor{title}{parent=palette secondary}
\setbeamercolor{subtitle}{parent=palette secondary}
\setbeamercolor{author}{parent=palette secondary}
\setbeamercolor{date}{parent=palette secondary}
\setbeamercolor{institute}{parent=palette secondary}
% \setbeamercolor{section title}{parent=palette quaternary}
\setbeamercolor{part title}{fg=white}
\setbeamercolor{section title}{fg=white}
\setbeamercolor{section name}{fg=white}
\setbeamercolor{frametitle}{parent=palette tertiary}
\setbeamercolor{background canvas}{parent=palette quaternary}
\setbeamercolor{structure}{fg=nblue}
\setbeamercolor{normal text}{fg=black!97}
\setbeamercolor{alerted text}{fg=nred}
\setbeamercolor{footnote}{fg=nblue!50}
\setbeamercolor{footnote mark}{fg=.}
\setbeamercolor{page number in head/foot}{fg=nblue}
\setbeamercolor{bibliography entry title}{fg=nred}
\if@beamer@numpex@blockbg
\setbeamercolor{block title}{parent=palette primary,bg=palette primary.bg!80!fg}
\setbeamercolor{block title alerted}{use=alerted text,parent=palette primary,fg=alerted text.fg}
\setbeamercolor{block title example}{use=example text,parent=palette primary,fg=example text.fg}
\setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg}
\setbeamercolor{block body alerted}{parent=normal text,use=block title alerted,bg=block title alerted.bg}
\setbeamercolor{block body example}{parent=normal text,use=block title example,bg=block title example.bg}
\fi
\mode<all>