Default gray percentage too low
raffaem opened this issue · comments
Raffaele Mancuso commented
I was experimenting with the striped
option like in the vignette:
kbl(dt, booktabs = T, linesep="") %>% kable_styling(latex_options = "striped")
This is the generated LaTeX code:
\cellcolor{gray!6}{Mazda RX4} & \cellcolor{gray!6}{21.0} & \cellcolor{gray!6}{6} &
but the default gray percentage of 6% is barely visible.
I thought the option didn't work until I figured it out and incremented the percentage manually.
- How can I change this percentage?
- Shouldn't we have a higher default value?
Rainer Hurling commented
Hi @raffaem,
You are already using the kable_styling()
function. Inside this function try something like stripe_color = "gray!15"
.
HTH,
Rainer