In the following code a table is drawn:
\documentclass{article}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{tcolorbox}
\usepackage{tabularx}
\usepackage{array}
\usepackage{colortbl}
\tcbuselibrary{skins}
\newcolumntype{Y}{>{\centering\arraybackslash}X}
\tcbset{tab2/.style={enhanced,fonttitle=\bfseries,fontupper=\normalsize\sffamily,
colback=white!10!white,colframe=red!50!black,colbacktitle=Salmon!40!white,
coltitle=black,center title}}
\begin{document}
\begin{tcolorbox}[tab2,tabularx={X|Y|Y|Y|Y|Y},title= to be replaced with table number,boxrule=0.8pt]
group & one & two & three & four & sum \\\hline
red & 1000.00 & 2000.00 & 3000.00 & 4000.00 & 10000.00 \\\hline
green & 2000.00 & 3000.00 & 4000.00 & 5000.00 & 14000.00 \\\hline
blue & 3000.00 & 4000.00 & 5000.00 & 6000.00 & 18000.00 \\\hline
sum & 6000.00 & 9000.00 & 12000.00 & 15000.00 & 42000.00
\end{tcolorbox}
\end{document}
I have a few problems with it:
The contents of the left column are not in the center of cells. How can I solve this problem?
How can I add a label for this table?
How can I increase the height of rows a bit more?