Erik Meier
Erik Meier

Reputation: 61

Is it possible to change the font color of a flexdashboard valuebox?

Is it possible to change the font color of a flexdashboard valuebox? The default color is white. But I don't know how to change the color to black.

### Population

```{r}
Withtext <- dollar_format(prefix = "",suffix="",big.mark = ".", decimal.mark = ".")
valueBox(Withtext(5112050), icon = "fa-user-alt",col="#D3D3D3")

Upvotes: 0

Views: 861

Answers (1)

Nata_Berishvili
Nata_Berishvili

Reputation: 71

You can add a CSS code chunk to the dashboard and style a valuebox.

```{css}

.value-output {
  color: red;
}

.caption {
  color: yellow;
}

```

enter image description here

Upvotes: 1

Related Questions