\documentclass[10pt,english,aspectratio=1610,xcolor=svgnames]{beamer}

\usetheme[
    decorative,
    nocodebox,
    frametitle=plain,
    margin=3em,
    soberblock
]{Celestia}

\title{The Celestia Theme}
\subtitle{v1.0.0}
\author{Razik Ikhlef}
\date{\today}

\begin{document}

\begin{frame}[plain]
    \titlepage
\end{frame}

\begin{frame}[fragile]{Fonts}
    \begin{description}[mainfaceoptions]
        \item[mainface] Main font for text and titles (\alert{Literata} by default)
        \item[mainfaceoptions] Options directly passed to \alert{fontspec} for the main font
        \item[sansface] Sans-serif font for structural elements (\alert{Inter} by default)
        \item[sansfaceoptions] Options passed to \alert{fontspec} for the sans-serif font
        \item[monoface] Monospace font for code (\alert{Roboto Mono} by default)
        \item[monofaceoptions] Options passed to \alert{fontspec} for the monospace font
        \item[allserif] Uses the main serif font for mathematics
    \end{description}

    \begin{exampleblock}{Example}
        \begin{lstlisting}[style=latex]
\usetheme[
    mainface=EB Garamond,
    mainfaceoptions={Scale=1.1},
    sansface=Montserrat,
    monoface=Fira Code,
    allserif
]{Celestia}
        \end{lstlisting}
    \end{exampleblock}
\end{frame}

\begin{frame}[fragile]{Colors}
    \begin{description}[codebackgroundcolor]
        \item[maincolor] Main color used for titles and accents (\alert{\LaTeX} svgname or \alert{HTML} hexadecimal code)
        \item[accentcolor] Secondary color for special elements
        \item[backgroundcolor] Slide background color (\alert{F7F9FC} by default)
        \item[codebackgroundcolor] Code block background color (\alert{F1F3F6} by default)
        \item[mainblue] Standard block color (\alert{045549} by default)
        \item[maingreen] Example block color (\alert{054924} by default)
        \item[mainred] Alert block color (\alert{490445} by default)
        \item[unicolor] Uses the main color for all text
    \end{description}

    \begin{exampleblock}{Example}
        \begin{lstlisting}[style=latex]
\usetheme[
    maincolor=045549,
    accentcolor=E63946,
    backgroundcolor=FAFAFA,
    codebackgroundcolor=F5F5F5
]{Celestia}
        \end{lstlisting}
    \end{exampleblock}
\end{frame}

\begin{frame}[fragile]{Layout}
    \begin{description}[centeredtitle]
        \item[margin] Content margin (\alert{2em} by default)
        \item[frametitle] Title style (\alert{elegant}, \alert{plain}, \alert{centered})
        \item[decorative] Enables decorative elements
        \item[nodecorative] Disables decorative elements
        \item[centeredtitle] Centers the title on the title page
        \item[titleright] Right-aligns the title
    \end{description}

    \begin{exampleblock}{Example}
        \begin{lstlisting}[style=latex]
\usetheme[
    margin=1.5em,
    frametitle=centered,
    decorative,
    centeredtitle
]{Celestia}
        \end{lstlisting}
    \end{exampleblock}
\end{frame}

\begin{frame}[fragile]{Headers}
    \begin{description}[headweight]
        \item[headstyle] Font family for titles: \alert{rmfamily} (serif) or \alert{sffamily} (sans-serif)
        \item[headshape] Character style: \alert{sc} (small caps), \alert{it} (italic), \alert{normal}
        \item[headweight] Title weight: \alert{bfseries} (bold) or \alert{mdseries} (normal)
    \end{description}

    \begin{exampleblock}{Example}
        \begin{lstlisting}[style=latex]
\usetheme[
    headstyle=sffamily,
    headshape=sc,
    headweight=bfseries
]{Celestia}
        \end{lstlisting}
    \end{exampleblock}
\end{frame}

\begin{frame}[fragile]{Code}
    \begin{description}[nocodeframe]
        \item[codebox] Enables code framing with \alert{tcolorbox} (\alert{true} by default)
        \item[nocodebox] Completely disables \alert{tcolorbox} code framing
        \item[nocodeframe] Keeps \alert{tcolorbox} but without visible border
    \end{description}

    \begin{exampleblock}{Example}
        \begin{lstlisting}[style=latex]
\usetheme[
    nocodebox,
    nocodeframe
]{Celestia}
        \end{lstlisting}
    \end{exampleblock}
\end{frame}

\begin{frame}[fragile]{Footer}
    \begin{description}[quartercirclefooter]
        \item[nofooter] Completely removes the footer, except for the slide number
        \item[quartercirclefooter] Displays only the number in a quarter circle at the bottom right
        \item[fullbarfooter] Creates a complete bar with author/title/date and number in a circle
    \end{description}

    \begin{exampleblock}{Example}
        \begin{lstlisting}[style=latex]
\usetheme[
    quartercirclefooter
]{Celestia}
        \end{lstlisting}
    \end{exampleblock}
\end{frame}

\begin{frame}[fragile]{Table of Contents}
    \begin{description}[twocolumntoc]
        \item[compacttoc] Reduces vertical spacing between table of contents entries
        \item[twocolumntoc] Automatically distributes sections across two balanced columns
    \end{description}

    \begin{exampleblock}{Example}
        \begin{lstlisting}[style=latex]
\usetheme[
    compacttoc,
    twocolumntoc
]{Celestia}
        \end{lstlisting}
    \end{exampleblock}
\end{frame}

\begin{frame}{Blocks}
    \begin{description}[exampleblock]
        \item[block] Standard block for normal content
        \item[exampleblock] Block for examples
        \item[alertblock] Block for alerts
    \end{description}

    \begin{block}{Standard block}Standard block content\end{block}
    \begin{exampleblock}{Example block}Example block content\end{exampleblock}
    \begin{alertblock}{Alert block}Alert block content\end{alertblock}
\end{frame}

\begin{frame}[fragile]{Block Styles}
    \begin{description}[soberblock]
        \item[soberblock] The title adopts the main block color (mainblue/maingreen/mainred) on the document's general background, while the body keeps a slightly tinted background (10%)
        \item[softblock] The title and body share the same slightly tinted background (10%), with the title in the corresponding main color
    \end{description}

    \begin{exampleblock}{Example}
        \begin{lstlisting}[style=latex]
\usetheme[
    soberblock  % Colored title on document background
]{Celestia}

% or

\usetheme[
    softblock   % Colored title on 10% background
]{Celestia}
        \end{lstlisting}
    \end{exampleblock}

\end{frame}

\begin{frame}[standout]{Standout Pages}
    The \texttt{standout} option transforms a slide into a standout page, ideal for key moments in the presentation: striking quotes, essential figures, take-away messages
\end{frame}

\end{document}
