]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(dx): improve color contrast in dark mode for custom formatter (#8704)
author花果山大圣 <316783812@qq.com>
Thu, 30 Nov 2023 18:45:03 +0000 (02:45 +0800)
committerGitHub <noreply@github.com>
Thu, 30 Nov 2023 18:45:03 +0000 (02:45 +0800)
packages/runtime-core/src/customFormatter.ts

index 768240feb62f7f78fc4536d8924fad26e34fc9b3..b30a876d92223abb739dcc8438ff275fc9a8a0b6 100644 (file)
@@ -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