@catppuccin/vscode
TypeScript icon, indicating that this package has built-in type declarations

3.14.0 • Public • Published

Logo
Catppuccin for VSCode

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",
    },
  },
});

 

Copyright © 2021-present Catppuccin Org

Readme

Keywords

none

Package Sidebar

Install

npm i @catppuccin/vscode

Weekly Downloads

23

Version

3.14.0

License

MIT

Unpacked Size

1.54 MB

Total Files

16

Last publish

Collaborators

  • hamothy
  • aekstrom
  • andreasgrafen
  • nekowinston
  • pocco81