\documentclass{report}
\usepackage[dvipsnames]{xcolor}
\usepackage[margin=1in]{geometry}
\usepackage{afterpage}
\usepackage{tikz}
\usetikzlibrary{fadings}
\usepackage{geometry,tikz}
\usetikzlibrary{calc}
\usepackage[placement=bottom,scale=1,opacity=1]{background}
\backgroundsetup{contents={%
\begin{tikzpicture}
\fill [red] (current page.north west) rectangle ($(current page.north east)!.25!(current page.south east)$) coordinate (a);
\fill [blue] (current page.south west) rectangle (a);
\end{tikzpicture}}}
\usepackage{kantlipsum}
\usepackage{pagecolor,afterpage}
\usepackage{lipsum}
\begin{document}
\DeclareFixedFont{\titlefont}{T1}{put}{b}{}{1.01in}
\DeclareFixedFont{\subtitlefont}{T1}{ppl}{b}{}{0.5in}
\DeclareFixedFont{\subsubtitlefont}{T1}{ppl}{b}{}{0.3in}
\afterpage{\restoregeometry}
\newgeometry{left=1.5cm, right=1cm,top=1cm, bottom=1cm}
\definecolor{mytan}{HTML}{F6D5A8}
\pagecolor{SpringGreen}\afterpage{\nopagecolor}
\thispagestyle{empty}
\begin{center}
\titlefont\textcolor{yellow}{Notes}
\vspace{4cm}\\
\subsubtitlefont{Benjamín Garcés}
\vspace{1cm}\\
\subtitlefont{RING THEORY}
\vspace{1cm}\\
\subsubtitlefont{First Edition}
\end{center}
\newpagecolor{red}
\afterpage{\afterpage{\restorepagecolor}}
\chapter{Introduction to Module Theory}
\end{document}
I'm trying to create a front page with colors. I found this code to be able to paint half of a page with one color and the other half with a different one, the problem is that all the following pages were like this, and I want them to be white. I've tried \newpagecolor, \pagecolor{white} and it hasn't worked for me.
\documentclass[]{}, preambule and\begin{document} ... \end{document}\newtcbtheoremand the other in\newcommand.\end{document}, but you should also try to minimise the code you post here to demonstrate the problem by removing preamble we don't need to reproduce it.