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.

416 B
Raw Blame
import type { Capabilities } from "./capabilities.js";
import { type Glyphs, glyphsFor } from "./glyphs.js";
import { makeTheme, type Theme } from "./theme.js";

export type Ui = {
  readonly caps: Capabilities;
  readonly theme: Theme;
  readonly glyphs: Glyphs;
};

export function makeUi(caps: Capabilities): Ui {
  return {
    caps,
    theme: makeTheme(caps.color),
    glyphs: glyphsFor(caps.unicode),
  };
}