@neurocode-ai/tui 1.18.8

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.
Files changed (241) hide show
  1. package/bunfig.toml +4 -0
  2. package/package.json +72 -0
  3. package/src/app.tsx +1134 -0
  4. package/src/attention.ts +260 -0
  5. package/src/audio.d.ts +9 -0
  6. package/src/audio.ts +53 -0
  7. package/src/clipboard.ts +124 -0
  8. package/src/component/bg-pulse-render.ts +436 -0
  9. package/src/component/bg-pulse.tsx +99 -0
  10. package/src/component/command-palette.tsx +79 -0
  11. package/src/component/dialog-agent.tsx +31 -0
  12. package/src/component/dialog-console-org.tsx +135 -0
  13. package/src/component/dialog-debug.tsx +90 -0
  14. package/src/component/dialog-mcp.tsx +85 -0
  15. package/src/component/dialog-model.tsx +197 -0
  16. package/src/component/dialog-move-session.tsx +353 -0
  17. package/src/component/dialog-provider.tsx +469 -0
  18. package/src/component/dialog-retry-action.tsx +160 -0
  19. package/src/component/dialog-session-delete-failed.tsx +99 -0
  20. package/src/component/dialog-session-list.tsx +364 -0
  21. package/src/component/dialog-session-rename.tsx +31 -0
  22. package/src/component/dialog-skill.tsx +70 -0
  23. package/src/component/dialog-stash.tsx +87 -0
  24. package/src/component/dialog-status.tsx +168 -0
  25. package/src/component/dialog-tag.tsx +47 -0
  26. package/src/component/dialog-theme-list.tsx +50 -0
  27. package/src/component/dialog-variant.tsx +39 -0
  28. package/src/component/dialog-workspace-create.tsx +308 -0
  29. package/src/component/dialog-workspace-file-changes.tsx +144 -0
  30. package/src/component/dialog-workspace-list.tsx +112 -0
  31. package/src/component/dialog-workspace-unavailable.tsx +69 -0
  32. package/src/component/error-component.tsx +240 -0
  33. package/src/component/logo.tsx +61 -0
  34. package/src/component/plugin-route-missing.tsx +14 -0
  35. package/src/component/prompt/autocomplete.tsx +781 -0
  36. package/src/component/prompt/cwd.ts +0 -0
  37. package/src/component/prompt/frecency.tsx +1 -0
  38. package/src/component/prompt/history.tsx +1 -0
  39. package/src/component/prompt/index.tsx +1713 -0
  40. package/src/component/prompt/local-attachment.ts +48 -0
  41. package/src/component/prompt/move.tsx +205 -0
  42. package/src/component/prompt/stash.tsx +1 -0
  43. package/src/component/prompt/workspace.tsx +137 -0
  44. package/src/component/register-spinner.ts +6 -0
  45. package/src/component/spinner.tsx +26 -0
  46. package/src/component/startup-loading.tsx +63 -0
  47. package/src/component/todo-item.tsx +32 -0
  48. package/src/component/use-connected.tsx +12 -0
  49. package/src/component/workspace-label.tsx +19 -0
  50. package/src/config/index.tsx +129 -0
  51. package/src/config/keybind.ts +471 -0
  52. package/src/context/args.tsx +16 -0
  53. package/src/context/clipboard.tsx +18 -0
  54. package/src/context/data.tsx +569 -0
  55. package/src/context/directory.ts +17 -0
  56. package/src/context/editor.ts +408 -0
  57. package/src/context/epilogue.tsx +6 -0
  58. package/src/context/event.ts +36 -0
  59. package/src/context/exit.tsx +8 -0
  60. package/src/context/helper.tsx +26 -0
  61. package/src/context/kv.tsx +66 -0
  62. package/src/context/local.tsx +542 -0
  63. package/src/context/location.tsx +14 -0
  64. package/src/context/path-format.tsx +24 -0
  65. package/src/context/permission.tsx +26 -0
  66. package/src/context/project.tsx +115 -0
  67. package/src/context/prompt.tsx +18 -0
  68. package/src/context/route.tsx +60 -0
  69. package/src/context/runtime.tsx +62 -0
  70. package/src/context/sdk.tsx +151 -0
  71. package/src/context/sync.tsx +666 -0
  72. package/src/context/theme.tsx +332 -0
  73. package/src/context/thinking.ts +67 -0
  74. package/src/editor-zed.ts +286 -0
  75. package/src/editor.ts +101 -0
  76. package/src/feature-plugins/builtins.ts +36 -0
  77. package/src/feature-plugins/home/footer.tsx +100 -0
  78. package/src/feature-plugins/home/tips-view.tsx +287 -0
  79. package/src/feature-plugins/home/tips.tsx +59 -0
  80. package/src/feature-plugins/sidebar/context.tsx +65 -0
  81. package/src/feature-plugins/sidebar/files.tsx +70 -0
  82. package/src/feature-plugins/sidebar/footer.tsx +98 -0
  83. package/src/feature-plugins/sidebar/lsp.tsx +65 -0
  84. package/src/feature-plugins/sidebar/mcp.tsx +97 -0
  85. package/src/feature-plugins/sidebar/todo.tsx +49 -0
  86. package/src/feature-plugins/system/diff-viewer-file-tree-utils.ts +232 -0
  87. package/src/feature-plugins/system/diff-viewer-file-tree.tsx +162 -0
  88. package/src/feature-plugins/system/diff-viewer-ui.tsx +103 -0
  89. package/src/feature-plugins/system/diff-viewer.tsx +1077 -0
  90. package/src/feature-plugins/system/notifications.ts +94 -0
  91. package/src/feature-plugins/system/plugins.tsx +269 -0
  92. package/src/feature-plugins/system/which-key.tsx +608 -0
  93. package/src/index.tsx +1 -0
  94. package/src/keymap.tsx +290 -0
  95. package/src/logo.ts +11 -0
  96. package/src/parsers-config.ts +386 -0
  97. package/src/plugin/adapters.tsx +355 -0
  98. package/src/plugin/api.ts +52 -0
  99. package/src/plugin/command-shim.ts +109 -0
  100. package/src/plugin/runtime.tsx +81 -0
  101. package/src/plugin/slots.tsx +65 -0
  102. package/src/prompt/display.ts +48 -0
  103. package/src/prompt/frecency.tsx +80 -0
  104. package/src/prompt/history.tsx +111 -0
  105. package/src/prompt/part.ts +29 -0
  106. package/src/prompt/stash.tsx +89 -0
  107. package/src/prompt/traits.ts +29 -0
  108. package/src/routes/home/session-destination.tsx +41 -0
  109. package/src/routes/home.tsx +95 -0
  110. package/src/routes/session/dialog-fork-from-timeline.tsx +76 -0
  111. package/src/routes/session/dialog-message.tsx +109 -0
  112. package/src/routes/session/dialog-subagent.tsx +26 -0
  113. package/src/routes/session/dialog-timeline.tsx +47 -0
  114. package/src/routes/session/footer.tsx +91 -0
  115. package/src/routes/session/index.tsx +2710 -0
  116. package/src/routes/session/permission.tsx +718 -0
  117. package/src/routes/session/question.tsx +514 -0
  118. package/src/routes/session/sidebar.tsx +103 -0
  119. package/src/routes/session/subagent-footer.tsx +132 -0
  120. package/src/runtime.tsx +9 -0
  121. package/src/terminal-win32.ts +130 -0
  122. package/src/theme/assets/aura.json +69 -0
  123. package/src/theme/assets/ayu.json +80 -0
  124. package/src/theme/assets/carbonfox.json +248 -0
  125. package/src/theme/assets/catppuccin-frappe.json +230 -0
  126. package/src/theme/assets/catppuccin-macchiato.json +230 -0
  127. package/src/theme/assets/catppuccin.json +112 -0
  128. package/src/theme/assets/cobalt2.json +225 -0
  129. package/src/theme/assets/cursor.json +249 -0
  130. package/src/theme/assets/dracula.json +219 -0
  131. package/src/theme/assets/everforest.json +241 -0
  132. package/src/theme/assets/flexoki.json +237 -0
  133. package/src/theme/assets/github.json +233 -0
  134. package/src/theme/assets/gruvbox.json +242 -0
  135. package/src/theme/assets/kanagawa.json +77 -0
  136. package/src/theme/assets/lucent-orng.json +234 -0
  137. package/src/theme/assets/material.json +235 -0
  138. package/src/theme/assets/matrix.json +77 -0
  139. package/src/theme/assets/mercury.json +252 -0
  140. package/src/theme/assets/monokai.json +221 -0
  141. package/src/theme/assets/nightowl.json +221 -0
  142. package/src/theme/assets/nord.json +223 -0
  143. package/src/theme/assets/one-dark.json +84 -0
  144. package/src/theme/assets/opencode.json +245 -0
  145. package/src/theme/assets/orng.json +249 -0
  146. package/src/theme/assets/osaka-jade.json +93 -0
  147. package/src/theme/assets/palenight.json +222 -0
  148. package/src/theme/assets/rosepine.json +234 -0
  149. package/src/theme/assets/solarized.json +223 -0
  150. package/src/theme/assets/synthwave84.json +226 -0
  151. package/src/theme/assets/tokyonight.json +243 -0
  152. package/src/theme/assets/vercel.json +245 -0
  153. package/src/theme/assets/vesper.json +218 -0
  154. package/src/theme/assets/zenburn.json +223 -0
  155. package/src/theme/index.ts +1089 -0
  156. package/src/ui/border.ts +21 -0
  157. package/src/ui/dialog-alert.tsx +66 -0
  158. package/src/ui/dialog-confirm.tsx +108 -0
  159. package/src/ui/dialog-export-options.tsx +217 -0
  160. package/src/ui/dialog-help.tsx +40 -0
  161. package/src/ui/dialog-prompt.tsx +126 -0
  162. package/src/ui/dialog-select.tsx +790 -0
  163. package/src/ui/dialog.tsx +231 -0
  164. package/src/ui/link.tsx +34 -0
  165. package/src/ui/spinner.ts +368 -0
  166. package/src/ui/toast.tsx +102 -0
  167. package/src/util/collapse-tool-output.ts +19 -0
  168. package/src/util/error.ts +182 -0
  169. package/src/util/filetype.ts +130 -0
  170. package/src/util/format.ts +20 -0
  171. package/src/util/layout.ts +25 -0
  172. package/src/util/locale.ts +86 -0
  173. package/src/util/model.ts +28 -0
  174. package/src/util/path.ts +12 -0
  175. package/src/util/persistence.ts +33 -0
  176. package/src/util/presentation.ts +38 -0
  177. package/src/util/provider-origin.ts +7 -0
  178. package/src/util/record.ts +3 -0
  179. package/src/util/renderer.ts +7 -0
  180. package/src/util/revert-diff.ts +18 -0
  181. package/src/util/scroll.ts +27 -0
  182. package/src/util/selection.ts +79 -0
  183. package/src/util/session.ts +3 -0
  184. package/src/util/signal.ts +51 -0
  185. package/src/util/system.ts +20 -0
  186. package/src/util/tool-display.ts +13 -0
  187. package/src/util/transcript.ts +112 -0
  188. package/sst-env.d.ts +10 -0
  189. package/test/app-lifecycle.test.tsx +128 -0
  190. package/test/cli/cmd/tui/dialog-workspace-create.test.ts +28 -0
  191. package/test/cli/cmd/tui/model-options.test.ts +32 -0
  192. package/test/cli/cmd/tui/notifications.test.ts +267 -0
  193. package/test/cli/cmd/tui/provider-options.test.ts +41 -0
  194. package/test/cli/cmd/tui/sync-fixture.tsx +70 -0
  195. package/test/cli/cmd/tui/sync-live-hydration.test.tsx +262 -0
  196. package/test/cli/cmd/tui/sync-undefined-messages.test.tsx +43 -0
  197. package/test/cli/cmd/tui/sync.test.tsx +65 -0
  198. package/test/cli/tui/__snapshots__/inline-tool-wrap-snapshot.test.tsx.snap +92 -0
  199. package/test/cli/tui/data.test.tsx +486 -0
  200. package/test/cli/tui/dialog-prompt.test.tsx +147 -0
  201. package/test/cli/tui/diff-viewer-file-tree.test.tsx +200 -0
  202. package/test/cli/tui/diff-viewer.test.tsx +268 -0
  203. package/test/cli/tui/inline-tool-wrap-snapshot.test.tsx +351 -0
  204. package/test/cli/tui/prompt-submit-race.test.ts +98 -0
  205. package/test/cli/tui/thinking.test.ts +36 -0
  206. package/test/cli/tui/use-event.test.tsx +148 -0
  207. package/test/clipboard.test.ts +19 -0
  208. package/test/component/dialog-session-list.test.ts +46 -0
  209. package/test/config.test.tsx +127 -0
  210. package/test/context/local.test.ts +22 -0
  211. package/test/editor.test.ts +32 -0
  212. package/test/feature-plugins/diff-viewer-file-tree-utils.test.ts +323 -0
  213. package/test/fixture/fixture.ts +13 -0
  214. package/test/fixture/tui-environment.tsx +32 -0
  215. package/test/fixture/tui-plugin.ts +36 -0
  216. package/test/fixture/tui-runtime.ts +12 -0
  217. package/test/fixture/tui-sdk.ts +109 -0
  218. package/test/index.test.tsx +6 -0
  219. package/test/keymap.test.tsx +141 -0
  220. package/test/plugin/runtime.test.ts +50 -0
  221. package/test/plugin/slots.test.tsx +38 -0
  222. package/test/prompt/display.test.ts +33 -0
  223. package/test/prompt/history.test.ts +39 -0
  224. package/test/prompt/jsonl.test.ts +24 -0
  225. package/test/prompt/local-attachment.test.ts +43 -0
  226. package/test/prompt/part.test.ts +53 -0
  227. package/test/prompt/persistence.test.ts +23 -0
  228. package/test/prompt/traits.test.ts +25 -0
  229. package/test/runtime.test.tsx +37 -0
  230. package/test/theme.test.ts +81 -0
  231. package/test/util/error.test.ts +49 -0
  232. package/test/util/filetype.test.ts +16 -0
  233. package/test/util/format.test.ts +59 -0
  234. package/test/util/model.test.ts +9 -0
  235. package/test/util/presentation.test.ts +8 -0
  236. package/test/util/renderer.test.ts +30 -0
  237. package/test/util/revert-diff.test.ts +35 -0
  238. package/test/util/session.test.ts +10 -0
  239. package/test/util/tool-display.test.ts +40 -0
  240. package/test/util/transcript.test.ts +421 -0
  241. package/tsconfig.json +10 -0
@@ -0,0 +1,235 @@
1
+ {
2
+ "$schema": "https://opencode.ai/theme.json",
3
+ "defs": {
4
+ "darkBg": "#263238",
5
+ "darkBgAlt": "#1e272c",
6
+ "darkBgPanel": "#37474f",
7
+ "darkFg": "#eeffff",
8
+ "darkFgMuted": "#546e7a",
9
+ "darkRed": "#f07178",
10
+ "darkPink": "#f78c6c",
11
+ "darkOrange": "#ffcb6b",
12
+ "darkYellow": "#ffcb6b",
13
+ "darkGreen": "#c3e88d",
14
+ "darkCyan": "#89ddff",
15
+ "darkBlue": "#82aaff",
16
+ "darkPurple": "#c792ea",
17
+ "darkViolet": "#bb80b3",
18
+ "lightBg": "#fafafa",
19
+ "lightBgAlt": "#f5f5f5",
20
+ "lightBgPanel": "#e7e7e8",
21
+ "lightFg": "#263238",
22
+ "lightFgMuted": "#90a4ae",
23
+ "lightRed": "#e53935",
24
+ "lightPink": "#ec407a",
25
+ "lightOrange": "#f4511e",
26
+ "lightYellow": "#ffb300",
27
+ "lightGreen": "#91b859",
28
+ "lightCyan": "#39adb5",
29
+ "lightBlue": "#6182b8",
30
+ "lightPurple": "#7c4dff",
31
+ "lightViolet": "#945eb8"
32
+ },
33
+ "theme": {
34
+ "primary": {
35
+ "dark": "darkBlue",
36
+ "light": "lightBlue"
37
+ },
38
+ "secondary": {
39
+ "dark": "darkPurple",
40
+ "light": "lightPurple"
41
+ },
42
+ "accent": {
43
+ "dark": "darkCyan",
44
+ "light": "lightCyan"
45
+ },
46
+ "error": {
47
+ "dark": "darkRed",
48
+ "light": "lightRed"
49
+ },
50
+ "warning": {
51
+ "dark": "darkYellow",
52
+ "light": "lightYellow"
53
+ },
54
+ "success": {
55
+ "dark": "darkGreen",
56
+ "light": "lightGreen"
57
+ },
58
+ "info": {
59
+ "dark": "darkOrange",
60
+ "light": "lightOrange"
61
+ },
62
+ "text": {
63
+ "dark": "darkFg",
64
+ "light": "lightFg"
65
+ },
66
+ "textMuted": {
67
+ "dark": "darkFgMuted",
68
+ "light": "lightFgMuted"
69
+ },
70
+ "background": {
71
+ "dark": "darkBg",
72
+ "light": "lightBg"
73
+ },
74
+ "backgroundPanel": {
75
+ "dark": "darkBgAlt",
76
+ "light": "lightBgAlt"
77
+ },
78
+ "backgroundElement": {
79
+ "dark": "darkBgPanel",
80
+ "light": "lightBgPanel"
81
+ },
82
+ "border": {
83
+ "dark": "#37474f",
84
+ "light": "#e0e0e0"
85
+ },
86
+ "borderActive": {
87
+ "dark": "darkBlue",
88
+ "light": "lightBlue"
89
+ },
90
+ "borderSubtle": {
91
+ "dark": "#1e272c",
92
+ "light": "#eeeeee"
93
+ },
94
+ "diffAdded": {
95
+ "dark": "darkGreen",
96
+ "light": "lightGreen"
97
+ },
98
+ "diffRemoved": {
99
+ "dark": "darkRed",
100
+ "light": "lightRed"
101
+ },
102
+ "diffContext": {
103
+ "dark": "darkFgMuted",
104
+ "light": "lightFgMuted"
105
+ },
106
+ "diffHunkHeader": {
107
+ "dark": "darkCyan",
108
+ "light": "lightCyan"
109
+ },
110
+ "diffHighlightAdded": {
111
+ "dark": "darkGreen",
112
+ "light": "lightGreen"
113
+ },
114
+ "diffHighlightRemoved": {
115
+ "dark": "darkRed",
116
+ "light": "lightRed"
117
+ },
118
+ "diffAddedBg": {
119
+ "dark": "#2e3c2b",
120
+ "light": "#e8f5e9"
121
+ },
122
+ "diffRemovedBg": {
123
+ "dark": "#3c2b2b",
124
+ "light": "#ffebee"
125
+ },
126
+ "diffContextBg": {
127
+ "dark": "darkBgAlt",
128
+ "light": "lightBgAlt"
129
+ },
130
+ "diffLineNumber": {
131
+ "dark": "#9aa2a6",
132
+ "light": "#6a6e70"
133
+ },
134
+ "diffAddedLineNumberBg": {
135
+ "dark": "#2e3c2b",
136
+ "light": "#e8f5e9"
137
+ },
138
+ "diffRemovedLineNumberBg": {
139
+ "dark": "#3c2b2b",
140
+ "light": "#ffebee"
141
+ },
142
+ "markdownText": {
143
+ "dark": "darkFg",
144
+ "light": "lightFg"
145
+ },
146
+ "markdownHeading": {
147
+ "dark": "darkBlue",
148
+ "light": "lightBlue"
149
+ },
150
+ "markdownLink": {
151
+ "dark": "darkCyan",
152
+ "light": "lightCyan"
153
+ },
154
+ "markdownLinkText": {
155
+ "dark": "darkPurple",
156
+ "light": "lightPurple"
157
+ },
158
+ "markdownCode": {
159
+ "dark": "darkGreen",
160
+ "light": "lightGreen"
161
+ },
162
+ "markdownBlockQuote": {
163
+ "dark": "darkFgMuted",
164
+ "light": "lightFgMuted"
165
+ },
166
+ "markdownEmph": {
167
+ "dark": "darkYellow",
168
+ "light": "lightYellow"
169
+ },
170
+ "markdownStrong": {
171
+ "dark": "darkOrange",
172
+ "light": "lightOrange"
173
+ },
174
+ "markdownHorizontalRule": {
175
+ "dark": "#37474f",
176
+ "light": "#e0e0e0"
177
+ },
178
+ "markdownListItem": {
179
+ "dark": "darkBlue",
180
+ "light": "lightBlue"
181
+ },
182
+ "markdownListEnumeration": {
183
+ "dark": "darkCyan",
184
+ "light": "lightCyan"
185
+ },
186
+ "markdownImage": {
187
+ "dark": "darkCyan",
188
+ "light": "lightCyan"
189
+ },
190
+ "markdownImageText": {
191
+ "dark": "darkPurple",
192
+ "light": "lightPurple"
193
+ },
194
+ "markdownCodeBlock": {
195
+ "dark": "darkFg",
196
+ "light": "lightFg"
197
+ },
198
+ "syntaxComment": {
199
+ "dark": "darkFgMuted",
200
+ "light": "lightFgMuted"
201
+ },
202
+ "syntaxKeyword": {
203
+ "dark": "darkPurple",
204
+ "light": "lightPurple"
205
+ },
206
+ "syntaxFunction": {
207
+ "dark": "darkBlue",
208
+ "light": "lightBlue"
209
+ },
210
+ "syntaxVariable": {
211
+ "dark": "darkFg",
212
+ "light": "lightFg"
213
+ },
214
+ "syntaxString": {
215
+ "dark": "darkGreen",
216
+ "light": "lightGreen"
217
+ },
218
+ "syntaxNumber": {
219
+ "dark": "darkOrange",
220
+ "light": "lightOrange"
221
+ },
222
+ "syntaxType": {
223
+ "dark": "darkYellow",
224
+ "light": "lightYellow"
225
+ },
226
+ "syntaxOperator": {
227
+ "dark": "darkCyan",
228
+ "light": "lightCyan"
229
+ },
230
+ "syntaxPunctuation": {
231
+ "dark": "darkFg",
232
+ "light": "lightFg"
233
+ }
234
+ }
235
+ }
@@ -0,0 +1,77 @@
1
+ {
2
+ "$schema": "https://opencode.ai/theme.json",
3
+ "defs": {
4
+ "matrixInk0": "#0a0e0a",
5
+ "matrixInk1": "#0e130d",
6
+ "matrixInk2": "#141c12",
7
+ "matrixInk3": "#1e2a1b",
8
+ "rainGreen": "#2eff6a",
9
+ "rainGreenDim": "#1cc24b",
10
+ "rainGreenHi": "#62ff94",
11
+ "rainCyan": "#00efff",
12
+ "rainTeal": "#24f6d9",
13
+ "rainPurple": "#c770ff",
14
+ "rainOrange": "#ffa83d",
15
+ "alertRed": "#ff4b4b",
16
+ "alertYellow": "#e6ff57",
17
+ "alertBlue": "#30b3ff",
18
+ "rainGray": "#8ca391",
19
+ "lightBg": "#eef3ea",
20
+ "lightPaper": "#e4ebe1",
21
+ "lightInk1": "#dae1d7",
22
+ "lightText": "#203022",
23
+ "lightGray": "#748476"
24
+ },
25
+ "theme": {
26
+ "primary": { "dark": "rainGreen", "light": "rainGreenDim" },
27
+ "secondary": { "dark": "rainCyan", "light": "rainTeal" },
28
+ "accent": { "dark": "rainPurple", "light": "rainPurple" },
29
+ "error": { "dark": "alertRed", "light": "alertRed" },
30
+ "warning": { "dark": "alertYellow", "light": "alertYellow" },
31
+ "success": { "dark": "rainGreenHi", "light": "rainGreenDim" },
32
+ "info": { "dark": "alertBlue", "light": "alertBlue" },
33
+ "text": { "dark": "rainGreenHi", "light": "lightText" },
34
+ "textMuted": { "dark": "rainGray", "light": "lightGray" },
35
+ "background": { "dark": "matrixInk0", "light": "lightBg" },
36
+ "backgroundPanel": { "dark": "matrixInk1", "light": "lightPaper" },
37
+ "backgroundElement": { "dark": "matrixInk2", "light": "lightInk1" },
38
+ "border": { "dark": "matrixInk3", "light": "lightGray" },
39
+ "borderActive": { "dark": "rainGreen", "light": "rainGreenDim" },
40
+ "borderSubtle": { "dark": "matrixInk2", "light": "lightInk1" },
41
+ "diffAdded": { "dark": "rainGreenDim", "light": "rainGreenDim" },
42
+ "diffRemoved": { "dark": "alertRed", "light": "alertRed" },
43
+ "diffContext": { "dark": "rainGray", "light": "lightGray" },
44
+ "diffHunkHeader": { "dark": "alertBlue", "light": "alertBlue" },
45
+ "diffHighlightAdded": { "dark": "#77ffaf", "light": "#5dac7e" },
46
+ "diffHighlightRemoved": { "dark": "#ff7171", "light": "#d53a3a" },
47
+ "diffAddedBg": { "dark": "#132616", "light": "#e0efde" },
48
+ "diffRemovedBg": { "dark": "#261212", "light": "#f9e5e5" },
49
+ "diffContextBg": { "dark": "matrixInk1", "light": "lightPaper" },
50
+ "diffLineNumber": { "dark": "textMuted", "light": "#556156" },
51
+ "diffAddedLineNumberBg": { "dark": "#0f1b11", "light": "#d6e7d2" },
52
+ "diffRemovedLineNumberBg": { "dark": "#1b1414", "light": "#f2d2d2" },
53
+ "markdownText": { "dark": "rainGreenHi", "light": "lightText" },
54
+ "markdownHeading": { "dark": "rainCyan", "light": "rainTeal" },
55
+ "markdownLink": { "dark": "alertBlue", "light": "alertBlue" },
56
+ "markdownLinkText": { "dark": "rainTeal", "light": "rainTeal" },
57
+ "markdownCode": { "dark": "rainGreenDim", "light": "rainGreenDim" },
58
+ "markdownBlockQuote": { "dark": "rainGray", "light": "lightGray" },
59
+ "markdownEmph": { "dark": "rainOrange", "light": "rainOrange" },
60
+ "markdownStrong": { "dark": "alertYellow", "light": "alertYellow" },
61
+ "markdownHorizontalRule": { "dark": "rainGray", "light": "lightGray" },
62
+ "markdownListItem": { "dark": "alertBlue", "light": "alertBlue" },
63
+ "markdownListEnumeration": { "dark": "rainTeal", "light": "rainTeal" },
64
+ "markdownImage": { "dark": "alertBlue", "light": "alertBlue" },
65
+ "markdownImageText": { "dark": "rainTeal", "light": "rainTeal" },
66
+ "markdownCodeBlock": { "dark": "rainGreenHi", "light": "lightText" },
67
+ "syntaxComment": { "dark": "rainGray", "light": "lightGray" },
68
+ "syntaxKeyword": { "dark": "rainPurple", "light": "rainPurple" },
69
+ "syntaxFunction": { "dark": "alertBlue", "light": "alertBlue" },
70
+ "syntaxVariable": { "dark": "rainGreenHi", "light": "lightText" },
71
+ "syntaxString": { "dark": "rainGreenDim", "light": "rainGreenDim" },
72
+ "syntaxNumber": { "dark": "rainOrange", "light": "rainOrange" },
73
+ "syntaxType": { "dark": "alertYellow", "light": "alertYellow" },
74
+ "syntaxOperator": { "dark": "rainTeal", "light": "rainTeal" },
75
+ "syntaxPunctuation": { "dark": "rainGreenHi", "light": "lightText" }
76
+ }
77
+ }
@@ -0,0 +1,252 @@
1
+ {
2
+ "$schema": "https://opencode.ai/theme.json",
3
+ "defs": {
4
+ "purple-800": "#3442a6",
5
+ "purple-700": "#465bd1",
6
+ "purple-600": "#5266eb",
7
+ "purple-400": "#8da4f5",
8
+ "purple-300": "#a7b6f8",
9
+
10
+ "red-700": "#b0175f",
11
+ "red-600": "#d03275",
12
+ "red-400": "#fc92b4",
13
+
14
+ "green-700": "#036e43",
15
+ "green-600": "#188554",
16
+ "green-400": "#77c599",
17
+
18
+ "orange-700": "#a44200",
19
+ "orange-600": "#c45000",
20
+ "orange-400": "#fc9b6f",
21
+
22
+ "blue-600": "#007f95",
23
+ "blue-400": "#77becf",
24
+
25
+ "neutral-1000": "#10101a",
26
+ "neutral-950": "#171721",
27
+ "neutral-900": "#1e1e2a",
28
+ "neutral-800": "#272735",
29
+ "neutral-700": "#363644",
30
+ "neutral-600": "#535461",
31
+ "neutral-500": "#70707d",
32
+ "neutral-400": "#9d9da8",
33
+ "neutral-300": "#c3c3cc",
34
+ "neutral-200": "#dddde5",
35
+ "neutral-100": "#f4f5f9",
36
+ "neutral-050": "#fbfcfd",
37
+ "neutral-000": "#ffffff",
38
+ "neutral-150": "#ededf3",
39
+
40
+ "border-light": "#7073931a",
41
+ "border-light-subtle": "#7073930f",
42
+ "border-dark": "#b4b7c81f",
43
+ "border-dark-subtle": "#b4b7c814",
44
+
45
+ "diff-added-light": "#1885541a",
46
+ "diff-removed-light": "#d032751a",
47
+ "diff-added-dark": "#77c59933",
48
+ "diff-removed-dark": "#fc92b433"
49
+ },
50
+ "theme": {
51
+ "primary": {
52
+ "light": "purple-600",
53
+ "dark": "purple-400"
54
+ },
55
+ "secondary": {
56
+ "light": "purple-700",
57
+ "dark": "purple-300"
58
+ },
59
+ "accent": {
60
+ "light": "purple-400",
61
+ "dark": "purple-400"
62
+ },
63
+ "error": {
64
+ "light": "red-700",
65
+ "dark": "red-400"
66
+ },
67
+ "warning": {
68
+ "light": "orange-700",
69
+ "dark": "orange-400"
70
+ },
71
+ "success": {
72
+ "light": "green-700",
73
+ "dark": "green-400"
74
+ },
75
+ "info": {
76
+ "light": "blue-600",
77
+ "dark": "blue-400"
78
+ },
79
+ "text": {
80
+ "light": "neutral-700",
81
+ "dark": "neutral-200"
82
+ },
83
+ "textMuted": {
84
+ "light": "neutral-500",
85
+ "dark": "neutral-400"
86
+ },
87
+ "background": {
88
+ "light": "neutral-000",
89
+ "dark": "neutral-950"
90
+ },
91
+ "backgroundPanel": {
92
+ "light": "neutral-050",
93
+ "dark": "neutral-1000"
94
+ },
95
+ "backgroundElement": {
96
+ "light": "neutral-100",
97
+ "dark": "neutral-800"
98
+ },
99
+ "border": {
100
+ "light": "border-light",
101
+ "dark": "border-dark"
102
+ },
103
+ "borderActive": {
104
+ "light": "purple-600",
105
+ "dark": "purple-400"
106
+ },
107
+ "borderSubtle": {
108
+ "light": "border-light-subtle",
109
+ "dark": "border-dark-subtle"
110
+ },
111
+ "diffAdded": {
112
+ "light": "green-700",
113
+ "dark": "green-400"
114
+ },
115
+ "diffRemoved": {
116
+ "light": "red-700",
117
+ "dark": "red-400"
118
+ },
119
+ "diffContext": {
120
+ "light": "neutral-500",
121
+ "dark": "neutral-400"
122
+ },
123
+ "diffHunkHeader": {
124
+ "light": "neutral-500",
125
+ "dark": "neutral-400"
126
+ },
127
+ "diffHighlightAdded": {
128
+ "light": "green-700",
129
+ "dark": "green-400"
130
+ },
131
+ "diffHighlightRemoved": {
132
+ "light": "red-700",
133
+ "dark": "red-400"
134
+ },
135
+ "diffAddedBg": {
136
+ "light": "diff-added-light",
137
+ "dark": "diff-added-dark"
138
+ },
139
+ "diffRemovedBg": {
140
+ "light": "diff-removed-light",
141
+ "dark": "diff-removed-dark"
142
+ },
143
+ "diffContextBg": {
144
+ "light": "neutral-050",
145
+ "dark": "neutral-900"
146
+ },
147
+ "diffLineNumber": {
148
+ "light": "neutral-600",
149
+ "dark": "neutral-300"
150
+ },
151
+ "diffAddedLineNumberBg": {
152
+ "light": "diff-added-light",
153
+ "dark": "diff-added-dark"
154
+ },
155
+ "diffRemovedLineNumberBg": {
156
+ "light": "diff-removed-light",
157
+ "dark": "diff-removed-dark"
158
+ },
159
+ "markdownText": {
160
+ "light": "neutral-700",
161
+ "dark": "neutral-200"
162
+ },
163
+ "markdownHeading": {
164
+ "light": "neutral-900",
165
+ "dark": "neutral-000"
166
+ },
167
+ "markdownLink": {
168
+ "light": "purple-700",
169
+ "dark": "purple-400"
170
+ },
171
+ "markdownLinkText": {
172
+ "light": "purple-600",
173
+ "dark": "purple-300"
174
+ },
175
+ "markdownCode": {
176
+ "light": "green-700",
177
+ "dark": "green-400"
178
+ },
179
+ "markdownBlockQuote": {
180
+ "light": "neutral-500",
181
+ "dark": "neutral-400"
182
+ },
183
+ "markdownEmph": {
184
+ "light": "orange-700",
185
+ "dark": "orange-400"
186
+ },
187
+ "markdownStrong": {
188
+ "light": "neutral-900",
189
+ "dark": "neutral-100"
190
+ },
191
+ "markdownHorizontalRule": {
192
+ "light": "border-light",
193
+ "dark": "border-dark"
194
+ },
195
+ "markdownListItem": {
196
+ "light": "neutral-900",
197
+ "dark": "neutral-000"
198
+ },
199
+ "markdownListEnumeration": {
200
+ "light": "purple-600",
201
+ "dark": "purple-400"
202
+ },
203
+ "markdownImage": {
204
+ "light": "purple-700",
205
+ "dark": "purple-400"
206
+ },
207
+ "markdownImageText": {
208
+ "light": "purple-600",
209
+ "dark": "purple-300"
210
+ },
211
+ "markdownCodeBlock": {
212
+ "light": "neutral-700",
213
+ "dark": "neutral-200"
214
+ },
215
+ "syntaxComment": {
216
+ "light": "neutral-500",
217
+ "dark": "neutral-400"
218
+ },
219
+ "syntaxKeyword": {
220
+ "light": "purple-700",
221
+ "dark": "purple-400"
222
+ },
223
+ "syntaxFunction": {
224
+ "light": "purple-600",
225
+ "dark": "purple-400"
226
+ },
227
+ "syntaxVariable": {
228
+ "light": "blue-600",
229
+ "dark": "blue-400"
230
+ },
231
+ "syntaxString": {
232
+ "light": "green-700",
233
+ "dark": "green-400"
234
+ },
235
+ "syntaxNumber": {
236
+ "light": "orange-700",
237
+ "dark": "orange-400"
238
+ },
239
+ "syntaxType": {
240
+ "light": "blue-600",
241
+ "dark": "blue-400"
242
+ },
243
+ "syntaxOperator": {
244
+ "light": "purple-700",
245
+ "dark": "purple-400"
246
+ },
247
+ "syntaxPunctuation": {
248
+ "light": "neutral-700",
249
+ "dark": "neutral-200"
250
+ }
251
+ }
252
+ }