Skip to content

Commit

Permalink
Add syntax colors for diff additions/deletions. (#713)
Browse files Browse the repository at this point in the history
Resolves: rdar://105420253
  • Loading branch information
mportiz08 authored Jul 10, 2023
1 parent 9512999 commit 6b19707
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/styles/core/_syntax.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@

// Map each color to the list of syntax highlighter tokens that use it
$syntax-tokens-for-color: (
addition: (
addition,
),
comments: (
comment,
quote
),
deletion: (
deletion,
),
keywords: (
keyword,
literal,
Expand Down
2 changes: 2 additions & 0 deletions src/styles/core/colors/_light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,11 @@
--color-step-focused: var(--color-figure-light-gray);
--color-step-text: var(--color-figure-gray-secondary);
--color-svg-icon: #{light-color(figure-gray-secondary)};
--color-syntax-addition: var(--color-figure-green);
--color-syntax-attributes: rgb(148, 113, 0);
--color-syntax-characters: rgb(39, 42, 216);
--color-syntax-comments: rgb(112, 127, 140);
--color-syntax-deletion: var(--color-figure-red);
--color-syntax-documentation-markup: rgb(80, 99, 117);
--color-syntax-documentation-markup-keywords: rgb(80, 99, 117);
--color-syntax-heading: rgb(186, 45, 162);
Expand Down

0 comments on commit 6b19707

Please sign in to comment.