Tint the shimmer with the active sidebar theme
What does this MR do and why?
The feature catalog shimmer is blue on every sidebar theme. This MR puts it back on the theme's accent colour, and tones the fill down in light mode.
Why it drifted. The shimmer originally derived its three colours from the sidebar accent:
--super-sidebar-shimmer-base-color: hsla(from var(--super-sidebar-theme-accent-color) h s l / 32%);5d50dc15eef8 ("Remove themes from super_sidebar.scss") deleted --super-sidebar-theme-accent-color as part of migrating the sidebar off bespoke theme variables onto design-system tokens. The shimmer's colours were rewritten to that variable's literal fallback, --gl-color-blue-500. Nothing redefines --gl-color-blue-500 per theme, so the sweep became blue on all six.
The fix. --gl-nav-item-selected-indicator-color is the successor token: @gitlab/ui/src/scss/themes.scss overrides it per theme and per colour mode (purple for Indigo, blue for Blue, green, red, neutral for Gray). Deriving the shimmer from it restores the accent-per-theme behaviour and lines the sweep up with the selected nav item it sits beside. The alpha-over-accent approach is unchanged; only the colour source moves.
Light mode fill. The accent sits much closer to the light backdrop than to the dark one, so the alpha tuned for dark mode read as a solid fill in light mode and washed out the label. The base and peak alphas are now variables, halved in light mode (32%/8% → 16%/4%) with dark mode keeping its existing values. The border stays at 24% for both modes; it carries the shape when the fill is faint and did not read as heavy.
References
Builds on !270771 (merged), which is this MR's target branch.
Regression introduced by 5d50dc15eef8.
Screenshots or screen recordings
Light
| Before | After |
|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Dark
| Before | After |
|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to set up and validate locally
No feature flag is needed. The shimmer runs for about 9 seconds after the trigger first appears, so a reload is needed between checks.
- Visit any project or group and find the Browse all features trigger at the bottom of the pinned section.
- Confirm the shimmer sweeps in the sidebar's accent colour rather than blue.
- Switch themes in Preferences > Navigation theme and reload for each. Indigo should shimmer purple, Blue blue, Green green, Red red, Gray neutral, and Default orange.
- Repeat in dark mode and confirm each theme still tracks its accent.
- In light mode, confirm the label stays legible through the sweep rather than being washed out by the fill.
- Set prefers-reduced-motion and confirm the static outline is still drawn with no animation.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.























