| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335 |
- {
- "$schema": "http://json-schema.org/draft-07/schema#",
- "title": "Pi Coding Agent Theme",
- "description": "Theme schema for Pi coding agent",
- "type": "object",
- "required": ["name", "colors"],
- "properties": {
- "$schema": {
- "type": "string",
- "description": "JSON schema reference"
- },
- "name": {
- "type": "string",
- "description": "Theme name"
- },
- "vars": {
- "type": "object",
- "description": "Reusable color variables",
- "additionalProperties": {
- "oneOf": [
- {
- "type": "string",
- "description": "Hex color (#RRGGBB), variable reference, or empty string for terminal default"
- },
- {
- "type": "integer",
- "minimum": 0,
- "maximum": 255,
- "description": "256-color palette index (0-255)"
- }
- ]
- }
- },
- "colors": {
- "type": "object",
- "description": "Theme color definitions (all required)",
- "required": [
- "accent",
- "border",
- "borderAccent",
- "borderMuted",
- "success",
- "error",
- "warning",
- "muted",
- "dim",
- "text",
- "thinkingText",
- "selectedBg",
- "userMessageBg",
- "userMessageText",
- "customMessageBg",
- "customMessageText",
- "customMessageLabel",
- "toolPendingBg",
- "toolSuccessBg",
- "toolErrorBg",
- "toolTitle",
- "toolOutput",
- "mdHeading",
- "mdLink",
- "mdLinkUrl",
- "mdCode",
- "mdCodeBlock",
- "mdCodeBlockBorder",
- "mdQuote",
- "mdQuoteBorder",
- "mdHr",
- "mdListBullet",
- "toolDiffAdded",
- "toolDiffRemoved",
- "toolDiffContext",
- "syntaxComment",
- "syntaxKeyword",
- "syntaxFunction",
- "syntaxVariable",
- "syntaxString",
- "syntaxNumber",
- "syntaxType",
- "syntaxOperator",
- "syntaxPunctuation",
- "thinkingOff",
- "thinkingMinimal",
- "thinkingLow",
- "thinkingMedium",
- "thinkingHigh",
- "thinkingXhigh",
- "bashMode"
- ],
- "properties": {
- "accent": {
- "$ref": "#/$defs/colorValue",
- "description": "Primary accent color (logo, selected items, cursor)"
- },
- "border": {
- "$ref": "#/$defs/colorValue",
- "description": "Normal borders"
- },
- "borderAccent": {
- "$ref": "#/$defs/colorValue",
- "description": "Highlighted borders"
- },
- "borderMuted": {
- "$ref": "#/$defs/colorValue",
- "description": "Subtle borders"
- },
- "success": {
- "$ref": "#/$defs/colorValue",
- "description": "Success states"
- },
- "error": {
- "$ref": "#/$defs/colorValue",
- "description": "Error states"
- },
- "warning": {
- "$ref": "#/$defs/colorValue",
- "description": "Warning states"
- },
- "muted": {
- "$ref": "#/$defs/colorValue",
- "description": "Secondary/dimmed text"
- },
- "dim": {
- "$ref": "#/$defs/colorValue",
- "description": "Very dimmed text (more subtle than muted)"
- },
- "text": {
- "$ref": "#/$defs/colorValue",
- "description": "Default text color (usually empty string)"
- },
- "thinkingText": {
- "$ref": "#/$defs/colorValue",
- "description": "Thinking block text color"
- },
- "selectedBg": {
- "$ref": "#/$defs/colorValue",
- "description": "Selected item background"
- },
- "userMessageBg": {
- "$ref": "#/$defs/colorValue",
- "description": "User message background"
- },
- "userMessageText": {
- "$ref": "#/$defs/colorValue",
- "description": "User message text color"
- },
- "customMessageBg": {
- "$ref": "#/$defs/colorValue",
- "description": "Custom message background (hook-injected messages)"
- },
- "customMessageText": {
- "$ref": "#/$defs/colorValue",
- "description": "Custom message text color"
- },
- "customMessageLabel": {
- "$ref": "#/$defs/colorValue",
- "description": "Custom message type label color"
- },
- "toolPendingBg": {
- "$ref": "#/$defs/colorValue",
- "description": "Tool execution box (pending state)"
- },
- "toolSuccessBg": {
- "$ref": "#/$defs/colorValue",
- "description": "Tool execution box (success state)"
- },
- "toolErrorBg": {
- "$ref": "#/$defs/colorValue",
- "description": "Tool execution box (error state)"
- },
- "toolTitle": {
- "$ref": "#/$defs/colorValue",
- "description": "Tool execution box title color"
- },
- "toolOutput": {
- "$ref": "#/$defs/colorValue",
- "description": "Tool execution box output text color"
- },
- "mdHeading": {
- "$ref": "#/$defs/colorValue",
- "description": "Markdown heading text"
- },
- "mdLink": {
- "$ref": "#/$defs/colorValue",
- "description": "Markdown link text"
- },
- "mdLinkUrl": {
- "$ref": "#/$defs/colorValue",
- "description": "Markdown link URL"
- },
- "mdCode": {
- "$ref": "#/$defs/colorValue",
- "description": "Markdown inline code"
- },
- "mdCodeBlock": {
- "$ref": "#/$defs/colorValue",
- "description": "Markdown code block content"
- },
- "mdCodeBlockBorder": {
- "$ref": "#/$defs/colorValue",
- "description": "Markdown code block fences"
- },
- "mdQuote": {
- "$ref": "#/$defs/colorValue",
- "description": "Markdown blockquote text"
- },
- "mdQuoteBorder": {
- "$ref": "#/$defs/colorValue",
- "description": "Markdown blockquote border"
- },
- "mdHr": {
- "$ref": "#/$defs/colorValue",
- "description": "Markdown horizontal rule"
- },
- "mdListBullet": {
- "$ref": "#/$defs/colorValue",
- "description": "Markdown list bullets/numbers"
- },
- "toolDiffAdded": {
- "$ref": "#/$defs/colorValue",
- "description": "Added lines in tool diffs"
- },
- "toolDiffRemoved": {
- "$ref": "#/$defs/colorValue",
- "description": "Removed lines in tool diffs"
- },
- "toolDiffContext": {
- "$ref": "#/$defs/colorValue",
- "description": "Context lines in tool diffs"
- },
- "syntaxComment": {
- "$ref": "#/$defs/colorValue",
- "description": "Syntax highlighting: comments"
- },
- "syntaxKeyword": {
- "$ref": "#/$defs/colorValue",
- "description": "Syntax highlighting: keywords"
- },
- "syntaxFunction": {
- "$ref": "#/$defs/colorValue",
- "description": "Syntax highlighting: function names"
- },
- "syntaxVariable": {
- "$ref": "#/$defs/colorValue",
- "description": "Syntax highlighting: variable names"
- },
- "syntaxString": {
- "$ref": "#/$defs/colorValue",
- "description": "Syntax highlighting: string literals"
- },
- "syntaxNumber": {
- "$ref": "#/$defs/colorValue",
- "description": "Syntax highlighting: number literals"
- },
- "syntaxType": {
- "$ref": "#/$defs/colorValue",
- "description": "Syntax highlighting: type names"
- },
- "syntaxOperator": {
- "$ref": "#/$defs/colorValue",
- "description": "Syntax highlighting: operators"
- },
- "syntaxPunctuation": {
- "$ref": "#/$defs/colorValue",
- "description": "Syntax highlighting: punctuation"
- },
- "thinkingOff": {
- "$ref": "#/$defs/colorValue",
- "description": "Thinking level border: off"
- },
- "thinkingMinimal": {
- "$ref": "#/$defs/colorValue",
- "description": "Thinking level border: minimal"
- },
- "thinkingLow": {
- "$ref": "#/$defs/colorValue",
- "description": "Thinking level border: low"
- },
- "thinkingMedium": {
- "$ref": "#/$defs/colorValue",
- "description": "Thinking level border: medium"
- },
- "thinkingHigh": {
- "$ref": "#/$defs/colorValue",
- "description": "Thinking level border: high"
- },
- "thinkingXhigh": {
- "$ref": "#/$defs/colorValue",
- "description": "Thinking level border: xhigh (OpenAI codex-max only)"
- },
- "bashMode": {
- "$ref": "#/$defs/colorValue",
- "description": "Editor border color in bash mode"
- }
- },
- "additionalProperties": false
- },
- "export": {
- "type": "object",
- "description": "Optional colors for HTML export (defaults derived from userMessageBg if not specified)",
- "properties": {
- "pageBg": {
- "$ref": "#/$defs/colorValue",
- "description": "Page background color"
- },
- "cardBg": {
- "$ref": "#/$defs/colorValue",
- "description": "Card/container background color"
- },
- "infoBg": {
- "$ref": "#/$defs/colorValue",
- "description": "Info sections background (system prompt, notices)"
- }
- },
- "additionalProperties": false
- }
- },
- "additionalProperties": false,
- "$defs": {
- "colorValue": {
- "oneOf": [
- {
- "type": "string",
- "description": "Hex color (#RRGGBB), variable reference, or empty string for terminal default"
- },
- {
- "type": "integer",
- "minimum": 0,
- "maximum": 255,
- "description": "256-color palette index (0-255)"
- }
- ]
- }
- }
- }
|