Skip to contents

GitHub's surfaces, borders and inks, in its dark or light mode. The columns and bars take slot 1, the blue, of a palette checked for contrast and colour vision deficiency against each surface; the types of contributions take its first five slots, from type_colors(); the rings of languages take the colours of the languages, from language_colors().

Usage

card_colors(theme)

Arguments

theme

"dark" or "light".

Value

A list of colours: surface, border, grid, axis, text, muted, series and categorical, five colours in a fixed order.

Examples

rghcard:::card_colors("dark")
#> $surface
#> [1] "#0d1117"
#> 
#> $border
#> [1] "#3d444d"
#> 
#> $grid
#> [1] "#21262d"
#> 
#> $axis
#> [1] "#3d444d"
#> 
#> $text
#> [1] "#e6edf3"
#> 
#> $muted
#> [1] "#9198a1"
#> 
#> $series
#> [1] "#338ced"
#> 
#> $categorical
#> [1] "#338ced" "#e76624" "#00a888" "#d28e05" "#e24d8b"
#>