diff --git a/my-theorems.sty b/my-theorems.sty
index 5b7a76fe12601bd51a7b2ce5299bb2c1b6d5bf29..b2460ab3d6812ea95f874b17a4e5fa0c781e939a 100644
--- a/my-theorems.sty
+++ b/my-theorems.sty
@@ -31,4 +31,11 @@
     \newtheorem*{definition}{\translate{Definition}}
     \deftranslation[to=French]{Definition}{D\'efinition}
   }
-}
\ No newline at end of file
+}
+
+% better theorems
+\usepackage[theorems]{tcolorbox}
+
+\newtcbtheorem[number within=section]{codeconv}{\translate{Code conventions}}%
+{colback=gray!10,colframe=gray!80,fonttitle=\bfseries}{th}
+\deftranslation[to=French]{Code conventions}{Conventions de codage}