-
Notifications
You must be signed in to change notification settings - Fork 11
/
beamercolorthemecleancode.sty
125 lines (98 loc) · 2.47 KB
/
beamercolorthemecleancode.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
% -----------------------------------------------------------------------------
% Beamer colour theme: cleancode
% Copyright (c) 2019-2021 Aleksandra R. Glesaaen ([email protected])
% -----------------------------------------------------------------------------
% Requirement
\ProvidesPackage{beamercolorthemecleancode}
\RequirePackage{xcolor}
% ------- %
% Colours %
% ------- %
\setbeamercolor*{palette primary}{fg=MidnightBlue, bg=MidnightBlue}
\setbeamercolor*{palette secondary}{fg=Bittersweet, bg=Bittersweet}
\setbeamercolor*{palette tertiary}{fg=OliveGreen!80!Black, bg=OliveGreen!80!Black}
\setbeamercolor*{palette quaternary}{fg=Gray, bg=Gray}
\setbeamercolor*{background canvas}{bg=white}
% ---- %
% Text %
% ---- %
\setbeamercolor{normal text}{
fg=black
}
\setbeamercolor{alerted text}{
use=palette secondary,
fg=palette secondary.fg
}
\setbeamercolor{example text}{
use=palette tertiary,
fg=palette tertiary.fg
}
\setbeamercolor{structure}{
use=palette primary,
fg=palette primary.fg
}
% ------------------ %
% Block environments %
% ------------------ %
% Normal blocks
\setbeamercolor{block body}{
use=normal text,
parent=normal text
}
\setbeamercolor{block box}{
use={palette primary, background canvas},
fg=palette primary.fg,
bg=background canvas.bg
}
\setbeamercolor{block title}{
use=block box,
parent=block box
}
% Alerted blocks
\setbeamercolor{block body alerted}{
use=normal text,
parent=normal text
}
\setbeamercolor{block box alerted}{
use={palette secondary, background canvas},
fg=palette secondary.fg,
bg=background canvas.bg
}
\setbeamercolor{block title alerted}{
use=block box alerted,
parent=block box alerted
}
% Example blocks
\setbeamercolor{block body example}{
use=normal text,
parent=normal text
}
\setbeamercolor{block box example}{
use={palette tertiary, background canvas},
fg=palette tertiary.fg,
bg=background canvas.bg
}
\setbeamercolor{block title example}{
use=block box example,
parent=block box example
}
% Quotation bocks
\setbeamercolor{block body quote}{
use=palette primary,
fg=palette primary.fg
}
\setbeamercolor{block box quote}{
use={palette primary, background canvas},
fg=palette primary.fg,
bg=background canvas.bg
}
\setbeamercolor{block title quote}{
use=block box quote,
fg=block box quote.bg,
bg=block box quote.fg
}
\setbeamercolor{block author quote}{
use={palette quaternary, background canvas},
fg=palette quaternary.fg,
bg=background canvas.bg
}