Skip to content

Commit 4312db8

Browse files
committed
Add Xcode theme and accent colors
1 parent e36b2f1 commit 4312db8

4 files changed

Lines changed: 416 additions & 5 deletions

File tree

anycode/hooks/useTheme.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ export const useTheme = ({ wsRef, isConnected }: UseThemeParams) => {
6464
root.style.setProperty('--text-color', baseForeground);
6565
root.style.setProperty('--text-color-secondary', tabForeground);
6666
root.style.setProperty('--hover-bg', tabBackground);
67-
root.style.setProperty('--user-message-bg', tabBackground);
67+
root.style.setProperty('--user-message-bg', getThemeColor('accent.background', tabBackground));
68+
root.style.setProperty('--user-message-fg', getThemeColor('accent.foreground', baseForeground));
6869

6970
uiBackground = baseBackground;
7071
uiForeground = baseForeground;

themes/anycode.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"name": "anycode",
1010
"mode": "dark",
1111
"colors": {
12-
"accent.background": "#171717b3",
13-
"accent.foreground": "#fafafa",
12+
"accent.background": "#555555",
13+
"accent.foreground": "#ffffff",
1414
"accordion.background": "#242424",
1515
"background": "#242424",
1616
"border": "#4a4a4a",

themes/default-theme.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"name": "Vesper Dark",
1010
"mode": "dark",
1111
"colors": {
12-
"accent.background": "#171717b3",
13-
"accent.foreground": "#fafafa",
12+
"accent.background": "#444444",
13+
"accent.foreground": "#ffffff",
1414
"accordion.background": "#0a0a0a",
1515
"background": "#0a0a0a",
1616
"border": "#262626",

0 commit comments

Comments
 (0)