Posted 6 August 2026, 12:24 am EST - Updated 6 August 2026, 12:29 am EST
ISSUE:
Need active cell and selected range to render with DIFFERENT background
colors simultaneously.
Current behavior (confirmed via docs + testing):
- sheet.options.selectionBackColor / selectionBorderColor apply to the
WHOLE selection fill+border. - Active cell within that selection renders BORDER-ONLY, no fill —
no option found to give it its own backColor.
Target design:
- Light mode: active cell #EDE6FF, range fill #D9C7FF26
- Dark mode: active cell #FFFFFF12, range fill #40268C4D
- Cell content + gridline/border must stay visible through both.
QUESTIONS:
- Is there a documented API for active-cell-only backColor (separate
from selectionBackColor)? Couldn’t find one in Style/Options docs. - If not — is PaintCell override on the active cell, or a
TopLeftCellChanged/SelectionChanged canvas overlay draw, the
recommended supported approach? Any perf caveats for large sheets? - Does selectionBackColor accept 8-digit #RRGGBBAA directly, or must
we pre-resolve to rgba() ourselves? (testing suggests hex+alpha
works, want to confirm it’s supported not incidental.)
ENV: @mescius/spread-sheets 18.2.3, React/TS, MUI theming layer.
ATTACHED SCREENSHOT FOR REFERENCE:-

