Skip to content

Commit 2f6d15a

Browse files
author
Ryan Cassidy
authored
feat: add cursor theme (anomalyco#5850)
1 parent 8ffea80 commit 2f6d15a

2 files changed

Lines changed: 251 additions & 0 deletions

File tree

packages/opencode/src/cli/cmd/tui/context/theme.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import ayu from "./theme/ayu.json" with { type: "json" }
88
import catppuccin from "./theme/catppuccin.json" with { type: "json" }
99
import catppuccinMacchiato from "./theme/catppuccin-macchiato.json" with { type: "json" }
1010
import cobalt2 from "./theme/cobalt2.json" with { type: "json" }
11+
import cursor from "./theme/cursor.json" with { type: "json" }
1112
import dracula from "./theme/dracula.json" with { type: "json" }
1213
import everforest from "./theme/everforest.json" with { type: "json" }
1314
import flexoki from "./theme/flexoki.json" with { type: "json" }
@@ -138,6 +139,7 @@ export const DEFAULT_THEMES: Record<string, ThemeJson> = {
138139
catppuccin,
139140
["catppuccin-macchiato"]: catppuccinMacchiato,
140141
cobalt2,
142+
cursor,
141143
dracula,
142144
everforest,
143145
flexoki,
Lines changed: 249 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,249 @@
1+
{
2+
"$schema": "https://opencode.ai/theme.json",
3+
"defs": {
4+
"darkBg": "#181818",
5+
"darkPanel": "#141414",
6+
"darkElement": "#262626",
7+
"darkFg": "#e4e4e4",
8+
"darkMuted": "#e4e4e45e",
9+
"darkBorder": "#e4e4e413",
10+
"darkBorderActive": "#e4e4e426",
11+
"darkCyan": "#88c0d0",
12+
"darkBlue": "#81a1c1",
13+
"darkGreen": "#3fa266",
14+
"darkGreenBright": "#70b489",
15+
"darkRed": "#e34671",
16+
"darkRedBright": "#fc6b83",
17+
"darkYellow": "#f1b467",
18+
"darkOrange": "#d2943e",
19+
"darkPink": "#E394DC",
20+
"darkPurple": "#AAA0FA",
21+
"darkTeal": "#82D2CE",
22+
"darkSyntaxYellow": "#F8C762",
23+
"darkSyntaxOrange": "#EFB080",
24+
"darkSyntaxGreen": "#A8CC7C",
25+
"darkSyntaxBlue": "#87C3FF",
26+
"lightBg": "#fcfcfc",
27+
"lightPanel": "#f3f3f3",
28+
"lightElement": "#ededed",
29+
"lightFg": "#141414",
30+
"lightMuted": "#141414ad",
31+
"lightBorder": "#14141413",
32+
"lightBorderActive": "#14141426",
33+
"lightTeal": "#6f9ba6",
34+
"lightBlue": "#3c7cab",
35+
"lightBlueDark": "#206595",
36+
"lightGreen": "#1f8a65",
37+
"lightGreenBright": "#55a583",
38+
"lightRed": "#cf2d56",
39+
"lightRedBright": "#e75e78",
40+
"lightOrange": "#db704b",
41+
"lightYellow": "#c08532",
42+
"lightPurple": "#9e94d5",
43+
"lightPurpleDark": "#6049b3",
44+
"lightPink": "#b8448b",
45+
"lightMagenta": "#b3003f"
46+
},
47+
"theme": {
48+
"primary": {
49+
"dark": "darkCyan",
50+
"light": "lightTeal"
51+
},
52+
"secondary": {
53+
"dark": "darkBlue",
54+
"light": "lightBlue"
55+
},
56+
"accent": {
57+
"dark": "darkCyan",
58+
"light": "lightTeal"
59+
},
60+
"error": {
61+
"dark": "darkRed",
62+
"light": "lightRed"
63+
},
64+
"warning": {
65+
"dark": "darkYellow",
66+
"light": "lightOrange"
67+
},
68+
"success": {
69+
"dark": "darkGreen",
70+
"light": "lightGreen"
71+
},
72+
"info": {
73+
"dark": "darkBlue",
74+
"light": "lightBlue"
75+
},
76+
"text": {
77+
"dark": "darkFg",
78+
"light": "lightFg"
79+
},
80+
"textMuted": {
81+
"dark": "darkMuted",
82+
"light": "lightMuted"
83+
},
84+
"background": {
85+
"dark": "darkBg",
86+
"light": "lightBg"
87+
},
88+
"backgroundPanel": {
89+
"dark": "darkPanel",
90+
"light": "lightPanel"
91+
},
92+
"backgroundElement": {
93+
"dark": "darkElement",
94+
"light": "lightElement"
95+
},
96+
"border": {
97+
"dark": "darkBorder",
98+
"light": "lightBorder"
99+
},
100+
"borderActive": {
101+
"dark": "darkCyan",
102+
"light": "lightTeal"
103+
},
104+
"borderSubtle": {
105+
"dark": "#0f0f0f",
106+
"light": "#e0e0e0"
107+
},
108+
"diffAdded": {
109+
"dark": "darkGreen",
110+
"light": "lightGreen"
111+
},
112+
"diffRemoved": {
113+
"dark": "darkRed",
114+
"light": "lightRed"
115+
},
116+
"diffContext": {
117+
"dark": "darkMuted",
118+
"light": "lightMuted"
119+
},
120+
"diffHunkHeader": {
121+
"dark": "darkMuted",
122+
"light": "lightMuted"
123+
},
124+
"diffHighlightAdded": {
125+
"dark": "darkGreenBright",
126+
"light": "lightGreenBright"
127+
},
128+
"diffHighlightRemoved": {
129+
"dark": "darkRedBright",
130+
"light": "lightRedBright"
131+
},
132+
"diffAddedBg": {
133+
"dark": "#3fa26633",
134+
"light": "#1f8a651f"
135+
},
136+
"diffRemovedBg": {
137+
"dark": "#b8004933",
138+
"light": "#cf2d5614"
139+
},
140+
"diffContextBg": {
141+
"dark": "darkPanel",
142+
"light": "lightPanel"
143+
},
144+
"diffLineNumber": {
145+
"dark": "#e4e4e442",
146+
"light": "#1414147a"
147+
},
148+
"diffAddedLineNumberBg": {
149+
"dark": "#3fa26633",
150+
"light": "#1f8a651f"
151+
},
152+
"diffRemovedLineNumberBg": {
153+
"dark": "#b8004933",
154+
"light": "#cf2d5614"
155+
},
156+
"markdownText": {
157+
"dark": "darkFg",
158+
"light": "lightFg"
159+
},
160+
"markdownHeading": {
161+
"dark": "darkPurple",
162+
"light": "lightBlueDark"
163+
},
164+
"markdownLink": {
165+
"dark": "darkTeal",
166+
"light": "lightBlueDark"
167+
},
168+
"markdownLinkText": {
169+
"dark": "darkBlue",
170+
"light": "lightMuted"
171+
},
172+
"markdownCode": {
173+
"dark": "darkPink",
174+
"light": "lightGreen"
175+
},
176+
"markdownBlockQuote": {
177+
"dark": "darkMuted",
178+
"light": "lightMuted"
179+
},
180+
"markdownEmph": {
181+
"dark": "darkTeal",
182+
"light": "lightFg"
183+
},
184+
"markdownStrong": {
185+
"dark": "darkSyntaxYellow",
186+
"light": "lightFg"
187+
},
188+
"markdownHorizontalRule": {
189+
"dark": "darkMuted",
190+
"light": "lightMuted"
191+
},
192+
"markdownListItem": {
193+
"dark": "darkFg",
194+
"light": "lightFg"
195+
},
196+
"markdownListEnumeration": {
197+
"dark": "darkCyan",
198+
"light": "lightMuted"
199+
},
200+
"markdownImage": {
201+
"dark": "darkCyan",
202+
"light": "lightBlueDark"
203+
},
204+
"markdownImageText": {
205+
"dark": "darkBlue",
206+
"light": "lightMuted"
207+
},
208+
"markdownCodeBlock": {
209+
"dark": "darkFg",
210+
"light": "lightFg"
211+
},
212+
"syntaxComment": {
213+
"dark": "darkMuted",
214+
"light": "lightMuted"
215+
},
216+
"syntaxKeyword": {
217+
"dark": "darkTeal",
218+
"light": "lightMagenta"
219+
},
220+
"syntaxFunction": {
221+
"dark": "darkSyntaxOrange",
222+
"light": "lightOrange"
223+
},
224+
"syntaxVariable": {
225+
"dark": "darkFg",
226+
"light": "lightFg"
227+
},
228+
"syntaxString": {
229+
"dark": "darkPink",
230+
"light": "lightPurple"
231+
},
232+
"syntaxNumber": {
233+
"dark": "darkSyntaxYellow",
234+
"light": "lightPink"
235+
},
236+
"syntaxType": {
237+
"dark": "darkSyntaxOrange",
238+
"light": "lightBlueDark"
239+
},
240+
"syntaxOperator": {
241+
"dark": "darkFg",
242+
"light": "lightFg"
243+
},
244+
"syntaxPunctuation": {
245+
"dark": "darkFg",
246+
"light": "lightFg"
247+
}
248+
}
249+
}

0 commit comments

Comments
 (0)