From 0e18c9ef73434fcee628d8dcbb6a896015f0e855 Mon Sep 17 00:00:00 2001 From: Lukas Oppermann Date: Fri, 13 Dec 2024 10:31:17 +0100 Subject: [PATCH] add dark colorbling --- src/tokens/component/diffBlob.json5 | 97 +++++++---------------------- 1 file changed, 23 insertions(+), 74 deletions(-) diff --git a/src/tokens/component/diffBlob.json5 b/src/tokens/component/diffBlob.json5 index aa9a18bb8..c6094ad50 100644 --- a/src/tokens/component/diffBlob.json5 +++ b/src/tokens/component/diffBlob.json5 @@ -68,7 +68,10 @@ 'light-tritanopia': '{base.color.blue.1}', 'light-high-contrast': '{base.color.green.5}', 'dark-high-contrast': '{bgColor.success.emphasis}', - 'dark-protanopia-deuteranopia': {}, + 'dark-protanopia-deuteranopia': { + $value: '{base.color.blue.4}', + alpha: 0.4, + }, 'dark-tritanopia': { $value: '{base.color.blue.4}', alpha: 0.4, @@ -105,7 +108,10 @@ 'org.primer.overrides': { 'light-protanopia-deuteranopia': '{base.color.blue.1}', 'light-tritanopia': '{base.color.blue.1}', - 'dark-protanopia-deuteranopia': {}, + 'dark-protanopia-deuteranopia': { + $value: '{base.color.blue.3}', + alpha: 0.3, + }, 'dark-tritanopia': { $value: '{base.color.blue.3}', alpha: 0.3, @@ -144,6 +150,10 @@ $value: '{bgColor.danger.muted}', alpha: 0.2, }, + 'dark-protanopia-deuteranopia': { + $value: '{base.color.orange.4}', + alpha: 0.15, + }, }, }, }, @@ -161,6 +171,10 @@ 'org.primer.overrides': { 'light-high-contrast': '{fgColor.onEmphasis}', 'dark-high-contrast': '{fgColor.onEmphasis}', + 'dark-protanopia-deuteranopia': { + $value: '{base.color.orange.4}', + alpha: 0.4, + }, }, }, }, @@ -211,9 +225,10 @@ 'org.primer.overrides': { 'light-protanopia-deuteranopia': '{base.color.orange.1}', 'light-tritanopia': '{base.color.red.1}', - 'light-high-contrast': {}, - 'dark-high-contrast': {}, - 'dark-protanopia-deuteranopia': {}, + 'dark-protanopia-deuteranopia': { + $value: '{base.color.orange.4}', + alpha: 0.3, + }, dark: { $value: '{base.color.red.4}', alpha: 0.3, @@ -244,6 +259,7 @@ scopes: ['bgColor'], }, 'org.primer.overrides': { + 'dark-protanopia-deuteranopia': '{base.color.neutral.3}', 'light-protanopia-deuteranopia': '{base.color.neutral.1}', 'light-tritanopia': '{base.color.neutral.1}', 'dark-tritanopia': '{base.color.neutral.3}', @@ -297,6 +313,7 @@ $value: '{base.color.blue.4}', alpha: 0.4, }, + 'dark-protanopia-deuteranopia': '{base.color.neutral.6}', 'light-high-contrast': '{base.color.blue.1}', 'light-tritanopia': '{base.color.neutral.3}', 'light-protanopia-deuteranopia': '{base.color.neutral.3}', @@ -313,6 +330,7 @@ scopes: ['bgColor'], }, 'org.primer.overrides': { + 'dark-protanopia-deuteranopia': '{base.color.neutral.8}', 'light-protanopia-deuteranopia': '{base.color.neutral.7}', 'dark-tritanopia': '{base.color.neutral.8}', 'light-tritanopia': '{base.color.neutral.7}', @@ -365,73 +383,4 @@ }, }, }, - '----------': '----------', - 'dark-protanopia-deuteranopia': { - additionNum: { - bgColor: { - $value: '{base.color.blue.3}', - $type: 'color', - alpha: 0.3, - }, - }, - additionWord: { - bgColor: { - $value: '{base.color.blue.4}', - $type: 'color', - alpha: 0.4, - }, - }, - deletionNum: { - bgColor: { - $value: '{base.color.orange.4}', - $type: 'color', - alpha: 0.3, - }, - }, - deletionLine: { - bgColor: { - $value: '{base.color.orange.4}', - $type: 'color', - alpha: 0.15, - mix: null, - }, - }, - deletionWord: { - bgColor: { - $value: '{base.color.orange.4}', - $type: 'color', - alpha: 0.4, - }, - }, - hunkNum: { - bgColor: { - rest: { - $value: '{base.color.neutral.6}', - $type: 'color', - mix: null, - $extensions: { - alpha: 1, - }, - }, - hover: { - $value: '{base.color.neutral.8}', - $type: 'color', - mix: null, - $extensions: { - alpha: 1, - }, - }, - }, - }, - hunkLine: { - bgColor: { - $value: '{base.color.neutral.3}', - $type: 'color', - mix: null, - $extensions: { - alpha: 1, - }, - }, - }, - }, }