\documentclass[a4paper,french]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{tikz-cd}
\usepackage{awesomebox}
\usepackage{babel}
\tikzcdset{arrow style=Latin Modern}
\usepackage{tcolorbox}
\tcbuselibrary{theorems}
\newtcbtheorem[number within=section]{mytheo}{Théorème}%
{colback=red!5,colframe=red!35!black,fonttitle=\bfseries}{th}
\newtcbtheorem[use counter from=mytheo]{mycoro}{Corollaire}%
{colback=blue!5,colframe=blue!35!black,fonttitle=\bfseries}{cor}
\newtcbtheorem[use counter from=mytheo]{mydefi}{Définition}%
{colback=green!5,colframe=green!35!black,fonttitle=\bfseries}{def}
\newtcbtheorem[use counter from=mytheo]{myexple}{Exemple}%
{colback=blue!5,colframe=blue!35!black,fonttitle=\bfseries}{exple}
\newtcbtheorem[use counter from=mytheo]{myprop}{Proposition}%
{colback=red!5,colframe=red!35!black,fonttitle=\bfseries}{prop}
\begin{document}
\section{Préliminaires}
\begin{mydefi}{}{voisinage1}
Une définition
\end{mydefi}{}{}
\begin{myexple}{}{voisinage2}
Un exemple
\end{myexple}
L'exemple~\ref{exple:voisinage2} était très instructif !