Skip to content

Instantly share code, notes, and snippets.

@zaczap
Last active April 8, 2020 17:37
Show Gist options
  • Save zaczap/0aebc4c2fe2f4298065b to your computer and use it in GitHub Desktop.
Save zaczap/0aebc4c2fe2f4298065b to your computer and use it in GitHub Desktop.
Flat UI color palette in R (http://flatuicolors.com/)
# Palette from: http://flatuicolors.com/
# Usage:
# library(devtools)
# devtools::source_gist('0aebc4c2fe2f4298065b')
teal = rgb(26, 188, 156, maxColorValue= 255)
dark_teal = rgb(22, 160, 133, maxColorValue=255)
green = rgb(46, 204, 113, maxColorValue=255)
dark_green = rgb(39, 174, 96, maxColorValue=255)
blue = rgb(52, 152, 219, maxColorValue=255)
dark_blue = rgb(41, 128, 185, maxColorValue=255)
purple = rgb(155, 89, 182, maxColorValue=255)
dark_purple = rgb(142, 68, 173, maxColorValue=255)
steel_blue = rgb(52, 73, 94, maxColorValue=255)
dark_steel_blue = rgb(44, 62, 80, maxColorValue=255)
orange = rgb(230, 126, 34, maxColorValue=255)
dark_orange = rgb(211, 84, 0, maxColorValue=255)
yellow = rgb(241, 196, 15, maxColorValue=255)
dark_yellow = rgb(243, 156, 18, maxColorValue=255)
red = rgb(231, 76, 60, maxColorValue=255)
dark_red = rgb(192, 57, 43, maxColorValue=255)
gray_1 = rgb(236, 240, 241, maxColorValue=255)
gray_2 = rgb(189, 195, 199, maxColorValue=255)
gray_3 = rgb(149, 165, 166, maxColorValue=255)
gray_4 = rgb(127, 140, 141, maxColorValue=255)
# These are all at half opacity
hteal = rgb(26, 188, 156, maxColorValue= 255, alpha=255/2)
hdark_teal = rgb(22, 160, 133, maxColorValue=255, alpha=255/2)
hgreen = rgb(46, 204, 113, maxColorValue=255, alpha=255/2)
hdark_green = rgb(39, 174, 96, maxColorValue=255, alpha=255/2)
hblue = rgb(52, 152, 219, maxColorValue=255, alpha=255/2)
hdark_blue = rgb(41, 128, 185, maxColorValue=255, alpha=255/2)
hpurple = rgb(155, 89, 182, maxColorValue=255, alpha=255/2)
hdark_purple = rgb(142, 68, 173, maxColorValue=255, alpha=255/2)
hsteel_blue = rgb(52, 73, 94, maxColorValue=255, alpha=255/2)
hdark_steel_blue = rgb(44, 62, 80, maxColorValue=255, alpha=255/2)
horange = rgb(230, 126, 34, maxColorValue=255, alpha=255/2)
hdark_orange = rgb(211, 84, 0, maxColorValue=255, alpha=255/2)
hyellow = rgb(241, 196, 15, maxColorValue=255, alpha=255/2)
hdark_yellow = rgb(243, 156, 18, maxColorValue=255, alpha=255/2)
hred = rgb(231, 76, 60, maxColorValue=255, alpha=255/2)
hdark_red = rgb(192, 57, 43, maxColorValue=255, alpha=255/2)
hgray_1 = rgb(236, 240, 241, maxColorValue=255, alpha=255/2)
hgray_2 = rgb(189, 195, 199, maxColorValue=255, alpha=255/2)
hgray_3 = rgb(149, 165, 166, maxColorValue=255, alpha=255/2)
hgray_4 = rgb(127, 140, 141, maxColorValue=255, alpha=255/2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment