canva_palettes: 150 Color Palettes from Canva

Description Usage Format Source References Examples

Description

150 four-color palettes by the canva.com design school. These palettes were derived from photos and "impactful websites".

Usage

1

Format

A named list of character vector. The names are the palette names. The values of the character vectors are hex colors, e.g. "#f98866".

Source

http://makeadifferencewithdata.com/wp-content/uploads/2016/12/color-palettes.txt

References

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require("ggplot2")
require("tibble")
if (require("purrr") && require("scales") && require("dplyr")) {
        canva_df <- map2_df(
                canva_palettes,
                names(canva_palettes),
                ~ tibble(
                        colors = .x,
                        .id = seq_along(colors),
                        palette = .y
                )
        )
        ggplot(canva_df, aes(
                y = palette,
                x = .id,
                fill = colors
        )) +
                geom_raster() +
                scale_fill_identity(guide = FALSE) +
                theme_minimal() +
                theme(panel.grid = element_blank(),
                      axis.text.x = element_blank()) +
                labs(x = "", y = "")

        show_col(canva_pal("Fresh and bright")(4))
        show_col(canva_pal("Cool blues")(4))
        show_col(canva_pal("Modern and crisp")(4))
}

Example output

Loading required package: ggplot2
Loading required package: tibble
Loading required package: purrr
Loading required package: scales

Attaching package: 'scales'

The following object is masked from 'package:purrr':

    discard

Loading required package: dplyr

Attaching package: 'dplyr'

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

ggthemes documentation built on May 13, 2019, 5:04 p.m.