Skip to content

Commit

Permalink
feat: highlight liquid objects/variables as pink (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoudham authored Nov 8, 2024
1 parent 890381f commit 4c0e083
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const highlighter = await getHighlighter({
"json",
"jsx",
"kotlin",
"liquid",
"lua",
"markdown",
"nix",
Expand Down Expand Up @@ -131,6 +132,10 @@ export const JavaScript = await StoryBuilder({
export const Json = await StoryBuilder({ lang: "json", file: "json.json" });
export const JSX = await StoryBuilder({ lang: "jsx", file: "jsx.jsx" });
export const Kotlin = await StoryBuilder({ lang: "kotlin", file: "kotlin.kt" });
export const Liquid = await StoryBuilder({
lang: "liquid",
file: "liquid.liquid",
});
export const Lua = await StoryBuilder({ lang: "lua", file: "lua.lua" });
export const Markdown = await StoryBuilder({
lang: "markdown",
Expand Down
2 changes: 2 additions & 0 deletions packages/catppuccin-vsc/src/theme/tokens/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import java from "./java";
import javascript from "./javascript";
import julia from "./julia";
import latex from "./latex";
import liquid from "./liquid";
import lua from "./lua";
import markdown from "./markdown";
import nix from "./nix";
Expand Down Expand Up @@ -296,6 +297,7 @@ export default function tokens(context: ThemeContext): TextmateColors {
javascript,
julia,
latex,
liquid,
lua,
markdown,
nix,
Expand Down
17 changes: 17 additions & 0 deletions packages/catppuccin-vsc/src/theme/tokens/liquid.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import type { TextmateColors, ThemeContext } from "@/types";

const tokens = (context: ThemeContext): TextmateColors => {
const { palette } = context;

return [
{
name: "Liquid Builtin Objects & User Defined Variables",
scope: "variable.language.liquid",
settings: {
foreground: palette.pink,
},
},
];
};

export default tokens;

0 comments on commit 4c0e083

Please sign in to comment.