Get-SPOTheme

检索现有主题的设置。

说明

Get-SPOTheme cmdlet 返回命名现有主题的设置,如果未提供名称,则返回所有上传的主题的设置。

示例

示例 1

此示例演示如何使用 Get-SPOTheme cmdlet 返回在 Add-SPOTheme cmdlet 示例中创建的主题的设置"Custom Cyan"。 请注意,此示例使用 PowerShell ConvertTo-Json 筛选器以 JSON 格式显示主题。

Get-SPOTheme -Name "Custom Cyan" | ConvertTo-Json

{
    "Name":  "Custom Cyan",
    "Palette":  {
                    "themeLight":  "#affefe",
                    "themeTertiary":  "#76ffff",
                    "black":  "#000000",
                    "neutralSecondary":  "#666666",
                    "neutralTertiaryAlt":  "#c8c8c8",
                    "themeSecondary":  "#39ffff",
                    "themeDarker":  "#005252",
                    "primaryBackground":  "#fff",
                    "neutralQuaternary":  "#d0d0d0",
                    "neutralPrimaryAlt":  "#3c3c3c",
                    "neutralPrimary":  "#333",
                    "themeDark":  "#009090",
                    "themeLighter":  "#daffff",
                    "neutralTertiary":  "#a6a6a6",
                    "neutralQuaternaryAlt":  "#dadada",
                    "themeLighterAlt":  "#f3fcfc",
                    "white":  "#fff",
                    "neutralSecondaryAlt":  "#767676",
                    "neutralLighter":  "#f4f4f4",
                    "neutralLight":  "#eaeaea",
                    "neutralDark":  "#212121",
                    "themeDarkAlt":  "#00c4c4",
                    "neutralLighterAlt":  "#f8f8f8",
                    "primaryText":  "#333",
                    "themePrimary":  "#00ffff"
                },
    "IsInverted":  false
}

示例 2

若要返回所有上传的主题,请使用不带参数的 Get-SPOTheme 命令。

Get-SPOTheme