迁移trae的主题到vscode

1,225 阅读1分钟
"oneDarkPro.editorTheme": "One Dark Pro Flat",
 "oneDarkPro.color": {
  "green": "#82D99F",
  "chalky": "#F0D8FF",
  "coral": "#DED47E",
  // "coral": "#E0E3EE",
  "dark": "#171b26",
  "error": "#FF3333",
  "deepRed": "#F2858C",
  "invalid": "#FFFFFF",
  "malibu": "#F29D79",
  "purple": "#B38CFF",
  "fountainBlue": "#d4d4d4",
  "whiskey": "#F48CCA",
  "lightWhite": "#D5D8E0",
  "lightDark": "#c9d1d9"
 },
 "editor.tokenColorCustomizations": {
  "textMateRules": [
   {
    "scope": "variable.other.constant",
    "settings": {
     "foreground": "#80BBFF"
    }
   },
   {
    "scope": "entity.name.tag",
    "settings": {
     "foreground": "#F2858C"
    }
   },
   {
    "scope": "entity.name.tag.template.html",
    "settings": {
     "foreground": "#F2858C"
    }
   },
   {
    "scope": "variable.other.constant",
    "settings": {
     "foreground": "#80BBFF"
    }
   },
   {
    "scope": "entity.name.tag",
    "settings": {
     "foreground": "#F2858C"
    }
   },
   {
    "scope": "entity.name.tag.template.html",
    "settings": {
     "foreground": "#F2858C"
    }
   },
   {
    "scope": "entity.other.attribute-name",
    "settings": {
     "foreground": "#DED47E"
    }
   },
   {
    "scope": "comment.line.double-slash",
    "settings": {
     "foreground": "#737780"
    }
   },
   {
    "scope": "support.type.property-name.json",
    "settings": {
     "foreground": "#D5D8E0"
    }
   },
   {
    "scope": "variable.other.property.go",
    "settings": {
     "foreground": "#E0E3EE"
    }
   },
   {
    "scope": [
     "meta.object-literal.key.js",
     "variable.other.property",
     "meta.object.member.js"
    ],
    "settings": {
     "foreground": "#E0E3EE"
    }
   }
  ]
 },
 "editor.semanticTokenColorCustomizations": {
  "rules": {
   "property.declaration": {
    "foreground": "#E0E3EE"
   }
  }
 },
 "workbench.colorCustomizations": {
  "activityBarBadge.background": "#7563e7",
  "sideBar.background": "#171b26",
  "sideBar.foreground": "#c9d1d9",
  "sideBar.border": "#262a37",
  "sideBar.dropBackground": "#262a37",
  "sideBarTitle.foreground": "#c9d1d9",
  "sideBarSectionHeader.background": "#171b26",
  "sideBarSectionHeader.foreground": "#c9d1d9",
  "activityBar.background": "#262a37",
  "activityBar.foreground": "#c9d1d9",
  "editor.background": "#171b26",
  "editor.foreground": "#c9d1d9",
  "editor.lineHighlightBackground": "#2a2e3e",
  "editor.selectionBackground": "#3a3f4b",
  "editorGroup.background": "#1e2127",
  "editorGroup.border": "#171b26",
  "editorGroupHeader.tabsBackground": "#171b26",
  "editorGroupHeader.tabsBorder": "#262a37",
  "titleBar.activeBackground": "#262a37",
  "tab.activeBackground": "#363b4e",
  "tab.activeForeground": "#c9d1d9",
  "tab.inactiveBackground": "#262a37",
  "tab.inactiveForeground": "#c9d1d9",
  "tab.hoverBackground": "#363b4e",
  "list.activeSelectionBackground": "#363b4e",
  "list.activeSelectionForeground": "#c9d1d9",
  "list.hoverBackground": "#2a2e3e",
  "panel.background": "#171b26",
  "panel.border": "#262a37",
  "terminal.background": "#171b26",
  "terminal.foreground": "#c9d1d9"
 },

方法:使用 shift + command + p, 找到这个

image.png 悬浮就能看到颜色的信息 image.png 然后完成迁移