From: 花果山大圣 <316783812@qq.com> Date: Thu, 30 Nov 2023 18:45:03 +0000 (+0800) Subject: chore(dx): improve color contrast in dark mode for custom formatter (#8704) X-Git-Tag: v3.3.10~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdb2df707b9f85d9ea8835611814a4992ac512b6;p=thirdparty%2Fvuejs%2Fcore.git chore(dx): improve color contrast in dark mode for custom formatter (#8704) --- diff --git a/packages/runtime-core/src/customFormatter.ts b/packages/runtime-core/src/customFormatter.ts index 768240feb6..b30a876d92 100644 --- a/packages/runtime-core/src/customFormatter.ts +++ b/packages/runtime-core/src/customFormatter.ts @@ -11,9 +11,9 @@ export function initCustomFormatter() { } const vueStyle = { style: 'color:#3ba776' } - const numberStyle = { style: 'color:#0b1bc9' } - const stringStyle = { style: 'color:#b62e24' } - const keywordStyle = { style: 'color:#9d288c' } + const numberStyle = { style: 'color:#1677ff' } + const stringStyle = { style: 'color:#f5222d' } + const keywordStyle = { style: 'color:#eb2f96' } // custom formatter for Chrome // https://www.mattzeunert.com/2016/02/19/custom-chrome-devtools-object-formatters.html