Return the yohou color palette.
Returns
| Type |
Description |
dict[str, str]
|
Dictionary mapping color names to hex codes.
|
Examples
>>> from yohou.plotting import palette_yohou
>>> colors = palette_yohou()
>>> colors["blue"]
'#2563EB'
>>> len(colors)
12
Source Code
View on GitHub
Show/Hide source
| def palette_yohou() -> dict[str, str]:
"""
Return the yohou color palette.
Returns
-------
dict[str, str]
Dictionary mapping color names to hex codes.
Examples
--------
>>> from yohou.plotting import palette_yohou
>>> colors = palette_yohou()
>>> colors["blue"]
'#2563EB'
>>> len(colors)
12
"""
return {
"blue": "#2563EB", # Primary blue
"red": "#DC2626", # Error/alert red
"green": "#059669", # Success green
"purple": "#7C3AED", # Accent purple
"orange": "#EA580C", # Warning orange
"pink": "#DB2777", # Pink accent
"yellow": "#CA8A04", # Gold/yellow
"indigo": "#4F46E5", # Indigo accent
"teal": "#0D9488", # Teal accent
"cyan": "#0891B2", # Cyan accent
"gray": "#64748B", # Neutral gray
"slate": "#475569", # Dark slate
}
|