Skip to content

settings

Package metadata and default configuration derived from package.json.

All exports are read once at module load time. The configuration prefix (humanualsTheme) is derived from the property keys in package.json rather than from pkg.name, since npm package names and VS Code configuration prefixes follow different casing conventions (kebab-case vs camelCase).

const PKG_CONFIG_PREFIX: string = prefix

Defined in: settings.ts:55

VS Code configuration namespace prefix (e.g. "humanualsTheme").

Used with workspace.getConfiguration() and event.affectsConfiguration().


const PKG_DEFAULTS: Configuration

Defined in: settings.ts:75

Default configuration values read directly from package.json.

Used by generateThemes.ts to produce the static shipped theme files, and as the fallback when user settings are unavailable.

The two axes — temperature and contrast — each have independent dark/light settings, allowing e.g. warm dark paired with cool light.


const PKG_NAME: string = pkg.name

Defined in: settings.ts:46

Npm package name (e.g. "humanuals-theme").


const PKG_THEMES: any = pkg.contributes.themes

Defined in: settings.ts:62

Theme entries from package.json contributes.themes.