GeezerVison is showing github.com — feat(app): missing themes (#17275) · makeone/opencode@5576662
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .gitignore +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -17,7 +17,7 @@ ts-dist | 17 | 17 | /result | 18 | 18 | refs | 19 | 19 | Session.vim | 20 | | -opencode.json | | 20 | +/opencode.json | 21 | 21 | a.out | 22 | 22 | target | 23 | 23 | .scripts | |
Collapse file Copy file name to clipboard +81-18Lines changed: 81 additions & 18 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | import type { DesktopTheme } from "./types" | 2 | 2 | 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" | 4 | 12 | 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" | 5 | 22 | import monokaiThemeJson from "./themes/monokai.json" | 6 | | -import solarizedThemeJson from "./themes/solarized.json" | | 23 | +import nightowlThemeJson from "./themes/nightowl.json" | 7 | 24 | 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" | 10 | 26 | 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" | 11 | 32 | 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" | 13 | 37 | 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" | 18 | 39 |
| 19 | 40 | 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 | 21 | 50 | 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 | 22 | 60 | export const monokaiTheme = monokaiThemeJson as DesktopTheme | 23 | | -export const solarizedTheme = solarizedThemeJson as DesktopTheme | | 61 | +export const nightowlTheme = nightowlThemeJson as DesktopTheme | 24 | 62 | 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 | 27 | 64 | 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 | 28 | 70 | 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 | 30 | 75 | 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 | 35 | 77 |
| 36 | 78 | export const DEFAULT_THEMES: Record<string, DesktopTheme> = { | 37 | 79 | "oc-2": oc2Theme, | @@ -40,14 +82,35 @@ export const DEFAULT_THEMES: Record<string, DesktopTheme> = { | 40 | 82 | ayu: ayuTheme, | 41 | 83 | carbonfox: carbonfoxTheme, | 42 | 84 | catppuccin: catppuccinTheme, | | 85 | + "catppuccin-frappe": catppuccinFrappeTheme, | | 86 | + "catppuccin-macchiato": catppuccinMacchiatoTheme, | | 87 | + cobalt2: cobalt2Theme, | | 88 | + cursor: cursorTheme, | 43 | 89 | dracula: draculaTheme, | | 90 | + everforest: everforestTheme, | | 91 | + flexoki: flexokiTheme, | | 92 | + github: githubTheme, | 44 | 93 | gruvbox: gruvboxTheme, | | 94 | + kanagawa: kanagawaTheme, | | 95 | + "lucent-orng": lucentOrngTheme, | | 96 | + material: materialTheme, | | 97 | + matrix: matrixTheme, | | 98 | + mercury: mercuryTheme, | 45 | 99 | monokai: monokaiTheme, | 46 | 100 | nightowl: nightowlTheme, | 47 | 101 | nord: nordTheme, | | 102 | + "one-dark": oneDarkTheme, | 48 | 103 | onedarkpro: oneDarkProTheme, | | 104 | + opencode: opencodeTheme, | | 105 | + orng: orngTheme, | | 106 | + "osaka-jade": osakaJadeTheme, | | 107 | + palenight: palenightTheme, | | 108 | + rosepine: rosepineTheme, | 49 | 109 | shadesofpurple: shadesOfPurpleTheme, | 50 | 110 | solarized: solarizedTheme, | | 111 | + synthwave84: synthwave84Theme, | 51 | 112 | tokyonight: tokyonightTheme, | | 113 | + vercel: vercelTheme, | 52 | 114 | vesper: vesperTheme, | | 115 | + zenburn: zenburnTheme, | 53 | 116 | } |
Collapse file Copy file name to clipboardExpand all lines: packages/ui/src/theme/index.ts +30-5Lines changed: 30 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -36,15 +36,40 @@ export { ThemeProvider, useTheme, type ColorScheme } from "./context" | 36 | 36 | export { | 37 | 37 | DEFAULT_THEMES, | 38 | 38 | oc2Theme, | 39 | | - tokyonightTheme, | | 39 | + amoledTheme, | | 40 | + auraTheme, | | 41 | + ayuTheme, | | 42 | + carbonfoxTheme, | | 43 | + catppuccinTheme, | | 44 | + catppuccinFrappeTheme, | | 45 | + catppuccinMacchiatoTheme, | | 46 | + cobalt2Theme, | | 47 | + cursorTheme, | 40 | 48 | draculaTheme, | | 49 | + everforestTheme, | | 50 | + flexokiTheme, | | 51 | + githubTheme, | | 52 | + gruvboxTheme, | | 53 | + kanagawaTheme, | | 54 | + lucentOrngTheme, | | 55 | + materialTheme, | | 56 | + matrixTheme, | | 57 | + mercuryTheme, | 41 | 58 | monokaiTheme, | 42 | | - solarizedTheme, | | 59 | + nightowlTheme, | 43 | 60 | nordTheme, | 44 | | - catppuccinTheme, | 45 | | - ayuTheme, | | 61 | + oneDarkTheme, | 46 | 62 | oneDarkProTheme, | | 63 | + opencodeTheme, | | 64 | + orngTheme, | | 65 | + osakaJadeTheme, | | 66 | + palenightTheme, | | 67 | + rosepineTheme, | 47 | 68 | shadesOfPurpleTheme, | 48 | | - nightowlTheme, | | 69 | + solarizedTheme, | | 70 | + synthwave84Theme, | | 71 | + tokyonightTheme, | | 72 | + vercelTheme, | 49 | 73 | vesperTheme, | | 74 | + zenburnTheme, | 50 | 75 | } from "./default-themes" |
Collapse file Copy file name to clipboard +85Lines changed: 85 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 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 | +} |
Collapse file Copy file name to clipboard +85Lines changed: 85 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 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 | +} |
|