loaders ยป color
color() โ string
color_items() โ list
color_list() โ list
Accepts values formatted as #RRGGBB
or #RGB
(case insensitive), returns the value unchanged (or raises an error for invalid values).
enoactive: #F00
hover: #ff0000
focus: blue
python>>> document = Eno.parse(input)
>>> document.color('active')
'#F00'
>>> document.color('hover')
'#ff0000'
>>> document.color('focus')
ValidationError: 'focus' must contain a color, for instance '#B6D918', '#fff' or '#01b'.