You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

134 lines
3.6KB

  1. %%
  2. %% This is file `beamercolorthememetropolis.sty',
  3. %% generated with the docstrip utility.
  4. %%
  5. %% The original source files were:
  6. %%
  7. %% beamercolorthememetropolis.dtx (with options: `package')
  8. %% ---------------------------------------------------------------------------
  9. %% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
  10. %% contributors can be found at
  11. %%
  12. %% https://github.com/matze/mtheme/graphs/contributors
  13. %%
  14. %% and the original template was based on the HSRM theme by Benjamin Weiss.
  15. %%
  16. %% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
  17. %% International License (https://creativecommons.org/licenses/by-sa/4.0/).
  18. %% ---------------------------------------------------------------------------
  19. \NeedsTeXFormat{LaTeX2e}
  20. \ProvidesPackage{beamercolorthememetropolis}[2016/02/21 Metropolis color theme]
  21. \RequirePackage{pgfopts}
  22. \pgfkeys{
  23. /metropolis/color/block/.cd,
  24. .is choice,
  25. transparent/.code=\metropolis@block@transparent,
  26. fill/.code=\metropolis@block@fill,
  27. }
  28. \pgfkeys{
  29. /metropolis/color/background/.cd,
  30. .is choice,
  31. dark/.code=\metropolis@colors@dark,
  32. light/.code=\metropolis@colors@light,
  33. }
  34. \newcommand{\metropolis@color@setdefaults}{
  35. \pgfkeys{/metropolis/color/.cd,
  36. background=light,
  37. block=transparent,
  38. }
  39. }
  40. \definecolor{mDarkBrown}{HTML}{604c38}
  41. \definecolor{mDarkTeal}{HTML}{23373b}
  42. \definecolor{mLightBrown}{HTML}{EB811B}
  43. \definecolor{mLightGreen}{HTML}{14B03D}
  44. \newcommand{\metropolis@colors@dark}{
  45. \setbeamercolor{normal text}{%
  46. fg=black!2,
  47. bg=mDarkTeal
  48. }
  49. }
  50. \newcommand{\metropolis@colors@light}{
  51. \setbeamercolor{normal text}{%
  52. fg=mDarkTeal,
  53. bg=black!2
  54. }
  55. }
  56. \setbeamercolor{alerted text}{%
  57. fg=mLightBrown
  58. }
  59. \setbeamercolor{example text}{%
  60. fg=mLightGreen
  61. }
  62. \setbeamercolor{titlelike}{use=normal text, parent=normal text}
  63. \setbeamercolor{author}{use=normal text, parent=normal text}
  64. \setbeamercolor{date}{use=normal text, parent=normal text}
  65. \setbeamercolor{institute}{use=normal text, parent=normal text}
  66. \setbeamercolor{structure}{use=normal text, fg=normal text.fg}
  67. \setbeamercolor{palette primary}{%
  68. use=normal text,
  69. fg=normal text.bg,
  70. bg=normal text.fg
  71. }
  72. \setbeamercolor{frametitle}{%
  73. use=palette primary,
  74. parent=palette primary
  75. }
  76. \setbeamercolor{progress bar}{%
  77. use=alerted text,
  78. fg=alerted text.fg,
  79. bg=alerted text.fg!50!black!30
  80. }
  81. \setbeamercolor{title separator}{
  82. use=progress bar,
  83. parent=progress bar
  84. }
  85. \setbeamercolor{progress bar in head/foot}{%
  86. use=progress bar,
  87. parent=progress bar
  88. }
  89. \setbeamercolor{progress bar in section page}{
  90. use=progress bar,
  91. parent=progress bar
  92. }
  93. \newcommand{\metropolis@block@transparent}{
  94. \setbeamercolor{block title}{%
  95. use=normal text,
  96. fg=normal text.fg,
  97. bg=
  98. }
  99. \setbeamercolor{block body}{
  100. bg=
  101. }
  102. }
  103. \newcommand{\metropolis@block@fill}{
  104. \setbeamercolor{block title}{%
  105. use=normal text,
  106. fg=normal text.fg,
  107. bg=normal text.bg!80!fg
  108. }
  109. \setbeamercolor{block body}{
  110. use={block title, normal text},
  111. bg=block title.bg!50!normal text.bg
  112. }
  113. }
  114. \setbeamercolor{block title alerted}{%
  115. use={block title, alerted text},
  116. bg=block title.bg,
  117. fg=alerted text.fg
  118. }
  119. \setbeamercolor{block title example}{%
  120. use={block title, example text},
  121. bg=block title.bg,
  122. fg=example text.fg
  123. }
  124. \setbeamercolor{block body alerted}{use=block body, parent=block body}
  125. \setbeamercolor{block body example}{use=block body, parent=block body}
  126. \setbeamercolor{footnote}{fg=normal text.fg!90}
  127. \setbeamercolor{footnote mark}{fg=.}
  128. \metropolis@color@setdefaults
  129. \ProcessPgfPackageOptions{/metropolis/color}
  130. \mode<all>
  131. \endinput
  132. %%
  133. %% End of file `beamercolorthememetropolis.sty'.