Skip to content

Design styleguide: colors and shadows

mariocarabotta edited this page Sep 11, 2023 · 7 revisions

Colors

name technical name old name html code
White $white $color-1 #ffffff #ffffff
Green (Key Lime Pie) $green $color-2 #9fc820 #9fc820
Teal (Allports) $teal $color-3 #008397 #008397
Sherpa Blue $dark-blue $color-4 #004E5B #004E5B
Red/Orange (Mojo) $red $color-5 #c85136 #c85136
Yellow (Pizazz) $yellow $color-6 #ff9300 #ff9300
Light grey (Porcelain) $light-grey $color-7 #EFF1F2 #EFF1F2
Near-black (Shark) $near-black $color-8 #191C1D #191C1D
Dark grey (Outer Space) $dark-grey $color-9 #2E3132 #2E3132
Orient $orient #006878 #006878
Mystic $mystic #D9E8EB #D9E8EB
Silver Sand $silver-sand #BABDBE #BABDBE
Athens Grey $athens-grey #F8F9FA #F8F9FA
Fair Pink $fair-pink #FFEFEB #FFEFEB
Roof Terracotta $roof-terracotta #B83B1F #B83B1F
Totem Pole $totem-pole #9A260C #9A260C

Source: https://github.com/openfoodfoundation/openfoodnetwork/blob/backoffice-ui-uplift/app/webpacker/css/admin_v3/globals/palette.scss

Color groups

These colors follow the same palette, just different tone

Name Should be primarily used for
#004E5B Sherpa Blue Visited links, table headers
#006878 Orient Primary button hover
#008397 Allports Buttons, links
#D9E8EB Mystic Secondary button hover
Name Should be primarily used for
#9A260C Totem Pole Disruptive buttons
#B83B1F Roof Terracotta Disruptive buttons
#c85136 Mojo Menu, Navigation, Disruptive buttons
#FFEFEB Fair Pink Disruptive buttons
Name Should be primarily used for
#191C1D Shark Body text, Headers, any text that's not interactive
#2E3132 Outer Space Primary and secondary nav
#BABDBE Silver Sand Placeholder text
#EFF1F2 Porcelain Table backgrounds, dividers (see secondary nav bottom line, dividers between condensed rows in tables
#F8F9FA Athens Grey Primary text fields/dropdowns (search on a page)
#ffffff White Body background, colored button labels

Shadow styles

Name Primarily used for Baseline color Code snippet
Main menu shadow Main menu Shark box-shadow: 0px 1px 0px rgba(25, 28, 29, 0.05), 0px 2px 2px rgba(25, 28, 29, 0.07);
Table relaxed row shadow Underline for rows (relaxed - 56px height) of a table Shark box-shadow: 0px 1px 0px rgba(25, 28, 29, 0.05);
Dropdown list shadow For when a dropdown is open Shark box-shadow: 0px 0px 8px 0px rgba(25, 28, 29, 0.25);
Clone this wiki locally