Skip to content
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
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CHANGELOG.md
pnpm-lock.yaml
Empty file added .prettierrc
Empty file.
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"scripts": {
"prepare": "pnpm run build",
"build": "cm-buildhelper src/catppuccin.ts",
"watch": "nodemon --watch src -e ts --exec 'pnpm build'"
"watch": "nodemon --watch src -e ts --exec 'pnpm build'",
"format": "prettier --write ."
},
"files": [
"dist"
Expand All @@ -52,7 +53,8 @@
},
"devDependencies": {
"@codemirror/buildhelper": "^1.0.0",
"nodemon": "^3.1.14"
"nodemon": "^3.1.14",
"prettier": "3.8.1"
},
"packageManager": "pnpm@10.33.0"
}
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"local>catppuccin/renovate-config"
]
"extends": ["local>catppuccin/renovate-config"]
}
14 changes: 4 additions & 10 deletions src/catppuccin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,13 @@ function createCatppuccinTheme(flavor: CatppuccinFlavor) {
},
},
},
{ dark: isDark }
{ dark: isDark },
);

const highlightStyle = HighlightStyle.define([
{ tag: t.keyword, color: colors.mauve.hex },
{
tag: [
t.name,
t.definition(t.name),
t.deleted,
t.character,
t.macroName,
],
tag: [t.name, t.definition(t.name), t.deleted, t.character, t.macroName],
color: colors.text.hex,
},
{
Expand Down Expand Up @@ -155,9 +149,9 @@ function createCatppuccinTheme(flavor: CatppuccinFlavor) {
// Create extensions for all variants
export const catppuccinLatte: Extension = createCatppuccinTheme(flavors.latte);
export const catppuccinFrappe: Extension = createCatppuccinTheme(
flavors.frappe
flavors.frappe,
);
export const catppuccinMacchiato: Extension = createCatppuccinTheme(
flavors.macchiato
flavors.macchiato,
);
export const catppuccinMocha: Extension = createCatppuccinTheme(flavors.mocha);