metropolis_theme/beamercolorthememetropolis.sty

119 lines
2.3 KiB
Plaintext
Raw Normal View History

2014-09-22 17:10:05 +02:00
% Beamer mtheme
%
% Copyright 2014 Matthias Vogelgesang
% Licensed under CC-BY-SA 4.0 International.
%
\ProvidesPackage{beamercolorthememetropolis}
% Options
% =======
% Option: blockbg
% applies a gray background to blocks
\newif\if@beamer@metropolis@blockbg
\@beamer@metropolis@blockbgfalse
\DeclareOptionBeamer{blockbg}{
\@beamer@metropolis@blockbgtrue
}
% Option: ...
\DeclareOptionBeamer*{%
\PackageWarning{beamercolorthememetropolis}{Unknown option `\CurrentOption'}%
}
\ProcessOptionsBeamer
% Color definitions
% =================
%
% See http://paletton.com/#uid=7050t0kkJkJsntwoyp6gYgoddc4
%
2014-09-22 17:10:05 +02:00
\definecolor{mDarkBrown}{HTML}{604c38}
\definecolor{mDarkTeal}{HTML}{23373b}
\definecolor{mLightBrown}{HTML}{EB811B}
% Base colors
% ===========
%
% The metropolis color theme is defined in terms of four main styles:
%
% - normal text (dark fg, light bg)
% - alerted text (colored fg, should be visible against dark or light)
% - structure (light fg, dark bg)
% - block title (dark fg, light-ish bg)
%
% An easy way to customize the theme is to redefine these colors using
%
% \setbeamercolor{ ... }{ fg= ... , bg= ... }
%
% in your preamble.
%
\setbeamercolor{normal text}{%
fg=mDarkTeal,
bg=black!2
}
2014-09-22 17:10:05 +02:00
\setbeamercolor{alerted text}{%
fg=mLightBrown
}
\setbeamercolor{structure}{%
fg=white,
bg=mDarkTeal
}
2014-09-22 17:10:05 +02:00
\if@beamer@metropolis@blockbg
\setbeamercolor{block title}{%
use=normal text,
fg=normal text.fg,
bg=normal text.bg!80!fg
}
\else
\setbeamercolor{block title}{use=normal text, parent=normal text}
\fi
2015-01-23 02:41:41 +01:00
% Derived colors
% ==============
%
% These colors are all defined in terms of the four above. Beamer colors not
% defined here are inherited from `beamercolorthemedefault.sty`
%
\setbeamercolor{frametitle}{use=structure, parent=structure}
\setbeamercolor{background canvas}{use=normal text, parent=normal text}
\setbeamercolor{titlelike}{use=normal text, parent=normal text}
\setbeamercolor{footnote}{fg=normal text.fg!90}
\setbeamercolor{footnote mark}{fg=.}
\setbeamercolor{block body}{
use=block title,
bg=block title.bg!50
}
\setbeamercolor{block title alerted}{%
use={block title, alerted text},
bg=block title.bg,
fg=alerted text.fg
}
\setbeamercolor{block title example}{%
use={block title, example text},
bg=block title.bg,
fg=example text.fg
}
2015-01-23 02:41:41 +01:00
\mode<all>