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

fix(settings): validation error for customUIColors with opacity #225

Merged
merged 2 commits into from
Nov 28, 2023
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
184 changes: 90 additions & 94 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,98 +49,96 @@
"path": "./themes/latte.json"
}
],
"configuration": [
{
"title": "Catppuccin",
"properties": {
"catppuccin.boldKeywords": {
"type": "boolean",
"default": true,
"markdownDescription": "Controls whether to use **bold** for keywords."
},
"catppuccin.italicKeywords": {
"type": "boolean",
"default": true,
"markdownDescription": "Controls whether to use *italics* for keywords."
},
"catppuccin.italicComments": {
"type": "boolean",
"default": true,
"markdownDescription": "Controls whether to use *italics* for comments."
},
"catppuccin.colorOverrides": {
"type": "object",
"default": {},
"markdownDescription": "Custom color overrides. Assign your own hex codes to palette colors. See [the docs](https://github.com/catppuccin/vscode#override-palette-colors) for reference.",
"$ref": "https://cdn.jsdelivr.net/gh/catppuccin/vscode@main/schemas/colorOverrides.schema.json"
},
"catppuccin.customUIColors": {
"type": "object",
"default": {},
"markdownDescription": "Customize UI colors. Map `workbench.colorCustomizations` to palette colors. See [the docs](https://github.com/catppuccin/vscode#use-palette-colors-on-workbench-elements-ui) for reference.",
"$ref": "https://cdn.jsdelivr.net/gh/catppuccin/vscode@main/schemas/customUIColors.schema.json"
},
"catppuccin.accentColor": {
"type": "string",
"default": "mauve",
"description": "Controls which accent color to use.",
"enum": [
"rosewater",
"flamingo",
"pink",
"mauve",
"red",
"maroon",
"peach",
"yellow",
"green",
"teal",
"sky",
"sapphire",
"blue",
"lavender"
]
},
"catppuccin.workbenchMode": {
"type": "string",
"default": "default",
"description": "Controls how the workbench should be styled.",
"enum": [
"default",
"flat",
"minimal"
],
"enumDescriptions": [
"The default look, using 3 shades of the base color.",
"A more flat look, using 2 shades of the base color.",
"A minimal look, using 1 shade of the base color."
]
},
"catppuccin.bracketMode": {
"type": "string",
"default": "rainbow",
"description": "Controls how bracket pairs should be themed",
"enum": [
"rainbow",
"dimmed",
"monochromatic",
"neovim"
],
"enumDescriptions": [
"Uses 6 rainbow colors for matching bracket pairs.",
"Uses the same 6 rainbow colors as `rainbow`, but has a dimmed appearance.",
"A monochromatic, grey appearance for matching bracket pairs.",
"Uses the same bracket pair colors as our neovim port."
]
},
"catppuccin.extraBordersEnabled": {
"type": "boolean",
"default": false,
"description": "Controls whether borders should be enabled on some additional UI elements."
}
"configuration": {
"title": "Catppuccin",
"properties": {
"catppuccin.boldKeywords": {
"type": "boolean",
"default": true,
"markdownDescription": "Controls whether to use **bold** for keywords."
},
"catppuccin.italicComments": {
"type": "boolean",
"default": true,
"markdownDescription": "Controls whether to use *italics* for comments."
},
"catppuccin.italicKeywords": {
"type": "boolean",
"default": true,
"markdownDescription": "Controls whether to use *italics* for keywords."
},
"catppuccin.colorOverrides": {
"type": "object",
"default": {},
"markdownDescription": "Custom color overrides. Assign your own hex codes to palette colors. See [the docs](https://github.com/catppuccin/vscode#override-palette-colors) for reference.",
"$ref": "https://cdn.jsdelivr.net/gh/catppuccin/[email protected]/schemas/colorOverrides.schema.json"
},
"catppuccin.customUIColors": {
"type": "object",
"default": {},
"markdownDescription": "Customize UI colors. Map `workbench.colorCustomizations` to palette colors. See [the docs](https://github.com/catppuccin/vscode#use-palette-colors-on-workbench-elements-ui) for reference.",
"$ref": "https://cdn.jsdelivr.net/gh/catppuccin/[email protected]/schemas/customUIColors.schema.json"
},
"catppuccin.accentColor": {
"type": "string",
"default": "mauve",
"description": "Controls which accent color to use.",
"enum": [
"rosewater",
"flamingo",
"pink",
"mauve",
"red",
"maroon",
"peach",
"yellow",
"green",
"teal",
"sky",
"sapphire",
"blue",
"lavender"
]
},
"catppuccin.workbenchMode": {
"type": "string",
"default": "default",
"description": "Controls how the workbench should be styled.",
"enum": [
"default",
"flat",
"minimal"
],
"enumDescriptions": [
"The default look, using 3 shades of the base color.",
"A more flat look, using 2 shades of the base color.",
"A minimal look, using 1 shade of the base color."
]
},
"catppuccin.bracketMode": {
"type": "string",
"default": "rainbow",
"description": "Controls how bracket pairs should be themed",
"enum": [
"rainbow",
"dimmed",
"monochromatic",
"neovim"
],
"enumDescriptions": [
"Uses 6 rainbow colors for matching bracket pairs.",
"Uses the same 6 rainbow colors as `rainbow`, but has a dimmed appearance.",
"A monochromatic, grey appearance for matching bracket pairs.",
"Uses the same bracket pair colors as our neovim port."
]
},
"catppuccin.extraBordersEnabled": {
"type": "boolean",
"default": false,
"description": "Controls whether borders should be enabled on some additional UI elements."
}
}
]
}
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -181,7 +179,6 @@
"husky": "^8.0.3",
"json-schema-to-typescript": "^13.1.1",
"lint-staged": "^15.1.0",
"node-fetch": "^2.7.0",
"prettier": "^3.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand All @@ -197,15 +194,14 @@
"*.{ts,json,md}": "prettier --write"
},
"scripts": {
"build": "yarn compile:theme && yarn compile",
"build": "yarn hooks && yarn compile",
"build-storybook": "storybook build",
"chromatic": "chromatic --exit-zero-on-changes --exit-once-uploaded --project-token chpt_e3cba49738d7554",
"compile": "tsup",
"compile:theme": "tsx src/hooks/generateThemes.ts",
"dev": "yarn compile:theme && yarn compile --env.NODE_ENV development",
"hooks": "tsx src/hooks/index.ts",
"lint": "eslint . --ext .ts",
"package": "vsce package --allow-star-activation --yarn",
"postbuild": "prettier -w ./themes",
"prepare": "husky install",
"storybook": "storybook dev -p 6006",
"update-types": "tsx src/hooks/updateVSCtypes.ts"
Expand Down
Loading