Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: highlight liquid objects/variables as pink #449

Merged
merged 2 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;