In "repository graph" the marker for the selected commit cannot be noticed in dark-mode.
Issue
In "repository graph" the marker for the selected commit cannot be noticed in dark-mode. Because it uses a black marker which is not contrasting enough agains the dark background.
Design Proposal
| Current: Light mode | Current: Dark mode | Proposed: Dark mode |
|---|---|---|
![]() |
![]() |
![]() |
| Suggested changes: Dark mode | Screenshot of proposal |
|---|---|
|
Repository graph background color
|
|
|
Date column
|
|
|
Branch name tag
|
|
|
Current branch arrow
|
Implementation guide
- Primary files to modify
- Context:
- The graph is build with raphael library
- to change the appearance of the graph, use utility color classes you can find in https://gitlab-org.gitlab.io/gitlab-ui/tailwind-config-viewer/ Using these classes ensures compatibility with dark and light mode
- If possible, use design tokens. Otherwise, utility color classes are fine.
- you will need to identify with element inspector what SVG element is for each of the suggested change
- the graph loads on GDK only with Webpack, not Vite. Here's how to setup webpack for GDK
- we have feature tests for the graph, but they do not include testing the color scheme
Edited by Alyssa Trinh







