Debian Codegraph @

texmf-dist/source/latex/catppuccinpalette/catppuccinpalette.dtx

raw
1 % \iffalse meta-comment
2 %
3 % MIT License
4 %
5 % Copyright (c) 2024 Catppuccin
6 %
7 % Permission is hereby granted, free of charge, to any person obtaining a copy
8 % of this software and associated documentation files (the "Software"), to deal
9 % in the Software without restriction, including without limitation the rights
10 % to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 % copies of the Software, and to permit persons to whom the Software is
12 % furnished to do so, subject to the following conditions:
13 %
14 % The above copyright notice and this permission notice shall be included in all
15 % copies or substantial portions of the Software.
16 %
17 % THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 % IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 % FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 % AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 % LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 % OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 % SOFTWARE.
24 %
25 % \fi
26 %
27 % \iffalse
28 %<*driver>
29 \ProvidesFile{catppuccinpalette.dtx}
30 %</driver>
31 %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
32 %<package>\ProvidesPackage{catppuccinpalette}
33 %<*package>
34 [2025/07/19 v1.2.0 catppuccin xcolor palette]
35 %</package>
36 %
37 %<*driver>
38 \documentclass{ltxdoc}
39 \usepackage{catppuccinpalette}
40 \usepackage{multicol}
41 \usepackage{pgffor}
42 \usepackage{tabularx, booktabs}
43 \EnableCrossrefs
44 \CodelineIndex
45 \RecordChanges
46 \begin{document}
47 \DocInput{catppuccinpalette.dtx}
48 \PrintChanges
49 \PrintIndex
50 \end{document}
51 %</driver>
52 % \fi
53 %
54 % \CheckSum{111}
55 %
56 % \CharacterTable
57 % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
58 % Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
59 % Digits \0\1\2\3\4\5\6\7\8\9
60 % Exclamation \! Double quote \" Hash (number) \#
61 % Dollar \$ Percent \% Ampersand \&
62 % Acute accent \' Left paren \( Right paren \)
63 % Asterisk \* Plus \+ Comma \,
64 % Minus \- Point \. Solidus \/
65 % Colon \: Semicolon \; Less than \<
66 % Equals \= Greater than \> Question mark \?
67 % Commercial at \@ Left bracket \[ Backslash \\
68 % Right bracket \] Circumflex \^ Underscore \_
69 % Grave accent \` Left brace \{ Vertical bar \|
70 % Right brace \} Tilde \~}
71 %
72 %
73 % \changes{v0.0.1}{2024/02/09}{Converted to DTX file}
74 % \changes{v1.0.0}{2024/02/27}{First full release}
75 % \changes{v1.0.1}{2024/05/19}{Make fit for CTAN}
76 % \changes{v1.0.2}{2024/05/19}{Fix colors in documentation}
77 % \changes{v1.1.0}{2024/08/13}{Move to / Merge with official catppuccin. Thereby deprecate colors with |Cat| prefix. Subject to removal in the future}
78 % \changes{v1.2.0}{2025/07/19}{Add suport for beamer}
79 %
80 % \DoNotIndex{\newcommand,\newenvironment,\color,\colorlet,\def,\fi,\RequirePackage,\ProvidesPackage,\ProcessPgfOptions,\preparecolorset,\pgfkeys,\pagecolor,\newif,\NeedsTeXFormat}
81 %
82 % \providecommand*\pkg{\textsf}
83 % \providecommand*{\url}{\texttt}
84 % \GetFileInfo{catppuccinpalette.dtx}
85 % \title{The \textsf{catppuccinPalette} package}
86 % \author{Lukas Heindl \\ \url{[email protected]} \\ \url{https://github.com/catppuccin/latex}}
87 % \date{\fileversion~from \filedate}
88 %
89 % \maketitle
90 %
91 % \begin{abstract}
92 % The LaTeX package \pkg{catppuccinPalette} provides new colors for xcolor.
93 % \end{abstract}
94 %
95 % \section{Introduction}
96 %
97 % Catppuccin\footnote{\url{https://github.com/catppuccin/catppuccin}} is a soothing
98 % pastel theme in 4 flavours/styles (\emph{Latte}, \emph{Frapp\'e},
99 % \emph{Macchiato}, \emph{Mocha}). This package defines these themes as xcolor
100 % colors.
101 %
102 % \section{Usage}
103 %
104 % Load via |\usepackage{catppuccinpalette}|
105 %
106 % Just use the new colors (prefixed with \verb|Ctp<Style>|) like normal xcolors.
107 % In addition to the usual colors of the palette, this package defines some
108 % colors according to the
109 % style guide\footnote{\url{https://github.com/catppuccin/catppuccin/blob/main/docs/style-guide.md}}
110 % for ease of use.
111 %
112 % This package also allows you to set a specific style which sets the shortened
113 % color names (prefixed only with \verb|Ctp|) to the selected style (allows for
114 % easy switching style) via the package option \verb|style|.
115 %
116 % This package loads xcolor (without options) so if you want to set some xcolor
117 % options you should load xcolor before loading this package.
118 %
119 % \subsection{Package options}
120 % \begin{tabularx}{\linewidth}{lX}
121 % \emph{Option} & \emph{Description}
122 % \\\toprule
123 % \verb|style| &
124 % set the style used by the shortened prefix (\verb|Ctp|). Possible values:
125 % \verb|Latte| (default+initial), \verb|latte|, \verb|Frappe|, \verb|frappe|,
126 % \verb|Mocha|, \verb|mocha|, \verb|Macchiato|, \verb|macchiato|
127 % \\
128 % &
129 % As a shortcut, you can also just use e.\,g.\,
130 % |\usepackage[latte]{catppuccinPalette}| as a shorthand for
131 % |\usepackage[style=latte]{catppuccinPalette}|
132 % \\
133 % \verb|textcolor| &
134 % set the default textcolor of the document to \verb|CtpText|. Possible values:
135 % \verb|false| (initial), \verb|true| (default)
136 % \\
137 % \verb|pagecolor| &
138 % set the pagecolor of the document to \verb|CtpBackground|. Possible values:
139 % \verb|false| (initial), \verb|true| (default)
140 % \\
141 % \verb|hyperref| &
142 % style hyperref according to the style guide\footnote{\url{https://github.com/catppuccin/catppuccin/blob/main/docs/style-guide.md\#typography}}.
143 % Possible values: \verb|false| (initial), \verb|true| (default)
144 % \newline
145 % \textbf{Note:} in order to make this work, \verb|catppuccinpalette| needs to
146 % be loaded \emph{before} the \verb|hyperref| package.
147 % \\\midrule
148 % \verb|styleAll| &
149 % shortcut for setting \verb|pagecolor|, \verb|textcolor| and \verb|hyperref|
150 % \\\bottomrule
151 % \end{tabularx}
152 %
153 % \subsubsection{Change settings mid-document}
154 % \DescribeMacro{\CtpReinit} |\CtpReinit[opts]|
155 %
156 % This command allows to reinitialize this package. All previous configuration
157 % options will be kept. In particular this allows to change the active
158 % style/flavor mid-document. Note that if you decided this package should
159 % change the background color when loading the package and only do
160 % |\CptReinit[style=<another style>]|, then the background color will also be
161 % adjusted on reinitialization.
162 %
163 % The command processes the same options like the ones you can pass when
164 % loading the package (see documentation above).
165 %
166 % \subsection{Colors}
167 % \textbf{Note:} The colors with the prefix |Cat| are deprecated and will be removed in a future version!
168 % \newcommand{\showCol}[1]{\raisebox{0.5ex}{\fcolorbox{black}{#1}{\hspace{1em}}} #1}
169 % \subsubsection{Style \texttt{Latte}}
170 % \begin{multicols}{2}
171 % \showCol{CtpLatteRosewater}\par
172 % \showCol{CtpLatteFlamingo}\par
173 % \showCol{CtpLattePink}\par
174 % \showCol{CtpLatteMauve}\par
175 % \showCol{CtpLatteRed}\par
176 % \showCol{CtpLatteMaroon}\par
177 % \showCol{CtpLattePeach}\par
178 % \showCol{CtpLatteYellow}\par
179 % \showCol{CtpLatteGreen}\par
180 % \showCol{CtpLatteTeal}\par
181 % \showCol{CtpLatteSky}\par
182 % \showCol{CtpLatteSapphire}\par
183 % \showCol{CtpLatteBlue}\par
184 % \showCol{CtpLatteLavender}\par
185 % \showCol{CtpLatteText}\par
186 % \showCol{CtpLatteSubtext1}\par
187 % \showCol{CtpLatteSubtext0}\par
188 % \showCol{CtpLatteOverlay2}\par
189 % \showCol{CtpLatteOverlay1}\par
190 % \showCol{CtpLatteOverlay0}\par
191 % \showCol{CtpLatteSurface2}\par
192 % \showCol{CtpLatteSurface1}\par
193 % \showCol{CtpLatteSurface0}\par
194 % \showCol{CtpLatteBase}\par
195 % \showCol{CtpLatteMantle}\par
196 % \showCol{CtpLatteCrust}\par
197 % \end{multicols}
198 % Some basic colors according to the style guide:
199 % \begin{multicols}{2}
200 % \showCol{CtpLatteBackground}\par
201 % \showCol{CtpLatteLink}\par
202 % \phantom{}\par
203 % \columnbreak
204 % \showCol{CtpLatteSuccess}\par
205 % \showCol{CtpLatteWarning}\par
206 % \showCol{CtpLatteError}\par
207 % \end{multicols}
208 % \subsubsection{Style \texttt{Frappe}}
209 % \begin{multicols}{2}
210 % \showCol{CtpFrappeRosewater}\par
211 % \showCol{CtpFrappeFlamingo}\par
212 % \showCol{CtpFrappePink}\par
213 % \showCol{CtpFrappeMauve}\par
214 % \showCol{CtpFrappeRed}\par
215 % \showCol{CtpFrappeMaroon}\par
216 % \showCol{CtpFrappePeach}\par
217 % \showCol{CtpFrappeYellow}\par
218 % \showCol{CtpFrappeGreen}\par
219 % \showCol{CtpFrappeTeal}\par
220 % \showCol{CtpFrappeSky}\par
221 % \showCol{CtpFrappeSapphire}\par
222 % \showCol{CtpFrappeBlue}\par
223 % \showCol{CtpFrappeLavender}\par
224 % \showCol{CtpFrappeText}\par
225 % \showCol{CtpFrappeSubtext1}\par
226 % \showCol{CtpFrappeSubtext0}\par
227 % \showCol{CtpFrappeOverlay2}\par
228 % \showCol{CtpFrappeOverlay1}\par
229 % \showCol{CtpFrappeOverlay0}\par
230 % \showCol{CtpFrappeSurface2}\par
231 % \showCol{CtpFrappeSurface1}\par
232 % \showCol{CtpFrappeSurface0}\par
233 % \showCol{CtpFrappeBase}\par
234 % \showCol{CtpFrappeMantle}\par
235 % \showCol{CtpFrappeCrust}\par
236 % \end{multicols}
237 % Some basic colors according to the style guide:
238 % \begin{multicols}{2}
239 % \showCol{CtpFrappeBackground}\par
240 % \showCol{CtpFrappeLink}\par
241 % \phantom{}\par
242 % \columnbreak
243 % \showCol{CtpFrappeSuccess}\par
244 % \showCol{CtpFrappeWarning}\par
245 % \showCol{CtpFrappeError}\par
246 % \end{multicols}
247 % \subsubsection{Style \texttt{Macchiato}}
248 % \begin{multicols}{2}
249 % \showCol{CtpMacchiatoRosewater}\par
250 % \showCol{CtpMacchiatoFlamingo}\par
251 % \showCol{CtpMacchiatoPink}\par
252 % \showCol{CtpMacchiatoMauve}\par
253 % \showCol{CtpMacchiatoRed}\par
254 % \showCol{CtpMacchiatoMaroon}\par
255 % \showCol{CtpMacchiatoPeach}\par
256 % \showCol{CtpMacchiatoYellow}\par
257 % \showCol{CtpMacchiatoGreen}\par
258 % \showCol{CtpMacchiatoTeal}\par
259 % \showCol{CtpMacchiatoSky}\par
260 % \showCol{CtpMacchiatoSapphire}\par
261 % \showCol{CtpMacchiatoBlue}\par
262 % \showCol{CtpMacchiatoLavender}\par
263 % \showCol{CtpMacchiatoText}\par
264 % \showCol{CtpMacchiatoSubtext1}\par
265 % \showCol{CtpMacchiatoSubtext0}\par
266 % \showCol{CtpMacchiatoOverlay2}\par
267 % \showCol{CtpMacchiatoOverlay1}\par
268 % \showCol{CtpMacchiatoOverlay0}\par
269 % \showCol{CtpMacchiatoSurface2}\par
270 % \showCol{CtpMacchiatoSurface1}\par
271 % \showCol{CtpMacchiatoSurface0}\par
272 % \showCol{CtpMacchiatoBase}\par
273 % \showCol{CtpMacchiatoMantle}\par
274 % \showCol{CtpMacchiatoCrust}\par
275 % \end{multicols}
276 % Some basic colors according to the style guide:
277 % \begin{multicols}{2}
278 % \showCol{CtpMacchiatoBackground}\par
279 % \showCol{CtpMacchiatoLink}\par
280 % \phantom{}\par
281 % \columnbreak
282 % \showCol{CtpMacchiatoSuccess}\par
283 % \showCol{CtpMacchiatoWarning}\par
284 % \showCol{CtpMacchiatoError}\par
285 % \end{multicols}
286 % \subsubsection{Style \texttt{Mocha}}
287 % \begin{multicols}{2}
288 % \showCol{CtpMochaRosewater}\par
289 % \showCol{CtpMochaFlamingo}\par
290 % \showCol{CtpMochaPink}\par
291 % \showCol{CtpMochaMauve}\par
292 % \showCol{CtpMochaRed}\par
293 % \showCol{CtpMochaMaroon}\par
294 % \showCol{CtpMochaPeach}\par
295 % \showCol{CtpMochaYellow}\par
296 % \showCol{CtpMochaGreen}\par
297 % \showCol{CtpMochaTeal}\par
298 % \showCol{CtpMochaSky}\par
299 % \showCol{CtpMochaSapphire}\par
300 % \showCol{CtpMochaBlue}\par
301 % \showCol{CtpMochaLavender}\par
302 % \showCol{CtpMochaText}\par
303 % \showCol{CtpMochaSubtext1}\par
304 % \showCol{CtpMochaSubtext0}\par
305 % \showCol{CtpMochaOverlay2}\par
306 % \showCol{CtpMochaOverlay1}\par
307 % \showCol{CtpMochaOverlay0}\par
308 % \showCol{CtpMochaSurface2}\par
309 % \showCol{CtpMochaSurface1}\par
310 % \showCol{CtpMochaSurface0}\par
311 % \showCol{CtpMochaBase}\par
312 % \showCol{CtpMochaMantle}\par
313 % \showCol{CtpMochaCrust}\par
314 % \end{multicols}
315 % Some basic colors according to the style guide:
316 % \begin{multicols}{2}
317 % \showCol{CtpMochaBackground}\par
318 % \showCol{CtpMochaLink}\par
319 % \phantom{}\par
320 % \columnbreak
321 % \showCol{CtpMochaSuccess}\par
322 % \showCol{CtpMochaWarning}\par
323 % \showCol{CtpMochaError}\par
324 % \end{multicols}
325
326 %
327 % \StopEventually{}
328 %
329 % \section{Implementation}
330 %
331 % \iffalse
332 %<*package>
333 % \fi
334 %
335 % \begin{macrocode}
336 \NeedsTeXFormat{LaTeX2e}[1994/06/01]
337 \RequirePackage{pgfopts}
338 \RequirePackage{xcolor}
339 % \end{macrocode}
340 % Define the conditionals used by package options
341 % \begin{macrocode}
342 \newif\ifcatppuccinpalette@pagecolor
343 \newif\ifcatppuccinpalette@textcolor
344 \newif\ifcatppuccinpalette@hyperref
345 \pgfkeys{
346 /catppuccinPalette/.cd,
347 % \end{macrocode}
348 % Define the package option keys
349 % \begin{macrocode}
350 Latte/.style={style=Latte},
351 latte/.style={style=Latte},
352 Frappe/.style={style=Frappe},
353 frappe/.style={style=Frappe},
354 Macchiato/.style={style=Macchiato},
355 macchiato/.style={style=Macchiato},
356 Mocha/.style={style=Mocha},
357 mocha/.style={style=Mocha},
358 style/.is choice,
359 style/.value required,
360 style/Latte/.code = {\def\catppuccinpalette@style{Latte}},
361 style/latte/.style = {style=Latte},
362 style/Frappe/.code = {\def\catppuccinpalette@style{Frappe}},
363 style/frappe/.style = {style=Frappe},
364 style/Macchiato/.code = {\def\catppuccinpalette@style{Macchiato}},
365 style/macchiato/.style = {style=Macchiato},
366 style/Mocha/.code = {\def\catppuccinpalette@style{Mocha}},
367 style/mocha/.style = {style=Mocha},
368 textcolor/.is if = catppuccinpalette@textcolor,
369 textcolor/.default = true,
370 hyperref/.is if = catppuccinpalette@hyperref,
371 hyperref/.default = true,
372 pagecolor/.is if = catppuccinpalette@pagecolor,
373 pagecolor/.default = true,
374 styleAll/.style = {pagecolor,textcolor,hyperref},
375 % \end{macrocode}
376 % Set initial values for all options
377 % \begin{macrocode}
378 textcolor = false,
379 hyperref = false,
380 pagecolor = false,
381 style = Latte,
382 }
383 \ProcessPgfOptions{catppuccinPalette}
384 % \end{macrocode}
385
386 % Define the \emph{Latte} colorset
387 % \begin{macrocode}
388 \preparecolorset{RGB/HTML}{CatLatte}{}{%
389 Rosewater,220,138,120/DC8A78;%
390 Flamingo,221,120,120/DD7878;%
391 Pink,234,118,203/EA76CB;%
392 Mauve,136,57,239/8839EF;%
393 Red,210,15,57/D20F39;%
394 Maroon,230,69,83/E64553;%
395 Peach,254,100,11/FE640B;%
396 Yellow,223,142,29/DF8E1D;%
397 Green,64,160,43/40A02B;%
398 Teal,23,146,153/179299;%
399 Sky,4,165,229/04A5E5;%
400 Sapphire,32,159,181/209FB5;%
401 Blue,30,102,245/1E66F5;%
402 Lavender,114,135,253/7287FD;%
403 Text,76,79,105/4C4F69;%
404 Subtext1,92,95,119/5C5F77;%
405 Subtext0,108,111,133/6C6F85;%
406 Overlay2,124,127,147/7C7F93;%
407 Overlay1,140,143,161/8C8FA1;%
408 Overlay0,156,160,176/9CA0B0;%
409 Surface2,172,176,190/ACB0BE;%
410 Surface1,188,192,204/BCC0CC;%
411 Surface0,204,208,218/CCD0DA;%
412 Base,239,241,245/EFF1F5;%
413 Mantle,230,233,239/E6E9EF;%
414 Crust,220,224,232/DCE0E8%
415 }
416 \colorlet{CatLatteBackground}{CatLatteBase}
417 \colorlet{CatLatteLink}{CatLatteBlue}
418 \colorlet{CatLatteSuccess}{CatLatteGreen}
419 \colorlet{CatLatteWarning}{CatLatteYellow}
420 \colorlet{CatLatteError}{CatLatteRed}
421
422 \preparecolorset{RGB/HTML}{CtpLatte}{}{%
423 Rosewater,220,138,120/DC8A78;%
424 Flamingo,221,120,120/DD7878;%
425 Pink,234,118,203/EA76CB;%
426 Mauve,136,57,239/8839EF;%
427 Red,210,15,57/D20F39;%
428 Maroon,230,69,83/E64553;%
429 Peach,254,100,11/FE640B;%
430 Yellow,223,142,29/DF8E1D;%
431 Green,64,160,43/40A02B;%
432 Teal,23,146,153/179299;%
433 Sky,4,165,229/04A5E5;%
434 Sapphire,32,159,181/209FB5;%
435 Blue,30,102,245/1E66F5;%
436 Lavender,114,135,253/7287FD;%
437 Text,76,79,105/4C4F69;%
438 Subtext1,92,95,119/5C5F77;%
439 Subtext0,108,111,133/6C6F85;%
440 Overlay2,124,127,147/7C7F93;%
441 Overlay1,140,143,161/8C8FA1;%
442 Overlay0,156,160,176/9CA0B0;%
443 Surface2,172,176,190/ACB0BE;%
444 Surface1,188,192,204/BCC0CC;%
445 Surface0,204,208,218/CCD0DA;%
446 Base,239,241,245/EFF1F5;%
447 Mantle,230,233,239/E6E9EF;%
448 Crust,220,224,232/DCE0E8%
449 }
450 % \end{macrocode}
451 % Define colors according to the catppuccin style guide
452 % \begin{macrocode}
453 \colorlet{CtpLatteBackground}{CtpLatteBase}
454 \colorlet{CtpLatteLink}{CtpLatteBlue}
455 \colorlet{CtpLatteSuccess}{CtpLatteGreen}
456 \colorlet{CtpLatteWarning}{CtpLatteYellow}
457 \colorlet{CtpLatteError}{CtpLatteRed}
458 % \end{macrocode}
459
460 % Define the \emph{Frappe} colorset
461 % \begin{macrocode}
462 \preparecolorset{RGB/HTML}{CatFrappe}{}{%
463 Rosewater,242,213,207/F2D5CF;%
464 Flamingo,238,190,190/EEBEBE;%
465 Pink,244,184,228/F4B8E4;%
466 Mauve,202,158,230/CA9EE6;%
467 Red,231,130,132/E78284;%
468 Maroon,234,153,156/EA999C;%
469 Peach,239,159,118/EF9F76;%
470 Yellow,229,200,144/E5C890;%
471 Green,166,209,137/A6D189;%
472 Teal,129,200,190/81C8BE;%
473 Sky,153,209,219/99D1DB;%
474 Sapphire,133,193,220/85C1DC;%
475 Blue,140,170,238/8CAAEE;%
476 Lavender,186,187,241/BABBF1;%
477 Text,198,208,245/C6D0F5;%
478 Subtext1,181,191,226/B5BFE2;%
479 Subtext0,165,173,206/A5ADCE;%
480 Overlay2,148,156,187/949CBB;%
481 Overlay1,131,139,167/838BA7;%
482 Overlay0,115,121,148/737994;%
483 Surface2,98,104,128/626880;%
484 Surface1,81,87,109/51576D;%
485 Surface0,65,69,89/414559;%
486 Base,48,52,70/303446;%
487 Mantle,41,44,60/292C3C;%
488 Crust,35,38,52/232634%
489 }
490 \colorlet{CatFrappeBackground}{CatFrappeBase}
491 \colorlet{CatFrappeLink}{CatFrappeBlue}
492 \colorlet{CatFrappeSuccess}{CatFrappeGreen}
493 \colorlet{CatFrappeWarning}{CatFrappeYellow}
494 \colorlet{CatFrappeError}{CatFrappeRed}
495
496 \preparecolorset{RGB/HTML}{CtpFrappe}{}{%
497 Rosewater,242,213,207/F2D5CF;%
498 Flamingo,238,190,190/EEBEBE;%
499 Pink,244,184,228/F4B8E4;%
500 Mauve,202,158,230/CA9EE6;%
501 Red,231,130,132/E78284;%
502 Maroon,234,153,156/EA999C;%
503 Peach,239,159,118/EF9F76;%
504 Yellow,229,200,144/E5C890;%
505 Green,166,209,137/A6D189;%
506 Teal,129,200,190/81C8BE;%
507 Sky,153,209,219/99D1DB;%
508 Sapphire,133,193,220/85C1DC;%
509 Blue,140,170,238/8CAAEE;%
510 Lavender,186,187,241/BABBF1;%
511 Text,198,208,245/C6D0F5;%
512 Subtext1,181,191,226/B5BFE2;%
513 Subtext0,165,173,206/A5ADCE;%
514 Overlay2,148,156,187/949CBB;%
515 Overlay1,131,139,167/838BA7;%
516 Overlay0,115,121,148/737994;%
517 Surface2,98,104,128/626880;%
518 Surface1,81,87,109/51576D;%
519 Surface0,65,69,89/414559;%
520 Base,48,52,70/303446;%
521 Mantle,41,44,60/292C3C;%
522 Crust,35,38,52/232634%
523 }
524 % \end{macrocode}
525 % Define colors according to the catppuccin style guide
526 % \begin{macrocode}
527 \colorlet{CtpFrappeBackground}{CtpFrappeBase}
528 \colorlet{CtpFrappeLink}{CtpFrappeBlue}
529 \colorlet{CtpFrappeSuccess}{CtpFrappeGreen}
530 \colorlet{CtpFrappeWarning}{CtpFrappeYellow}
531 \colorlet{CtpFrappeError}{CtpFrappeRed}
532 % \end{macrocode}
533
534 % Define the \emph{Macchiato} colorset
535 % \begin{macrocode}
536 \preparecolorset{RGB/HTML}{CatMacchiato}{}{%
537 Rosewater,244,219,214/F4DBD6;%
538 Flamingo,240,198,198/F0C6C6;%
539 Pink,245,189,230/F5BDE6;%
540 Mauve,198,160,246/C6A0F6;%
541 Red,237,135,150/ED8796;%
542 Maroon,238,153,160/EE99A0;%
543 Peach,245,169,127/F5A97F;%
544 Yellow,238,212,159/EED49F;%
545 Green,166,218,149/A6DA95;%
546 Teal,139,213,202/8BD5CA;%
547 Sky,145,215,227/91D7E3;%
548 Sapphire,125,196,228/7DC4E4;%
549 Blue,138,173,244/8AADF4;%
550 Lavender,183,189,248/B7BDF8;%
551 Text,202,211,245/CAD3F5;%
552 Subtext1,184,192,224/B8C0E0;%
553 Subtext0,165,173,203/A5ADCB;%
554 Overlay2,147,154,183/939AB7;%
555 Overlay1,128,135,162/8087A2;%
556 Overlay0,110,115,141/6E738D;%
557 Surface2,91,96,120/5B6078;%
558 Surface1,73,77,100/494D64;%
559 Surface0,54,58,79/363A4F;%
560 Base,36,39,58/24273A;%
561 Mantle,30,32,48/1E2030;%
562 Crust,24,25,38/181926%
563 }
564 \colorlet{CatMacchiatoBackground}{CatMacchiatoBase}
565 \colorlet{CatMacchiatoLink}{CatMacchiatoBlue}
566 \colorlet{CatMacchiatoSuccess}{CatMacchiatoGreen}
567 \colorlet{CatMacchiatoWarning}{CatMacchiatoYellow}
568 \colorlet{CatMacchiatoError}{CatMacchiatoRed}
569
570 \preparecolorset{RGB/HTML}{CtpMacchiato}{}{%
571 Rosewater,244,219,214/F4DBD6;%
572 Flamingo,240,198,198/F0C6C6;%
573 Pink,245,189,230/F5BDE6;%
574 Mauve,198,160,246/C6A0F6;%
575 Red,237,135,150/ED8796;%
576 Maroon,238,153,160/EE99A0;%
577 Peach,245,169,127/F5A97F;%
578 Yellow,238,212,159/EED49F;%
579 Green,166,218,149/A6DA95;%
580 Teal,139,213,202/8BD5CA;%
581 Sky,145,215,227/91D7E3;%
582 Sapphire,125,196,228/7DC4E4;%
583 Blue,138,173,244/8AADF4;%
584 Lavender,183,189,248/B7BDF8;%
585 Text,202,211,245/CAD3F5;%
586 Subtext1,184,192,224/B8C0E0;%
587 Subtext0,165,173,203/A5ADCB;%
588 Overlay2,147,154,183/939AB7;%
589 Overlay1,128,135,162/8087A2;%
590 Overlay0,110,115,141/6E738D;%
591 Surface2,91,96,120/5B6078;%
592 Surface1,73,77,100/494D64;%
593 Surface0,54,58,79/363A4F;%
594 Base,36,39,58/24273A;%
595 Mantle,30,32,48/1E2030;%
596 Crust,24,25,38/181926%
597 }
598 % \end{macrocode}
599 % Define colors according to the catppuccin style guide
600 % \begin{macrocode}
601 \colorlet{CtpMacchiatoBackground}{CtpMacchiatoBase}
602 \colorlet{CtpMacchiatoLink}{CtpMacchiatoBlue}
603 \colorlet{CtpMacchiatoSuccess}{CtpMacchiatoGreen}
604 \colorlet{CtpMacchiatoWarning}{CtpMacchiatoYellow}
605 \colorlet{CtpMacchiatoError}{CtpMacchiatoRed}
606 % \end{macrocode}
607
608 % Define the \emph{Mocha} colorset
609 % \begin{macrocode}
610 \preparecolorset{RGB/HTML}{CatMocha}{}{%
611 Rosewater,245,224,220/F5E0DC;%
612 Flamingo,242,205,205/F2CDCD;%
613 Pink,245,194,231/F5C2E7;%
614 Mauve,203,166,247/CBA6F7;%
615 Red,243,139,168/F38BA8;%
616 Maroon,235,160,172/EBA0AC;%
617 Peach,250,179,135/FAB387;%
618 Yellow,249,226,175/F9E2AF;%
619 Green,166,227,161/A6E3A1;%
620 Teal,148,226,213/94E2D5;%
621 Sky,137,220,235/89DCEB;%
622 Sapphire,116,199,236/74C7EC;%
623 Blue,137,180,250/89B4FA;%
624 Lavender,180,190,254/B4BEFE;%
625 Text,205,214,244/CDD6F4;%
626 Subtext1,186,194,222/BAC2DE;%
627 Subtext0,166,173,200/A6ADC8;%
628 Overlay2,147,153,178/9399B2;%
629 Overlay1,127,132,156/7F849C;%
630 Overlay0,108,112,134/6C7086;%
631 Surface2,88,91,112/585B70;%
632 Surface1,69,71,90/45475A;%
633 Surface0,49,50,68/313244;%
634 Base,30,30,46/1E1E2E;%
635 Mantle,24,24,37/181825;%
636 Crust,17,17,27/11111B%
637 }
638 \colorlet{CatMochaBackground}{CatMochaBase}
639 \colorlet{CatMochaLink}{CatMochaBlue}
640 \colorlet{CatMochaSuccess}{CatMochaGreen}
641 \colorlet{CatMochaWarning}{CatMochaYellow}
642 \colorlet{CatMochaError}{CatMochaRed}
643
644 \preparecolorset{RGB/HTML}{CtpMocha}{}{%
645 Rosewater,245,224,220/F5E0DC;%
646 Flamingo,242,205,205/F2CDCD;%
647 Pink,245,194,231/F5C2E7;%
648 Mauve,203,166,247/CBA6F7;%
649 Red,243,139,168/F38BA8;%
650 Maroon,235,160,172/EBA0AC;%
651 Peach,250,179,135/FAB387;%
652 Yellow,249,226,175/F9E2AF;%
653 Green,166,227,161/A6E3A1;%
654 Teal,148,226,213/94E2D5;%
655 Sky,137,220,235/89DCEB;%
656 Sapphire,116,199,236/74C7EC;%
657 Blue,137,180,250/89B4FA;%
658 Lavender,180,190,254/B4BEFE;%
659 Text,205,214,244/CDD6F4;%
660 Subtext1,186,194,222/BAC2DE;%
661 Subtext0,166,173,200/A6ADC8;%
662 Overlay2,147,153,178/9399B2;%
663 Overlay1,127,132,156/7F849C;%
664 Overlay0,108,112,134/6C7086;%
665 Surface2,88,91,112/585B70;%
666 Surface1,69,71,90/45475A;%
667 Surface0,49,50,68/313244;%
668 Base,30,30,46/1E1E2E;%
669 Mantle,24,24,37/181825;%
670 Crust,17,17,27/11111B%
671 }
672 % \end{macrocode}
673 % Define colors according to the catppuccin style guide
674 % \begin{macrocode}
675 \colorlet{CtpMochaBackground}{CtpMochaBase}
676 \colorlet{CtpMochaLink}{CtpMochaBlue}
677 \colorlet{CtpMochaSuccess}{CtpMochaGreen}
678 \colorlet{CtpMochaWarning}{CtpMochaYellow}
679 \colorlet{CtpMochaError}{CtpMochaRed}
680 % \end{macrocode}
681
682 % Define shortcuts for active style (legacy part)
683 % \begin{macrocode}
684 \colorlet{CatRosewater}{Ctp\catppuccinpalette@style Rosewater}
685 \colorlet{CatFlamingo}{Ctp\catppuccinpalette@style Flamingo}
686 \colorlet{CatPink}{Ctp\catppuccinpalette@style Pink}
687 \colorlet{CatMauve}{Ctp\catppuccinpalette@style Mauve}
688 \colorlet{CatRed}{Ctp\catppuccinpalette@style Red}
689 \colorlet{CatMaroon}{Ctp\catppuccinpalette@style Maroon}
690 \colorlet{CatPeach}{Ctp\catppuccinpalette@style Peach}
691 \colorlet{CatYellow}{Ctp\catppuccinpalette@style Yellow}
692 \colorlet{CatGreen}{Ctp\catppuccinpalette@style Green}
693 \colorlet{CatTeal}{Ctp\catppuccinpalette@style Teal}
694 \colorlet{CatSky}{Ctp\catppuccinpalette@style Sky}
695 \colorlet{CatSapphire}{Ctp\catppuccinpalette@style Sapphire}
696 \colorlet{CatBlue}{Ctp\catppuccinpalette@style Blue}
697 \colorlet{CatLavender}{Ctp\catppuccinpalette@style Lavender}
698 \colorlet{CatText}{Ctp\catppuccinpalette@style Text}
699 \colorlet{CatSubtext1}{Ctp\catppuccinpalette@style Subtext1}
700 \colorlet{CatSubtext0}{Ctp\catppuccinpalette@style Subtext0}
701 \colorlet{CatOverlay2}{Ctp\catppuccinpalette@style Overlay2}
702 \colorlet{CatOverlay1}{Ctp\catppuccinpalette@style Overlay1}
703 \colorlet{CatOverlay0}{Ctp\catppuccinpalette@style Overlay0}
704 \colorlet{CatSurface2}{Ctp\catppuccinpalette@style Surface2}
705 \colorlet{CatSurface1}{Ctp\catppuccinpalette@style Surface1}
706 \colorlet{CatSurface0}{Ctp\catppuccinpalette@style Surface0}
707 \colorlet{CatBase}{Ctp\catppuccinpalette@style Base}
708 \colorlet{CatMantle}{Ctp\catppuccinpalette@style Mantle}
709 \colorlet{CatCrust}{Ctp\catppuccinpalette@style Crust}
710 \colorlet{CatBackground}{Ctp\catppuccinpalette@style Base}
711 \colorlet{CatLink}{Ctp\catppuccinpalette@style Blue}
712 \colorlet{CatSuccess}{Ctp\catppuccinpalette@style Green}
713 \colorlet{CatWarning}{Ctp\catppuccinpalette@style Yellow}
714 \colorlet{CatError}{Ctp\catppuccinpalette@style Red}
715
716 % \end{macrocode}
717 % New command which parses the same options like the package. Can be used to e.\,g.\, reset/reinit the selected style.
718 % \begin{macrocode}
719 \NewDocumentCommand\CtpReinit{O{}}{%
720 \pgfkeys{%
721 /catppuccinPalette/.cd,%
722 #1%
723 }%
724 % \end{macrocode}
725 % Define shortcuts for active style
726 % \begin{macrocode}
727 \colorlet{CtpRosewater}{Ctp\catppuccinpalette@style Rosewater}%
728 \colorlet{CtpFlamingo}{Ctp\catppuccinpalette@style Flamingo}%
729 \colorlet{CtpPink}{Ctp\catppuccinpalette@style Pink}%
730 \colorlet{CtpMauve}{Ctp\catppuccinpalette@style Mauve}%
731 \colorlet{CtpRed}{Ctp\catppuccinpalette@style Red}%
732 \colorlet{CtpMaroon}{Ctp\catppuccinpalette@style Maroon}%
733 \colorlet{CtpPeach}{Ctp\catppuccinpalette@style Peach}%
734 \colorlet{CtpYellow}{Ctp\catppuccinpalette@style Yellow}%
735 \colorlet{CtpGreen}{Ctp\catppuccinpalette@style Green}%
736 \colorlet{CtpTeal}{Ctp\catppuccinpalette@style Teal}%
737 \colorlet{CtpSky}{Ctp\catppuccinpalette@style Sky}%
738 \colorlet{CtpSapphire}{Ctp\catppuccinpalette@style Sapphire}%
739 \colorlet{CtpBlue}{Ctp\catppuccinpalette@style Blue}%
740 \colorlet{CtpLavender}{Ctp\catppuccinpalette@style Lavender}%
741 \colorlet{CtpText}{Ctp\catppuccinpalette@style Text}%
742 \colorlet{CtpSubtext1}{Ctp\catppuccinpalette@style Subtext1}%
743 \colorlet{CtpSubtext0}{Ctp\catppuccinpalette@style Subtext0}%
744 \colorlet{CtpOverlay2}{Ctp\catppuccinpalette@style Overlay2}%
745 \colorlet{CtpOverlay1}{Ctp\catppuccinpalette@style Overlay1}%
746 \colorlet{CtpOverlay0}{Ctp\catppuccinpalette@style Overlay0}%
747 \colorlet{CtpSurface2}{Ctp\catppuccinpalette@style Surface2}%
748 \colorlet{CtpSurface1}{Ctp\catppuccinpalette@style Surface1}%
749 \colorlet{CtpSurface0}{Ctp\catppuccinpalette@style Surface0}%
750 \colorlet{CtpBase}{Ctp\catppuccinpalette@style Base}%
751 \colorlet{CtpMantle}{Ctp\catppuccinpalette@style Mantle}%
752 \colorlet{CtpCrust}{Ctp\catppuccinpalette@style Crust}%
753 \colorlet{CtpBackground}{Ctp\catppuccinpalette@style Base}%
754 \colorlet{CtpLink}{Ctp\catppuccinpalette@style Blue}%
755 \colorlet{CtpSuccess}{Ctp\catppuccinpalette@style Green}%
756 \colorlet{CtpWarning}{Ctp\catppuccinpalette@style Yellow}%
757 \colorlet{CtpError}{Ctp\catppuccinpalette@style Red}%
758 % \end{macrocode}
759 % Set pagecolor according to the style guide if the user wants this
760 % \begin{macrocode}
761 \ifcatppuccinpalette@pagecolor%
762 \pagecolor{CtpBackground}%
763 \fi%
764 % \end{macrocode}
765 % Set textcolor according to the style guide if the user wants this
766 % \begin{macrocode}
767 \ifcatppuccinpalette@textcolor%
768 \color{CtpText}%
769 \fi%
770 % \end{macrocode}
771 % Style hyerref according to the styleguide\footnote{\url{https://github.com/catppuccin/catppuccin/blob/main/docs/style-guide.md\#typography}} if the user wants it
772 % \begin{macrocode}
773 \ifcatppuccinpalette@hyperref%
774 \PassOptionsToPackage{
775 linkcolor=CtpBlue,citecolor=CtpGreen,filecolor=CtpSky,menucolor=CtpBlue,runcolor=CtpSky,urlcolor=CtpSapphire,%
776 linkbordercolor=CtpBlue,citebordercolor=CtpGreen,filebordercolor=CtpSky,menubordercolor=CtpBlue,runbordercolor=CtpSky,urlbordercolor=CtpSapphire,%
777 }{hyperref}%
778 \fi%
779 % \end{macrocode}
780 % \begin{macrocode}
781 }
782 \CtpReinit[]
783 % \end{macrocode}
784 \endinput
785 %
786 % \iffalse
787 %</package>
788 % \fi
789 %
790 % \Finale
791 \endinput