{# Inputs: allocation: AllocationView from portfolio.allocation.build_allocation() #} {# All slot colors flow through CSS vars so the donut + leaderboard pick up the active theme palette automatically. #} {% set rank_palette = [ 'var(--color-rank-1)', 'var(--color-rank-2)', 'var(--color-rank-3)', 'var(--color-rank-4)', 'var(--color-rank-5)', 'var(--color-rank-6)', 'var(--color-rank-7)', 'var(--color-rank-8)', 'var(--color-rank-9)', 'var(--color-rank-10)' ] %} {% set rest_color = 'var(--color-rank-rest)' %} {% set cash_color = 'var(--color-cash)' %} {# neutral gray; matches Apple's systemGray — free cash #} {% set cash_pledged_color = 'var(--color-warn)' %} {# orange — distinct from free cash + rest #} {% if allocation.symbol_count == 0 %}