
产品 虚拟系统
包含所有编译主题的简单国家防范机制包 VSCode 的卡通。 。 。 .
使用量
您可以使用这些定义与库类似 志纪。 。 。 .
npm install @catppuccin/vscode
pnpm add @catppuccin/vscode
yarn add @catppuccin/vscode
API 密码
// the themes with default options
import { latte, frappe, macchiato, mocha } from "@catppuccin/vscode";
// alternatively, import the JSON files:
import latte from "@catppuccin/vscode/themes/latte.json" with { type: "json" };
import frappe from "@catppuccin/vscode/themes/frappe.json" with { type: "json" };
import macchiato from "@catppuccin/vscode/themes/macchiato.json" with { type: "json" };
import mocha from "@catppuccin/vscode/themes/mocha.json" with { type: "json" };
要自定义主题, 您可以使用 compile() 函数,可选通过 vSCode 主题支持的选项。 。 。 .
import { compile } from "@catppuccin/vscode";
const myMocha = compile("mocha", {
colorOverrides: {
mocha: {
base: "#000000",
mantle: "#010101",
crust: "#020202",
},
},
});
版权: 2021年至今 猫头鹰