@catppuccin/vscode
v3.16.0
Published
🦌 Soothing pastel theme for VSCode, NPM version
Downloads
377
Readme
Simple NPM package containing all compiled themes of Catppuccin for VSCode.
Usage
You can use these definitions with libraries like Shiki.
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" };
To customize the theme, you can use the compile()
function, optionally passing in options that the VSCode theme supports.
import { compile } from "@catppuccin/vscode";
const myMocha = compile("mocha", {
colorOverrides: {
mocha: {
base: "#000000",
mantle: "#010101",
crust: "#020202",
},
},
});