I have a working table with cell colors:
\newcommand{\ye}{\cellcolor{yellow}}
\newcommand{\re}{\cellcolor{red}}
\begin{tabular}{l l l}
& A & B\\
Test1 & \gr Good & \re Bad \\
test2 & \ye OK & \re Bad \\
test3 & \gr Good & \re Good \\
\end{tabular}
However it would improve the readability a lot, if I there were some spacing between the colors, just like the examples on page two of The official guide.
Based on section 4.3 and 4.1 in this guide I have tried both:
\newcommand{\gr}{\cellcolor{green}[0.5\tabcolsep][0.5\tabcolsep]}
\newcommand{\gr}{\cellcolor{green}[0.5\tabcolsep]}
Both of those throws these two errors (multiple times) when I compile.
! Missing number, treated as zero.
! Illegal unit of measure (pt inserted).
If i try any of
\newcommand{\gr}{\cellcolor{green}[0.5][0.5]}
\newcommand{\gr}{\cellcolor{green}[0.5]}
The text [0.5][0.5] is just inserted as normal text.
So my question is: How to add padding/spacing to the \cellcolor command, so I achieve a small white border between the cells? Preferably I would be able to control vertical and horizontal padding sperately