다음을 통해 공유


Get-SPOTheme

Description

이 cmdlet은 이름이 지정된 기존 테마의 설정을 반환하거나 이름이 제공되지 않은 경우 업로드된 모든 테마에 대해 설정을 반환합니다.

참고

일관된 브랜딩을 지원하고 거버넌스를 간소화하기 위해 테마 관리는 중앙 집중식 모델로 전환됩니다.

  • 기본 지오organization 전체 테마 만들기 및 관리를 위한 중앙 위치 역할을 합니다. 여기에서 만든 테마는 위성 지역에서 표시되고 적용할 수 있습니다.
  • 위성 지역 관리자는Set-SPOWebTheme cmdlet을 사용하여 Get-SPOTheme 기본 지역에서 테마를 보고 해당 사이트에 적용할 수 있습니다. 이전에 위성 지오 내에서 만든 테마는 계속 사용할 수 있습니다. 그러나 위성 지역에서 새 테마를 만드는 것은 더 이상 지원되지 않습니다 .

예제

예 1

이 예제에서는 Get-SPOTheme cmdlet을 사용하여 Add-SPOTheme cmdlet의 예제에서 만든 테마에 대한 설정을 "Custom Cyan" 반환하는 방법을 보여줍니다. 이 예제에서는 PowerShell ConvertTo-Json 필터를 사용하여 테마를 JSON 형식으로 표시합니다.

Get-SPOTheme -Name "Custom Cyan" | ConvertTo-Json -Depth 4
{
    "Name":  "Custom Cyan",
    "Palette": null,
    "ColorPairs": {
        "light": [
            {"accentColor": "#0078D4", "backgroundColor": "#FFFFFF"},
            {"accentColor": "#FFFFFF", "backgroundColor": "#0078D4"}
        ]
    },
    "IsInverted":  false,
    "Editable": true
}

테마가 레거시 형식인 경우 출력은 다음과 같습니다.

{
    "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,
    "Editable": true
}

예 2

업로드된 모든 테마를 반환하려면 인수 없이 Get-SPOTheme 명령을 사용합니다.

Get-SPOTheme

매개 변수

-Name

적용 가능: SharePoint Online

테마의 이름입니다.

매개 변수 속성

형식:System.String
Default value:None
와일드카드 지원:False
DontShow:False

매개 변수 집합

(All)
Position:0
필수:False
파이프라인의 값:True
속성 이름별 파이프라인의 값:False
나머지 인수의 값:False

CommonParameters

이 cmdlet은 일반적인 매개 변수인 -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction 및 -WarningVariable 매개 변수를 지원합니다. 자세한 내용은 about_CommonParameters를 참조하세요.

입력

System.String

출력

System.Object