Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vscode-theme-to-monaco-theme-web

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-theme-to-monaco-theme-web

一个将`VSCode`主题转换成`Monaco Editor`主题的工具。

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

vscode-theme-to-monaco-theme-web

一个将VSCode主题转换成Monaco Editor主题的工具。

安装

npm i vscode-theme-to-monaco-theme-web

作为UMD模块使用:

const vscodeThemeToMonacoThemeWeb = require('vscode-theme-to-monaco-theme-web')
const convertedTheme = vscodeThemeToMonacoThemeWeb.convertTheme(themeData)

作为ES Module使用:

import * as vscodeThemeToMonacoThemeWeb from 'vscode-theme-to-monaco-theme-web'
vscodeThemeToMonacoThemeWeb.convertTheme(themeData)

转换方法:convertTheme(theme, addDefaultToken = true, defaultColor = '#ffffff')

theme:vscode主题数据,可以是对象,也可以是字符串

addDefaultToken:是否要添加默认token,作为没有匹配到的token,默认为true

defaultColor:默认token的foreground值默认取的是theme.colors['editor.foreground'],如果没有该值,则取本参数的值,默认为#ffffff

FAQs

Package last updated on 24 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc