Add a colorbox
key to the thmtools package which wraps theorems inside configurable boxes.
In particular, the theorem title is extracted from the body to be set in the appropriate space in the box.
This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, version 1.3c. The license can be obtained from http://www.latex-project.org/lppl/lppl-1.3c.txt.