Holding repo for CMS plotting style ROOT macros guidelines available at https://cms-analysis.docs.cern.ch/guidelines/plotting/general/
Both python and C++ implementations available.
Python:
pip install cmsstyle
C++:
git clone https://github.com/cms-cat/cmsstyle.git
cd cmsstyle
source scripts/setup_cmstyle
Documentation for the Python implementation is available at cmsstyle.readthedocs.io. C++ implementation is analogous.