-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: shim theme name for shiki (#336)
- Loading branch information
1 parent
d09d100
commit e48b0a1
Showing
1 changed file
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}; |