@nanocollective/nanocoder
Version:
A local-first CLI coding agent that brings the power of agentic coding tools like Claude Code and Gemini CLI to local models or controlled APIs like OpenRouter
14 lines • 709 B
JavaScript
import { readFileSync } from 'node:fs';
import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
// Load themes from JSON at startup — keeps 39 theme definitions out of source code.
// Path resolves from dist/config/ back to source/config/themes.json (included in package.json files).
const themesPath = join(__dirname, '../../source/config/themes.json');
export const themes = JSON.parse(readFileSync(themesPath, 'utf-8'));
export function getThemeColors(themePreset) {
return themes[themePreset].colors;
}
export const defaultTheme = 'tokyo-night';
//# sourceMappingURL=themes.js.map