Skip to content

Commit 5576662

Browse files
authored
feat(app): missing themes (#17275)
1 parent 4a2a046 commit 5576662

24 files changed

Lines changed: 1947 additions & 24 deletions

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ts-dist
1717
/result
1818
refs
1919
Session.vim
20-
opencode.json
20+
/opencode.json
2121
a.out
2222
target
2323
.scripts
Lines changed: 81 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,79 @@
11
import type { DesktopTheme } from "./types"
22
import oc2ThemeJson from "./themes/oc-2.json"
3-
import tokyoThemeJson from "./themes/tokyonight.json"
3+
import amoledThemeJson from "./themes/amoled.json"
4+
import auraThemeJson from "./themes/aura.json"
5+
import ayuThemeJson from "./themes/ayu.json"
6+
import carbonfoxThemeJson from "./themes/carbonfox.json"
7+
import catppuccinThemeJson from "./themes/catppuccin.json"
8+
import catppuccinFrappeThemeJson from "./themes/catppuccin-frappe.json"
9+
import catppuccinMacchiatoThemeJson from "./themes/catppuccin-macchiato.json"
10+
import cobalt2ThemeJson from "./themes/cobalt2.json"
11+
import cursorThemeJson from "./themes/cursor.json"
412
import draculaThemeJson from "./themes/dracula.json"
13+
import everforestThemeJson from "./themes/everforest.json"
14+
import flexokiThemeJson from "./themes/flexoki.json"
15+
import githubThemeJson from "./themes/github.json"
16+
import gruvboxThemeJson from "./themes/gruvbox.json"
17+
import kanagawaThemeJson from "./themes/kanagawa.json"
18+
import lucentOrngThemeJson from "./themes/lucent-orng.json"
19+
import materialThemeJson from "./themes/material.json"
20+
import matrixThemeJson from "./themes/matrix.json"
21+
import mercuryThemeJson from "./themes/mercury.json"
522
import monokaiThemeJson from "./themes/monokai.json"
6-
import solarizedThemeJson from "./themes/solarized.json"
23+
import nightowlThemeJson from "./themes/nightowl.json"
724
import nordThemeJson from "./themes/nord.json"
8-
import catppuccinThemeJson from "./themes/catppuccin.json"
9-
import ayuThemeJson from "./themes/ayu.json"
25+
import oneDarkThemeJson from "./themes/one-dark.json"
1026
import oneDarkProThemeJson from "./themes/onedarkpro.json"
27+
import opencodeThemeJson from "./themes/opencode.json"
28+
import orngThemeJson from "./themes/orng.json"
29+
import osakaJadeThemeJson from "./themes/osaka-jade.json"
30+
import palenightThemeJson from "./themes/palenight.json"
31+
import rosepineThemeJson from "./themes/rosepine.json"
1132
import shadesOfPurpleThemeJson from "./themes/shadesofpurple.json"
12-
import nightowlThemeJson from "./themes/nightowl.json"
33+
import solarizedThemeJson from "./themes/solarized.json"
34+
import synthwave84ThemeJson from "./themes/synthwave84.json"
35+
import tokyonightThemeJson from "./themes/tokyonight.json"
36+
import vercelThemeJson from "./themes/vercel.json"
1337
import vesperThemeJson from "./themes/vesper.json"
14-
import carbonfoxThemeJson from "./themes/carbonfox.json"
15-
import gruvboxThemeJson from "./themes/gruvbox.json"
16-
import auraThemeJson from "./themes/aura.json"
17-
import amoledThemeJson from "./themes/amoled.json"
38+
import zenburnThemeJson from "./themes/zenburn.json"
1839

1940
export const oc2Theme = oc2ThemeJson as DesktopTheme
20-
export const tokyonightTheme = tokyoThemeJson as DesktopTheme
41+
export const amoledTheme = amoledThemeJson as DesktopTheme
42+
export const auraTheme = auraThemeJson as DesktopTheme
43+
export const ayuTheme = ayuThemeJson as DesktopTheme
44+
export const carbonfoxTheme = carbonfoxThemeJson as DesktopTheme
45+
export const catppuccinTheme = catppuccinThemeJson as DesktopTheme
46+
export const catppuccinFrappeTheme = catppuccinFrappeThemeJson as DesktopTheme
47+
export const catppuccinMacchiatoTheme = catppuccinMacchiatoThemeJson as DesktopTheme
48+
export const cobalt2Theme = cobalt2ThemeJson as DesktopTheme
49+
export const cursorTheme = cursorThemeJson as DesktopTheme
2150
export const draculaTheme = draculaThemeJson as DesktopTheme
51+
export const everforestTheme = everforestThemeJson as DesktopTheme
52+
export const flexokiTheme = flexokiThemeJson as DesktopTheme
53+
export const githubTheme = githubThemeJson as DesktopTheme
54+
export const gruvboxTheme = gruvboxThemeJson as DesktopTheme
55+
export const kanagawaTheme = kanagawaThemeJson as DesktopTheme
56+
export const lucentOrngTheme = lucentOrngThemeJson as DesktopTheme
57+
export const materialTheme = materialThemeJson as DesktopTheme
58+
export const matrixTheme = matrixThemeJson as DesktopTheme
59+
export const mercuryTheme = mercuryThemeJson as DesktopTheme
2260
export const monokaiTheme = monokaiThemeJson as DesktopTheme
23-
export const solarizedTheme = solarizedThemeJson as DesktopTheme
61+
export const nightowlTheme = nightowlThemeJson as DesktopTheme
2462
export const nordTheme = nordThemeJson as DesktopTheme
25-
export const catppuccinTheme = catppuccinThemeJson as DesktopTheme
26-
export const ayuTheme = ayuThemeJson as DesktopTheme
63+
export const oneDarkTheme = oneDarkThemeJson as DesktopTheme
2764
export const oneDarkProTheme = oneDarkProThemeJson as DesktopTheme
65+
export const opencodeTheme = opencodeThemeJson as DesktopTheme
66+
export const orngTheme = orngThemeJson as DesktopTheme
67+
export const osakaJadeTheme = osakaJadeThemeJson as DesktopTheme
68+
export const palenightTheme = palenightThemeJson as DesktopTheme
69+
export const rosepineTheme = rosepineThemeJson as DesktopTheme
2870
export const shadesOfPurpleTheme = shadesOfPurpleThemeJson as DesktopTheme
29-
export const nightowlTheme = nightowlThemeJson as DesktopTheme
71+
export const solarizedTheme = solarizedThemeJson as DesktopTheme
72+
export const synthwave84Theme = synthwave84ThemeJson as DesktopTheme
73+
export const tokyonightTheme = tokyonightThemeJson as DesktopTheme
74+
export const vercelTheme = vercelThemeJson as DesktopTheme
3075
export const vesperTheme = vesperThemeJson as DesktopTheme
31-
export const carbonfoxTheme = carbonfoxThemeJson as DesktopTheme
32-
export const gruvboxTheme = gruvboxThemeJson as DesktopTheme
33-
export const auraTheme = auraThemeJson as DesktopTheme
34-
export const amoledTheme = amoledThemeJson as DesktopTheme
76+
export const zenburnTheme = zenburnThemeJson as DesktopTheme
3577

3678
export const DEFAULT_THEMES: Record<string, DesktopTheme> = {
3779
"oc-2": oc2Theme,
@@ -40,14 +82,35 @@ export const DEFAULT_THEMES: Record<string, DesktopTheme> = {
4082
ayu: ayuTheme,
4183
carbonfox: carbonfoxTheme,
4284
catppuccin: catppuccinTheme,
85+
"catppuccin-frappe": catppuccinFrappeTheme,
86+
"catppuccin-macchiato": catppuccinMacchiatoTheme,
87+
cobalt2: cobalt2Theme,
88+
cursor: cursorTheme,
4389
dracula: draculaTheme,
90+
everforest: everforestTheme,
91+
flexoki: flexokiTheme,
92+
github: githubTheme,
4493
gruvbox: gruvboxTheme,
94+
kanagawa: kanagawaTheme,
95+
"lucent-orng": lucentOrngTheme,
96+
material: materialTheme,
97+
matrix: matrixTheme,
98+
mercury: mercuryTheme,
4599
monokai: monokaiTheme,
46100
nightowl: nightowlTheme,
47101
nord: nordTheme,
102+
"one-dark": oneDarkTheme,
48103
onedarkpro: oneDarkProTheme,
104+
opencode: opencodeTheme,
105+
orng: orngTheme,
106+
"osaka-jade": osakaJadeTheme,
107+
palenight: palenightTheme,
108+
rosepine: rosepineTheme,
49109
shadesofpurple: shadesOfPurpleTheme,
50110
solarized: solarizedTheme,
111+
synthwave84: synthwave84Theme,
51112
tokyonight: tokyonightTheme,
113+
vercel: vercelTheme,
52114
vesper: vesperTheme,
115+
zenburn: zenburnTheme,
53116
}

packages/ui/src/theme/index.ts

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,40 @@ export { ThemeProvider, useTheme, type ColorScheme } from "./context"
3636
export {
3737
DEFAULT_THEMES,
3838
oc2Theme,
39-
tokyonightTheme,
39+
amoledTheme,
40+
auraTheme,
41+
ayuTheme,
42+
carbonfoxTheme,
43+
catppuccinTheme,
44+
catppuccinFrappeTheme,
45+
catppuccinMacchiatoTheme,
46+
cobalt2Theme,
47+
cursorTheme,
4048
draculaTheme,
49+
everforestTheme,
50+
flexokiTheme,
51+
githubTheme,
52+
gruvboxTheme,
53+
kanagawaTheme,
54+
lucentOrngTheme,
55+
materialTheme,
56+
matrixTheme,
57+
mercuryTheme,
4158
monokaiTheme,
42-
solarizedTheme,
59+
nightowlTheme,
4360
nordTheme,
44-
catppuccinTheme,
45-
ayuTheme,
61+
oneDarkTheme,
4662
oneDarkProTheme,
63+
opencodeTheme,
64+
orngTheme,
65+
osakaJadeTheme,
66+
palenightTheme,
67+
rosepineTheme,
4768
shadesOfPurpleTheme,
48-
nightowlTheme,
69+
solarizedTheme,
70+
synthwave84Theme,
71+
tokyonightTheme,
72+
vercelTheme,
4973
vesperTheme,
74+
zenburnTheme,
5075
} from "./default-themes"
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"$schema": "https://opencode.ai/desktop-theme.json",
3+
"name": "Catppuccin Frappe",
4+
"id": "catppuccin-frappe",
5+
"light": {
6+
"palette": {
7+
"neutral": "#303446",
8+
"ink": "#c6d0f5",
9+
"primary": "#8da4e2",
10+
"accent": "#f4b8e4",
11+
"success": "#a6d189",
12+
"warning": "#e5c890",
13+
"error": "#e78284",
14+
"info": "#81c8be"
15+
},
16+
"overrides": {
17+
"text-weak": "#b5bfe2",
18+
"syntax-comment": "#949cb8",
19+
"syntax-keyword": "#ca9ee6",
20+
"syntax-string": "#a6d189",
21+
"syntax-primitive": "#8da4e2",
22+
"syntax-variable": "#e78284",
23+
"syntax-property": "#99d1db",
24+
"syntax-type": "#e5c890",
25+
"syntax-constant": "#ef9f76",
26+
"syntax-operator": "#99d1db",
27+
"syntax-punctuation": "#c6d0f5",
28+
"syntax-object": "#e78284",
29+
"markdown-heading": "#ca9ee6",
30+
"markdown-text": "#c6d0f5",
31+
"markdown-link": "#8da4e2",
32+
"markdown-link-text": "#99d1db",
33+
"markdown-code": "#a6d189",
34+
"markdown-block-quote": "#e5c890",
35+
"markdown-emph": "#e5c890",
36+
"markdown-strong": "#ef9f76",
37+
"markdown-horizontal-rule": "#a5adce",
38+
"markdown-list-item": "#8da4e2",
39+
"markdown-list-enumeration": "#99d1db",
40+
"markdown-image": "#8da4e2",
41+
"markdown-image-text": "#99d1db",
42+
"markdown-code-block": "#c6d0f5"
43+
}
44+
},
45+
"dark": {
46+
"palette": {
47+
"neutral": "#303446",
48+
"ink": "#c6d0f5",
49+
"primary": "#8da4e2",
50+
"accent": "#f4b8e4",
51+
"success": "#a6d189",
52+
"warning": "#e5c890",
53+
"error": "#e78284",
54+
"info": "#81c8be"
55+
},
56+
"overrides": {
57+
"text-weak": "#b5bfe2",
58+
"syntax-comment": "#949cb8",
59+
"syntax-keyword": "#ca9ee6",
60+
"syntax-string": "#a6d189",
61+
"syntax-primitive": "#8da4e2",
62+
"syntax-variable": "#e78284",
63+
"syntax-property": "#99d1db",
64+
"syntax-type": "#e5c890",
65+
"syntax-constant": "#ef9f76",
66+
"syntax-operator": "#99d1db",
67+
"syntax-punctuation": "#c6d0f5",
68+
"syntax-object": "#e78284",
69+
"markdown-heading": "#ca9ee6",
70+
"markdown-text": "#c6d0f5",
71+
"markdown-link": "#8da4e2",
72+
"markdown-link-text": "#99d1db",
73+
"markdown-code": "#a6d189",
74+
"markdown-block-quote": "#e5c890",
75+
"markdown-emph": "#e5c890",
76+
"markdown-strong": "#ef9f76",
77+
"markdown-horizontal-rule": "#a5adce",
78+
"markdown-list-item": "#8da4e2",
79+
"markdown-list-enumeration": "#99d1db",
80+
"markdown-image": "#8da4e2",
81+
"markdown-image-text": "#99d1db",
82+
"markdown-code-block": "#c6d0f5"
83+
}
84+
}
85+
}
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"$schema": "https://opencode.ai/desktop-theme.json",
3+
"name": "Catppuccin Macchiato",
4+
"id": "catppuccin-macchiato",
5+
"light": {
6+
"palette": {
7+
"neutral": "#24273a",
8+
"ink": "#cad3f5",
9+
"primary": "#8aadf4",
10+
"accent": "#f5bde6",
11+
"success": "#a6da95",
12+
"warning": "#eed49f",
13+
"error": "#ed8796",
14+
"info": "#8bd5ca"
15+
},
16+
"overrides": {
17+
"text-weak": "#b8c0e0",
18+
"syntax-comment": "#939ab7",
19+
"syntax-keyword": "#c6a0f6",
20+
"syntax-string": "#a6da95",
21+
"syntax-primitive": "#8aadf4",
22+
"syntax-variable": "#ed8796",
23+
"syntax-property": "#91d7e3",
24+
"syntax-type": "#eed49f",
25+
"syntax-constant": "#f5a97f",
26+
"syntax-operator": "#91d7e3",
27+
"syntax-punctuation": "#cad3f5",
28+
"syntax-object": "#ed8796",
29+
"markdown-heading": "#c6a0f6",
30+
"markdown-text": "#cad3f5",
31+
"markdown-link": "#8aadf4",
32+
"markdown-link-text": "#91d7e3",
33+
"markdown-code": "#a6da95",
34+
"markdown-block-quote": "#eed49f",
35+
"markdown-emph": "#eed49f",
36+
"markdown-strong": "#f5a97f",
37+
"markdown-horizontal-rule": "#a5adcb",
38+
"markdown-list-item": "#8aadf4",
39+
"markdown-list-enumeration": "#91d7e3",
40+
"markdown-image": "#8aadf4",
41+
"markdown-image-text": "#91d7e3",
42+
"markdown-code-block": "#cad3f5"
43+
}
44+
},
45+
"dark": {
46+
"palette": {
47+
"neutral": "#24273a",
48+
"ink": "#cad3f5",
49+
"primary": "#8aadf4",
50+
"accent": "#f5bde6",
51+
"success": "#a6da95",
52+
"warning": "#eed49f",
53+
"error": "#ed8796",
54+
"info": "#8bd5ca"
55+
},
56+
"overrides": {
57+
"text-weak": "#b8c0e0",
58+
"syntax-comment": "#939ab7",
59+
"syntax-keyword": "#c6a0f6",
60+
"syntax-string": "#a6da95",
61+
"syntax-primitive": "#8aadf4",
62+
"syntax-variable": "#ed8796",
63+
"syntax-property": "#91d7e3",
64+
"syntax-type": "#eed49f",
65+
"syntax-constant": "#f5a97f",
66+
"syntax-operator": "#91d7e3",
67+
"syntax-punctuation": "#cad3f5",
68+
"syntax-object": "#ed8796",
69+
"markdown-heading": "#c6a0f6",
70+
"markdown-text": "#cad3f5",
71+
"markdown-link": "#8aadf4",
72+
"markdown-link-text": "#91d7e3",
73+
"markdown-code": "#a6da95",
74+
"markdown-block-quote": "#eed49f",
75+
"markdown-emph": "#eed49f",
76+
"markdown-strong": "#f5a97f",
77+
"markdown-horizontal-rule": "#a5adcb",
78+
"markdown-list-item": "#8aadf4",
79+
"markdown-list-enumeration": "#91d7e3",
80+
"markdown-image": "#8aadf4",
81+
"markdown-image-text": "#91d7e3",
82+
"markdown-code-block": "#cad3f5"
83+
}
84+
}
85+
}

0 commit comments

Comments
 (0)