Official

themes

The stock themes: presets of every colour, type size, corner, density token and background, chosen per light and dark mode and edited in Settings, beside the themes other plugins ship.

The app opens the listing; nothing installs until an agent in your Plugins workspace has read the files and you enable the plugin. In a terminal: dvg install divergence/themes@0.3.5

Permissions in 0.3.5

  • Change app settings settings.writeHighChanges the app settings.Apply the chosen theme to the window
  • Read files fs.readMediumReads files in the listed places.Find the pictures you chose for backgrounds in this plugin's data folder, to remove the ones no preset usesPlaces: its own data folder
  • Write files fs.writeMediumCreates, changes and deletes files in the listed places.Keep a copy of each picture you choose for a background in this plugin's data folder, so it stays when the original movesPlaces: its own data folder

Files

shipped.ts1008 B
// The themes other plugins ship (`contributes.themes`), as the kernel lists
// them (`kernel/themes`). `main.ts` reads them when it starts and whenever a
// plugin loads or reloads; the settings view draws them as read-only presets.
import type { Api, PluginTheme } from "divergence";

export interface Shipped {
  readonly themes: readonly PluginTheme[];
  /** Why a plugin's theme file was left out. */
  readonly problems: readonly string[];
}

let current: Shipped = { themes: [], problems: [] };
const listeners = new Set<() => void>();

export const shipped = (): Shipped => current;

/** Reads the list again and tells whoever draws it. */
export async function refresh(api: Api): Promise<void> {
  current = await api.host.kernel("themes", {});
  for (const listener of listeners) listener();
}

/** Calls `listener` after each refresh; returns the way to stop. */
export function onRefresh(listener: () => void): () => void {
  listeners.add(listener);
  return () => listeners.delete(listener);
}

Versions

VersionPublishedPlugin APISizePermissionsStatus
0.3.5latestNov 21, 2026>=5 <614.2 KB3 permissionsListed
0.3.4Nov 16, 2026>=5 <613.8 KB3 permissionsListed
0.3.3Nov 11, 2026>=5 <68.9 KB1 permissionListed
0.3.2Nov 9, 2026>=5 <68.1 KB1 permissionListed
0.3.1Oct 27, 2026>=2 <48 KB1 permissionListed

Reviews and comments

0 threads · 0 reviews

No comments yet.