Skip to content

feat: add theme validation, fallback handling, and opencode setup#1

Merged
rjoydip merged 4 commits intomainfrom
feat/opencode-setup
Mar 21, 2026
Merged

feat: add theme validation, fallback handling, and opencode setup#1
rjoydip merged 4 commits intomainfrom
feat/opencode-setup

Conversation

@rjoydip
Copy link
Copy Markdown
Owner

@rjoydip rjoydip commented Mar 21, 2026

Summary

  • Theme validation: validateTheme now recursively validates light/dark variants and their seeds structure (all 9 seed keys must be present and match #RRGGBB format).
  • Fallback handling: getTheme() falls back to light mode if the requested mode is missing.
  • Theme loading refactor: loadTheme now supports custom theme objects via options.theme, an allowlist for file-based themes, and proper error messages.
  • Documentation: Added AGENTS.md, ARCHITECTURE.md, CODE_STYLE.md, and project analysis docs.
  • OpenCode setup: Added opencode.json config, agents, plugins, skills, and tools.

Changes

Area Files Change
Theme src/theme.ts Add validateTheme, DEFAULT_THEME, ALLOWED_THEMES, fallback in getTheme
Config src/container.ts, package.json, bun.lock Minor cleanup and dependency updates
Docs docs/*.md, AGENTS.md Architecture, code style, project analysis
OpenCode .opencode/, opencode.json Agents, plugins, skills, tools, config

Testing

  • Lint: bun run lint:fix && bun run format — 0 warnings, 0 errors
  • Typecheck: bun run typecheck — pre-existing errors (missing @types/node, unrelated to these changes)

rjoydip added 2 commits March 21, 2026 13:01
- Validate light/dark variants and seed structure in validateTheme
- Fall back to light mode if requested mode is missing in getTheme
- Refactor loadTheme to support custom theme objects and allowlist
- Update dependencies and postinstall script
- Add AGENTS.md development guide
- Add ARCHITECTURE.md and CODE_STYLE.md documentation
- Add opencode configuration and plugins
@rjoydip rjoydip self-assigned this Mar 21, 2026
@rjoydip rjoydip merged commit ea56289 into main Mar 21, 2026
3 checks passed
@rjoydip rjoydip deleted the feat/opencode-setup branch March 21, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant