Get-SPOTheme

擷取現有主題的設定。

Description

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