Files
opencode-manager/frontend/src/lib/git-status-styles.ts
T
Chris Scott 5bd688de4b feat(themes): apply OpenCode color themes app-wide with a settings picker (#364)
- Vendor the 36 OpenCode theme palettes into the shared package, synced
  from the pinned OpenCode release tag via pnpm themes:sync.
- Add a colorTheme user preference across the settings schema, defaults,
  and the assistant internal API.
- Extend palettes with success, warning, info, and diff colors, and add a
  resolver that maps palettes to CSS tokens and applies them to the DOM.
- Apply the theme app-wide through a ThemeProvider context, adopting the
  tokens in message, repo, session, and settings components, agent
  colors, git status styles, and diff viewers.
- Add a theme picker to General settings and make model quick-select
  follow the active theme (fixes #355).
2026-09-28 00:19:32 -04:00

30 lines
774 B
TypeScript

export const GIT_STATUS_COLORS = {
modified: 'text-warning',
added: 'text-success',
deleted: 'text-destructive',
renamed: 'text-info',
untracked: 'text-muted-foreground',
copied: 'text-success',
} as const
export const GIT_UI_COLORS = {
ahead: 'text-success',
behind: 'text-warning',
current: 'text-highlight',
remote: 'text-info',
stage: 'text-success',
unstage: 'text-destructive',
stagedBadge: 'bg-success/10 text-success dark:bg-success/20',
unpushed: 'bg-info/10 text-info dark:bg-info/20',
pushed: 'bg-primary/10 text-primary dark:bg-primary/20',
} as const
export const GIT_STATUS_LABELS = {
modified: 'Modified',
added: 'Added',
deleted: 'Deleted',
renamed: 'Renamed',
untracked: 'Untracked',
copied: 'Copied',
} as const