class_docstr: Represent a CSS named color, provided as RGB values.
  
  Instances of this class also record the name of the created color, which
  is used to populate the Bokeh enum for named colors.
class_docstr_tok: ["Represent","a","CSS","named","color",",","provided","as","RGB","values",".","Instances","of","this","class","also","record","the","name","of","the","created","color",",","which","is","used","to","populate","the","Bokeh","enum","for","named","colors","."]
docstr: Find and return a named color.
  
  Args:
      name (str) : Name of color to find.
  
  Returns:
      :class:`~bokeh.colors.NamedColor` or None if the name is not
      recognised.
docstr_tok: ["Find","and","return","a","named","color",".","Args",":","name","(","str",")",":","Name","of","color","to","find",".","Returns",":",":","class",":","`","~bokeh.colors.NamedColor","`","or","None","if","the","name","is","not","recognised","."]
code: def find(cls, name: str) -> NamedColor | None:
      """Find and return a named color.
  
      Args:
          name (str) : Name of color to find.
  
      Returns:
          :class:`~bokeh.colors.NamedColor` or None if the name is not
          recognised.
  
      """
      try:
          index = cls.__all__.index(name)
      except ValueError:
          return None
      return cls.colors[index]
  
file_path: bokeh/src/bokeh/colors/util.py
imports: from __future__ import annotations
  import logging
  from typing import ClassVar, Iterator
  from .color import RGB
label_desc: Use image node_id 2 for calling the NamedColor obj's underlying member method code with example usage: obj.find(cls, name) and returns: cls, None