Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

538 B
Raw Blame
import type { Prompt } from "effect/cli";
import { themeCodes } from "../render/theme.js";
import type { Ui } from "../render/ui.js";

export function promptTheme(ui: Ui): Partial<Prompt.Theme> {
  const codes = themeCodes(ui.caps.color);
  return {
    prefix: ui.glyphs.diamond,
    pointer: ui.caps.unicode ? "❯" : ">",
    tick: ui.glyphs.tick,
    ellipsis: ui.glyphs.ellipsis,
    primaryColor: codes.bold,
    mutedColor: codes.muted,
    successColor: codes.success,
    errorColor: codes.danger,
    submittedColor: "",
  };
}