Polyman Documentation - v3.1.0
    Preparing search index...

    Function resolveTheme

    • Returns the theme for this run. Like getTheme, but when POLYMAN_THEME is unset or auto it detects the terminal background and picks the light theme on a light terminal. Never rejects.

      Parameters

      • Optionalenv: ProcessEnv = process.env

        Environment to read

      • Optionalbase: ChalkInstance = chalk

        Chalk instance used when colors are on

      • Optionaloptions: DetectOptions = {}

        Overrides for detection (tests)

      Returns Promise<Theme>

      The active theme