Skip to content

Commit 6b19707

Browse files
authored
Add syntax colors for diff additions/deletions. (#713)
Resolves: rdar://105420253
1 parent 9512999 commit 6b19707

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/styles/core/_syntax.scss

+6
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,16 @@
1010

1111
// Map each color to the list of syntax highlighter tokens that use it
1212
$syntax-tokens-for-color: (
13+
addition: (
14+
addition,
15+
),
1316
comments: (
1417
comment,
1518
quote
1619
),
20+
deletion: (
21+
deletion,
22+
),
1723
keywords: (
1824
keyword,
1925
literal,

src/styles/core/colors/_light.scss

+2
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,11 @@
142142
--color-step-focused: var(--color-figure-light-gray);
143143
--color-step-text: var(--color-figure-gray-secondary);
144144
--color-svg-icon: #{light-color(figure-gray-secondary)};
145+
--color-syntax-addition: var(--color-figure-green);
145146
--color-syntax-attributes: rgb(148, 113, 0);
146147
--color-syntax-characters: rgb(39, 42, 216);
147148
--color-syntax-comments: rgb(112, 127, 140);
149+
--color-syntax-deletion: var(--color-figure-red);
148150
--color-syntax-documentation-markup: rgb(80, 99, 117);
149151
--color-syntax-documentation-markup-keywords: rgb(80, 99, 117);
150152
--color-syntax-heading: rgb(186, 45, 162);

0 commit comments

Comments
 (0)