Skip to content

Get-SpectreColors

Description

This function returns the current default color configuration for Spectre Console. These colors are used throughout the module as defaults for various commands. The colors can be changed using Set-SpectreColors.


Examples

Example 1
This example demonstrates how to retrieve the current default colors for Spectre Console.

Terminal window
Get-SpectreColors | Format-SpectreTable

Example 2
This example demonstrates how to retrieve the default colors after changing them with Set-SpectreColors.

Terminal window
Set-SpectreColors -AccentColor "Turquoise2" -DefaultValueColor "Grey85"
Get-SpectreColors | Format-SpectreTable
Set-SpectreColors -AccentColor "Blue" -DefaultValueColor "Grey"

Syntax

Terminal window
Get-SpectreColors [<CommonParameters>]