Release v1.01 Enhanced: Vi Control, TUI Gen5, Core Stability

This commit is contained in:
Gemini AI
2025-12-20 01:12:45 +04:00
Unverified
parent 2407c42eb9
commit 142aaeee1e
254 changed files with 44888 additions and 31025 deletions

77
bin/themes.mjs Normal file
View File

@@ -0,0 +1,77 @@
/**
* OpenQode Theme Engine (Vibe Upgrade)
* Defines color palettes for TUI theming
*/
export const THEMES = {
dracula: {
name: 'Dracula',
description: 'Classic dark purple theme',
primary: 'magenta',
secondary: 'cyan',
accent: 'green',
text: 'white',
muted: 'gray',
background: 'black',
success: 'green',
warning: 'yellow',
error: 'red',
border: 'gray'
},
monokai: {
name: 'Monokai',
description: 'Warm orange and green',
primary: 'yellow',
secondary: 'green',
accent: 'magenta',
text: 'white',
muted: 'gray',
background: 'black',
success: 'green',
warning: 'yellow',
error: 'red',
border: 'yellow'
},
nord: {
name: 'Nord',
description: 'Cool blue arctic palette',
primary: 'blue',
secondary: 'cyan',
accent: 'white',
text: 'white',
muted: 'gray',
background: 'black',
success: 'cyan',
warning: 'yellow',
error: 'red',
border: 'blue'
},
matrix: {
name: 'Matrix',
description: 'Hacker green on black',
primary: 'green',
secondary: 'green',
accent: 'green',
text: 'green',
muted: 'gray',
background: 'black',
success: 'green',
warning: 'green',
error: 'red',
border: 'green'
}
};
/** Get theme by ID */
export const getTheme = (themeId) => {
return THEMES[themeId] || THEMES.dracula;
};
/** Get all theme names for picker */
export const getThemeNames = () => {
return Object.entries(THEMES).map(([id, theme]) => ({
id,
name: theme.name,
description: theme.description
}));
};