#-----------------------------------------------------------------------------# Copyright (c) Anaconda, Inc., and Bokeh Contributors.# All rights reserved.## The full license is in the file LICENSE.txt, distributed with this software.#-----------------------------------------------------------------------------''' Organize CSS named colors into useful groups according to general hue.'''#-----------------------------------------------------------------------------# Boilerplate#-----------------------------------------------------------------------------from__future__importannotationsimportlogging# isort:skiplog=logging.getLogger(__name__)#-----------------------------------------------------------------------------# Imports#-----------------------------------------------------------------------------# Bokeh importsfrom.utilimportColorGroup#-----------------------------------------------------------------------------# Globals and constants#-----------------------------------------------------------------------------__all__=('black','blue','brown','cyan','green','orange','pink','purple','red','white','yellow',)#-----------------------------------------------------------------------------# General API#-----------------------------------------------------------------------------
[docs]classblack(ColorGroup):''' CSS "Black" Color Group as defined by https://www.w3schools.com/colors/colors_groups.asp .. bokeh-color:: gainsboro .. bokeh-color:: lightgray .. bokeh-color:: silver .. bokeh-color:: darkgray .. bokeh-color:: gray .. bokeh-color:: dimgray .. bokeh-color:: lightslategray .. bokeh-color:: slategray .. bokeh-color:: darkslategray .. bokeh-color:: black '''_colors=('Gainsboro','LightGray','Silver','DarkGray','Gray','DimGray','LightSlateGray','SlateGray','DarkSlateGray','Black')
[docs]classblue(ColorGroup):''' CSS "Blue" Color Group as defined by https://www.w3schools.com/colors/colors_groups.asp .. bokeh-color:: lightsteelblue .. bokeh-color:: powderblue .. bokeh-color:: lightblue .. bokeh-color:: skyblue .. bokeh-color:: lightskyblue .. bokeh-color:: deepskyblue .. bokeh-color:: dodgerblue .. bokeh-color:: cornflowerblue .. bokeh-color:: steelblue .. bokeh-color:: royalblue .. bokeh-color:: blue .. bokeh-color:: mediumblue .. bokeh-color:: darkblue .. bokeh-color:: navy .. bokeh-color:: midnightblue '''_colors=('LightSteelBlue','PowderBlue','LightBlue','SkyBlue','LightSkyBlue','DeepSkyBlue','DodgerBlue','CornflowerBlue','SteelBlue','RoyalBlue','Blue','MediumBlue','DarkBlue','Navy','MidnightBlue')
[docs]classbrown(ColorGroup):''' CSS "Brown" Color Group as defined by https://www.w3schools.com/colors/colors_groups.asp .. bokeh-color:: cornsilk .. bokeh-color:: blanchedalmond .. bokeh-color:: bisque .. bokeh-color:: navajowhite .. bokeh-color:: wheat .. bokeh-color:: burlywood .. bokeh-color:: tan .. bokeh-color:: rosybrown .. bokeh-color:: sandybrown .. bokeh-color:: goldenrod .. bokeh-color:: darkgoldenrod .. bokeh-color:: peru .. bokeh-color:: chocolate .. bokeh-color:: saddlebrown .. bokeh-color:: sienna .. bokeh-color:: brown .. bokeh-color:: maroon '''_colors=('Cornsilk','BlanchedAlmond','Bisque','NavajoWhite','Wheat','BurlyWood','Tan','RosyBrown','SandyBrown','Goldenrod','DarkGoldenrod','Peru','Chocolate','SaddleBrown','Sienna','Brown','Maroon')
[docs]classcyan(ColorGroup):''' CSS "Cyan" Color Group as defined by https://www.w3schools.com/colors/colors_groups.asp .. bokeh-color:: mediumaquamarine .. bokeh-color:: aqua .. bokeh-color:: cyan .. bokeh-color:: lightcyan .. bokeh-color:: paleturquoise .. bokeh-color:: aquamarine .. bokeh-color:: turquoise .. bokeh-color:: mediumturquoise .. bokeh-color:: darkturquoise .. bokeh-color:: lightseagreen .. bokeh-color:: cadetblue .. bokeh-color:: darkcyan .. bokeh-color:: teal '''_colors=('MediumAquamarine','Aqua','Cyan','LightCyan','PaleTurquoise','Aquamarine','Turquoise','MediumTurquoise','DarkTurquoise','LightSeaGreen','CadetBlue','DarkCyan','Teal')
[docs]classorange(ColorGroup):''' CSS "Orange" Color Group as defined by https://www.w3schools.com/colors/colors_groups.asp .. bokeh-color:: orangered .. bokeh-color:: tomato .. bokeh-color:: coral .. bokeh-color:: darkorange .. bokeh-color:: orange '''_colors=('OrangeRed','Tomato','Coral','DarkOrange','Orange')
[docs]classpink(ColorGroup):''' CSS "Pink" Color Group as defined by https://www.w3schools.com/colors/colors_groups.asp .. bokeh-color:: pink .. bokeh-color:: lightpink .. bokeh-color:: hotpink .. bokeh-color:: deeppink .. bokeh-color:: palevioletred .. bokeh-color:: mediumvioletred '''_colors=('Pink','LightPink','HotPink','DeepPink','PaleVioletRed','MediumVioletRed')