Skip to content

Commit

Permalink
fix: shim theme name for shiki (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekowinston committed Mar 10, 2024
1 parent d09d100 commit e48b0a1
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions packages/catppuccin-vscode/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
export { default as latte } from "catppuccin-vsc/themes/latte.json" with { type: "json" };
export { default as frappe } from "catppuccin-vsc/themes/frappe.json" with { type: "json" };
export { default as macchiato } from "catppuccin-vsc/themes/macchiato.json" with { type: "json" };
export { default as mocha } from "catppuccin-vsc/themes/mocha.json" with { type: "json" };
import latteJson from "catppuccin-vsc/themes/latte.json" with { type: "json" };
import frappeJson from "catppuccin-vsc/themes/frappe.json" with { type: "json" };
import macchiatoJson from "catppuccin-vsc/themes/macchiato.json" with { type: "json" };
import mochaJson from "catppuccin-vsc/themes/mocha.json" with { type: "json" };

export { compile } from "./compile.js";

// shim the name for the Shiki theme, as the name is used for the className

export const latte = {
...latteJson,
name: "catppuccin-latte",
};
export const frappe = {
...frappeJson,
name: "catppuccin-frappe",
};
export const macchiato = {
...macchiatoJson,
name: "catppuccin-macchiato",
};
export const mocha = {
...mochaJson,
name: "catppuccin-mocha",
};

0 comments on commit e48b0a1

Please sign in to comment.