Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Use Primer variables for diff matching colors

Henriette Dargec11d08a295ee
diff --git a/frontend/src/global_styles/content/_diff.sass b/frontend/src/global_styles/content/_diff.sass
index 98e710a7ad4..855ab9614d6 100644
--- a/frontend/src/global_styles/content/_diff.sass
+++ b/frontend/src/global_styles/content/_diff.sass
@@ -34,15 +34,16 @@ img.diff, div.diff, table.diff, blockquote.diff, address.diff, h1.diff, h2.diff,
del
&.diffmod, &.diffdel
- background: #fcc
+ background: var(--diffBlob-deletion-bgColor-word)
+ color: var(--diffBlob-deletion-fgColor-text)
ins
&.diffmod, &.diffins
- background: #cfc
+ background: var(--diffBlob-addition-bgColor-word)
+ color: var(--diffBlob-addition-fgColor-text)
.text-diff
padding: 1em
- background-color: #f6f6f6
- color: #505050
- border: 1px solid #e4e4e4
+ background-color: var(--bgColor-muted)
+ border: 1px solid var(--borderColor-default)
line-height: normal