Color
Introduction
Waterfall uses tokens and themes to manage color. Tokens are role-based, and themes specify the color values that serve those roles in the UI.
Term | Definition | |
---|---|---|
Theme | The set of unique values assigned to the tokens of a Waterfall interface | |
Token | The code identifier for a unique role or set of roles. Tokens are universal and never change across themes. | |
Role | The systematic usage(s) of a token. Roles cannot be changed between themes. | |
Value | The actual style (i.e. hex code) assigned to a token |
Tokens
Color in Waterfall is managed using color tokens. Tokens are a method of
abstracting color by role or usage, independent of the actual color values. For
example, instead of needing to code all instances of input labels in a UI to be
#855ffc
, the form component in Waterfall specifies the token purple._50
for
these lables, and that token is specified in a separate theme file to be
#565656
. For a different theme, that same purple._50
token could be mapped to a
different hex value, like #ffffff
. Thus, tokens not only allow for more
efficient color updates within a theme, but also enable any UI (or portion of a
UI) built with Waterfall to easily switch between different themes.
A single token can be associated with multiple roles, but only if the color value is used consistently across those roles. This allows for uniform color application across themes while maintaining full styling flexibility.
Accessibility
Using various forms of contrast is the most important consideration when making user-friendly color and interface choices. Awareness of standards and best practices is the key to accessible color selection.
The color families in the Waterall palette contain ten values from 00 to 100. White and Black sit outside those values. Black text is WCAG AA accessible on colors ranging from 00 to 50. White text is accessible on colors from 60 to 100.
#46afdf
#f6feff
#ecffff
#d9ffff
#baf9ff
#8adffb
#46afdf
#227bb2
#155c95
#124c81
#144373
#173e69
#ff4c4c
#fff4f4
#ffdada
#ffbbbb
#ff9797
#ff7272
#ff4c4c
#dd3737
#be2626
#a51919
#910f0f
#820707
#855ffc
#f5f2ff
#f0ebfe
#e3dafe
#cdbcfd
#ac91fd
#855ffc
#572ae4
#3606cc
#2d00b4
#27009c
#210085
#3ab042
#f2fff1
#ddffdc
#c0fdbf
#9af29b
#6ddb71
#3ab042
#217f2b
#0f611c
#035013
#004512
#004014
#f5a623
#fff9ee
#fff9da
#fff4be
#ffe896
#ffd263
#f5a623
#a56809
#814d00
#6b3e00
#5a3300
#4d2a00
#828282
#ffffff
#f3f3f3
#e6e6e6
#dadada
#cdcdcd
#c1c1c1
#b4b4b4
#a8a8a8
#9b9b9b
#8f8f8f
#828282
#767676
#696969
#5d5d5d
#505050
#444444
#373737
#2b2b2b
#1e1e1e
#121212
#050505
Brand Colors
#f0ebfe
#cdbcfd
#855ffc
#3606cc
#27009c
#ddffdc
#9af29b
#3ab042
#0f611c
#004512
#ecffff
#baf9ff
#46afdf
#155c95
#144373
#e6e6e6
#b4b4b4
#828282
#505050
#1e1e1e
#ddffdc
#9af29b
#3ab042
#0f611c
#004512
#ffdada
#ff9797
#ff4c4c
#be2626
#910f0f
#fff9da
#ffe896
#f5a623
#814d00
#5a3300
Data Viz Tokens
#ff97c0
#ff81ad
#ff6b9a
#ff5587
#ff3d75
#e91e63
#d20052
#bb0041
#a50032
#8e0023
#780015
#9dfbff
#8debff
#7cdcff
#6bcdfd
#5abeed
#48afde
#34a1cf
#1892c0
#0084b1
#0076a2
#006994
#9cf298
#88dd85
#74c972
#60b560
#4da14e
#388e3c
#217b2b
#006919
#005705
#004500
#003400
#ffbe7f
#ffa96c
#ff945a
#ff8047
#ff6c35
#ff5722
#e7420c
#d02a00
#b80800
#a20000
#8c0000
#f1c5ff
#dbb1ff
#c59dff
#b08aff
#9a77ff
#8565f8
#6f53e3
#5941ce
#4230ba
#271fa6
#000d92
#ffeb3b
#f1de2b
#e3d216
#d6c500
#c8b900
#bbad00
#ada100
#a09500
#938a00
#867e00
#797300
#c2998a
#b38b7d
#a47d6f
#966f62
#876255
#795548
#6b483c
#5d3c30
#503024
#432419
#36190d
#ff96f8
#ff87e8
#ff77d9
#ff67ca
#f357bb
#e347ac
#d3359e
#c3218f
#b30081
#a30073
#930066
#7d9bff
#6b8dff
#597fff
#4572f2
#2d65e3
#0058d3
#004cc4
#0040b5
#0034a6
#002997
#001f88
#6de1d1
#5dd1c2
#4cc2b3
#3ab3a4
#25a596
#009688
#00887a
#007a6d
#006c5f
#005e53
#005146
#feff77
#eef068
#dee159
#ced24a
#bfc33b
#afb42b
#a0a518
#909700
#818900
#727b00
#636e00
#ffbcd7
#feabc6
#ec9ab4
#da89a3
#c77893
#b66882
#a45872
#934963
#813954
#712a45
#601a37
DataViz Brand Colors
#e91e63
#b0003a
#ff6090
#e347ac
#ad007d
#ff7cde
#48afde
#16678e
#b7def0
#0058d3
#00228d
#7798ff
#388e3c
#00600f
#6abf69
#009688
#00675b
#52c7b8
#ffeb3b
#c6a002
#ffff72
#afb42b
#7c8500
#e5e75f
#8565f8
#572ae4
#ac91fd
#601a37
#330011
#904661
#ff5722
#c41c00
#ff8a50
#795548
#4b2c20
#a98274