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
- Host: GitHub
- URL: https://github.com/gadenbuie/r-colors-css
- Owner: gadenbuie
- License: unlicense
- Created: 2020-09-10T14:22:37.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-30T21:02:24.000Z (almost 4 years ago)
- Last Synced: 2024-12-17T20:34:45.544Z (2 months ago)
- Language: HTML
- Homepage: https://pkg.garrickadenbuie.com/r-colors-css
- Size: 4.37 MB
- Stars: 8
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - gadenbuie/r-colors-css - A utility CSS stylesheet with R's color names (HTML)
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"
)
)
```