pi-cursor-theme 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,16 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [0.1.0] - 2025-02-19
9
+
10
+ ### Added
11
+
12
+ - Initial release of cursor-dark theme for pi coding agent
13
+ - Color palette inspired by Cursor's dark mode
14
+ - 51 color tokens for complete TUI coverage
15
+ - Support for syntax highlighting, markdown rendering, and tool output
16
+ - Documentation with attribution to inspiration sources
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 dkmnx
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,85 @@
1
+ # pi-cursor-theme
2
+
3
+ A Cursor-inspired dark theme for the pi coding agent.
4
+
5
+ **Inspiration:** Based on the [Cursor theme] from the [opencode] project.
6
+
7
+ [Cursor theme]: https://github.com/anomalyco/opencode/blob/dev/packages/opencode/src/cli/cmd/tui/context/theme/cursor.json
8
+
9
+ [opencode]: https://github.com/anomalyco/opencode
10
+
11
+ ## Installation
12
+
13
+ Install from npm:
14
+
15
+ ```bash
16
+ pi install npm:pi-cursor-theme
17
+ ```
18
+
19
+ Or install from git:
20
+
21
+ ```bash
22
+ pi install git:github.com/dkmnx/pi-cursor-theme
23
+ ```
24
+
25
+ ## Theme Preview
26
+
27
+ The `cursor-dark` theme features a carefully balanced color palette inspired by
28
+ Cursor's dark mode, optimized for readability in the pi TUI interface.
29
+
30
+ ### Color Palette
31
+
32
+ | Name | Color |
33
+ | ---------- | --------- |
34
+ | Background | `#181818` |
35
+ | Panel | `#141414` |
36
+ | Element | `#262626` |
37
+ | Foreground | `#e4e4e4` |
38
+ | Muted | `#888888` |
39
+ | Border | `#333333` |
40
+
41
+ ### Accent Colors
42
+
43
+ | Name | Color |
44
+ | ------------ | --------- |
45
+ | Cyan | `#88c0d0` |
46
+ | Blue | `#81a1c1` |
47
+ | Green | `#3fa266` |
48
+ | Green Bright | `#70b489` |
49
+ | Red | `#e34671` |
50
+ | Red Bright | `#fc6b83` |
51
+ | Yellow | `#f1b467` |
52
+ | Orange | `#d2943e` |
53
+ | Pink | `#E394DC` |
54
+ | Purple | `#AAA0FA` |
55
+ | Teal | `#82D2CE` |
56
+
57
+ ## Usage
58
+
59
+ After installation, use the theme by passing it to pi:
60
+
61
+ ```bash
62
+ pi --theme cursor-dark
63
+ ```
64
+
65
+ To make it default, use the `/settings` command and select the theme.
66
+
67
+ Or add it directly to `~/.pi/agent/settings.json`:
68
+
69
+ ```json
70
+ {
71
+ "theme": "cursor-dark"
72
+ }
73
+ ```
74
+
75
+ Or use `pi config` to enable it interactively:
76
+
77
+ ```bash
78
+ pi config
79
+ ```
80
+
81
+ Then use `space` to toggle the cursor-dark theme.
82
+
83
+ ## License
84
+
85
+ [MIT](LICENSE)
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "pi-cursor-theme",
3
+ "version": "0.1.0",
4
+ "description": "A Cursor-inspired dark theme for pi coding agent",
5
+ "keywords": ["pi-package", "pi-theme", "theme", "cursor", "dark-theme"],
6
+ "author": "dkmnx",
7
+ "license": "MIT",
8
+ "pi": {
9
+ "themes": ["./themes"]
10
+ }
11
+ }
@@ -0,0 +1,77 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/badlogic/pi-mono/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json",
3
+ "name": "cursor-dark",
4
+ "vars": {
5
+ "bg": "#181818",
6
+ "panel": "#141414",
7
+ "element": "#262626",
8
+ "fg": "#e4e4e4",
9
+ "muted": "#888888",
10
+ "border": "#333333",
11
+ "borderActive": "#444444",
12
+ "cyan": "#88c0d0",
13
+ "blue": "#81a1c1",
14
+ "green": "#3fa266",
15
+ "greenBright": "#70b489",
16
+ "red": "#e34671",
17
+ "redBright": "#fc6b83",
18
+ "yellow": "#f1b467",
19
+ "orange": "#d2943e",
20
+ "pink": "#E394DC",
21
+ "purple": "#AAA0FA",
22
+ "teal": "#82D2CE"
23
+ },
24
+ "colors": {
25
+ "accent": "cyan",
26
+ "border": "border",
27
+ "borderAccent": "cyan",
28
+ "borderMuted": "border",
29
+ "success": "green",
30
+ "error": "red",
31
+ "warning": "yellow",
32
+ "muted": "muted",
33
+ "dim": 240,
34
+ "text": "",
35
+ "thinkingText": "muted",
36
+ "selectedBg": "element",
37
+ "userMessageBg": "panel",
38
+ "userMessageText": "",
39
+ "customMessageBg": "element",
40
+ "customMessageText": "",
41
+ "customMessageLabel": "cyan",
42
+ "toolPendingBg": "panel",
43
+ "toolSuccessBg": "panel",
44
+ "toolErrorBg": "panel",
45
+ "toolTitle": "cyan",
46
+ "toolOutput": "",
47
+ "mdHeading": "purple",
48
+ "mdLink": "teal",
49
+ "mdLinkUrl": "blue",
50
+ "mdCode": "pink",
51
+ "mdCodeBlock": "",
52
+ "mdCodeBlockBorder": "muted",
53
+ "mdQuote": "muted",
54
+ "mdQuoteBorder": "muted",
55
+ "mdHr": "muted",
56
+ "mdListBullet": "cyan",
57
+ "toolDiffAdded": "green",
58
+ "toolDiffRemoved": "red",
59
+ "toolDiffContext": "muted",
60
+ "syntaxComment": "muted",
61
+ "syntaxKeyword": "teal",
62
+ "syntaxFunction": "orange",
63
+ "syntaxVariable": "fg",
64
+ "syntaxString": "pink",
65
+ "syntaxNumber": "yellow",
66
+ "syntaxType": "orange",
67
+ "syntaxOperator": "fg",
68
+ "syntaxPunctuation": "fg",
69
+ "thinkingOff": "border",
70
+ "thinkingMinimal": "cyan",
71
+ "thinkingLow": "blue",
72
+ "thinkingMedium": "teal",
73
+ "thinkingHigh": "pink",
74
+ "thinkingXhigh": "red",
75
+ "bashMode": "yellow"
76
+ }
77
+ }