An open API service indexing awesome lists of open source software.

https://github.com/gadenbuie/r-colors-css

A utility CSS stylesheet with R's color names
https://github.com/gadenbuie/r-colors-css

Last synced: 12 days ago
JSON representation

A utility CSS stylesheet with R's color names

Awesome Lists containing this project

README

        

---
output: md_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```

# R Colors in CSS

> All of R's [named colors](https://rdrr.io/r/grDevices/colors.html)
> in [one CSS stylesheet](dist/r-colors.css).

ℹ️ [Interactive Preview](https://pkg.garrickadenbuie.com/r-colors-css)

```{r child="usage.Rmd"}
```

## Colors

```{r colors, echo = FALSE}
library(glue)

r_colors <- readRDS("r_colors.rds")

r_colors$preview <- glue_data(r_colors, '')

knitr::kable(
r_colors[c("preview", "name", "color", "hex")],
format = "html",
escape = FALSE,
col.names = c(
"Color", "Name", "RGB Value", "Hex Value"
)
)
```