Skip to content

Commit

Permalink
Add Tailwind CSS color palettes to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nanxstats committed Jun 17, 2024
1 parent 4066bc6 commit d410ea7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,25 @@ grid.arrange(
)
```

### Tailwind CSS

```{r, ggsci-tw3, fig.height=3.8}
grid.arrange(
p4 + scale_fill_tw3("slate"), p4 + scale_fill_tw3("gray"),
p4 + scale_fill_tw3("zinc"), p4 + scale_fill_tw3("neutral"),
p4 + scale_fill_tw3("stone"), p4 + scale_fill_tw3("red"),
p4 + scale_fill_tw3("orange"), p4 + scale_fill_tw3("amber"),
p4 + scale_fill_tw3("yellow"), p4 + scale_fill_tw3("lime"),
p4 + scale_fill_tw3("green"), p4 + scale_fill_tw3("emerald"),
p4 + scale_fill_tw3("teal"), p4 + scale_fill_tw3("cyan"),
p4 + scale_fill_tw3("sky"), p4 + scale_fill_tw3("blue"),
p4 + scale_fill_tw3("indigo"), p4 + scale_fill_tw3("violet"),
p4 + scale_fill_tw3("purple"), p4 + scale_fill_tw3("fuchsia"),
p4 + scale_fill_tw3("pink"), p4 + scale_fill_tw3("rose"),
ncol = 8
)
```

## Contribute

To contribute to this project, please take a look at the
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ open with `vignette("ggsci")` in R) for a quick-start guide.

<img src="man/figures/README-ggsci-material-1.png" width="100%" style="display: block; margin: auto;" />

### Tailwind CSS

<img src="man/figures/README-ggsci-tw3-1.png" width="100%" style="display: block; margin: auto;" />

## Contribute

To contribute to this project, please take a look at the [Contributing
Expand Down
Binary file added man/figures/README-ggsci-tw3-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d410ea7

Please sign in to comment.