I came across a website which provides examples of pretty boxes to frame theorems in LaTeX with extension bioboite and not with TikZ.

Here is code with:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{boiboites}
\newboxedtheorem[boxcolor=orange, background=blue!5, titlebackground=blue!20,
titleboxcolor = black]{theo}{Théorème}{test}
\begin{document}
\begin{theo}[Loi des grands nombres]
Soit $(X_n)_{n\in \mathbb{N}}$ une suite de variables aléatoires réelles
indépendantes identiquement distribuées telles que $X_1 \in L^1$. Alors :
$$\frac{1}{n} \sum_{i=1}^n X_i \overset{\textnormal{p.s.}}{\longrightarrow}
\mathbb{E} (X_1) .$$
\end{theo}
\end{document}
Please, if someone could make it in TikZ code with counters independent from theorems, propositions. Also, if possible with different style and color, for example the style of theorems different from propositions or lemmas.


tcolorbox. – Gonzalo Medina Jul 07 '13 at 17:37mdframedapproach? I found this topic, but was not able to adapt the answer to use with\mdfdefinestyle: mdframed box of fixed minimum height – Bart Michels Dec 20 '16 at 11:22