repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

pi/agent/extensions/diff-review/browser/theme.ts

Raw
File outline
export const NUGU_DARK = {
  bg: "#121212",
  panel: "#242424",
  fg: "#ededed",
  muted: "#9d9d9d",
  accent: "#d86dd8",
  focus: "#9aabae",
  info: "#3ec5dd",
  warning: "#9e9a69",
  error: "#e46479",
  important: "#dfd3f3",
};

export const NUGU_LIGHT = {
  bg: "#ededed",
  panel: "#dbdbdb",
  fg: "#121212",
  muted: "#292929",
  accent: "#922792",
  focus: "#15333b",
  info: "#13616e",
  warning: "#242317",
  error: "#c0223c",
  important: "#4f3c69",
};

export const CODE_FONT = "'JetBrains Mono Nerd', 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";
export const NUGU_CODE_THEME = "nugu-code";

type RegisterCustomCSSVariableTheme = (name: string, theme: Record<string, string>, isDark?: boolean) => void;

export function registerNuguCodeTheme(registerCustomCSSVariableTheme: RegisterCustomCSSVariableTheme) {
  registerCustomCSSVariableTheme(NUGU_CODE_THEME, {
    foreground: NUGU_DARK.fg,
    background: NUGU_DARK.bg,
    "token-string": NUGU_DARK.focus,
    "token-string-expression": NUGU_DARK.focus,
    "token-comment": NUGU_DARK.important,
    "token-constant": NUGU_DARK.focus,
    "token-keyword": NUGU_DARK.muted,
    "token-parameter": NUGU_DARK.warning,
    "token-function": NUGU_DARK.fg,
    "token-punctuation": NUGU_DARK.muted,
    "token-link": NUGU_DARK.info,
    "token-inserted": NUGU_DARK.info,
    "token-deleted": NUGU_DARK.error,
    "token-changed": NUGU_DARK.accent,
  }, true);
}