Get-SPOTheme
Description
Este cmdlet devuelve la configuración de un tema existente con nombre o para todos los temas cargados si no se proporciona ningún nombre.
Nota:
Para admitir la personalización de marca coherente y simplificar la gobernanza, la administración de temas está realizando la transición a un modelo centralizado.
- La ubicación geográfica principal actuará como la ubicación central para la creación y administración de temas en toda la organización. Los temas creados aquí serán visibles y aplicables en las geoáreas de satélite.
- Los administradores geográficos satélite podrán ver y aplicar temas de la ubicación geográfica principal a sus propios sitios mediante el uso
Get-SPOThemeySet-SPOWebThemeel cmdlet . Los temas creados anteriormente dentro de las geoáreas satélite permanecerán disponibles para su uso. Sin embargo, la creación de nuevos temas en geoáreas por satélite ya no se admitirá en el futuro.
Ejemplos
Ejemplo 1
En este ejemplo se muestra cómo usar el cmdlet Get-SPOTheme para devolver la configuración del "Custom Cyan" tema creado en el ejemplo del cmdlet Add-SPOTheme . Tenga en cuenta que en este ejemplo se usa el filtro de PowerShell ConvertTo-Json para mostrar el tema en formato 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
}
Si el tema está en formato heredado, la salida será:
{
"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
}
Ejemplo 2
Para devolver todos los temas cargados, use el comando Get-SPOTheme sin argumentos.
Get-SPOTheme
Parámetros
-Name
Aplicable: SharePoint Online
Nombre del tema.
Propiedades del parámetro
| Tipo: | System.String |
| Valor predeterminado: | None |
| Admite caracteres comodín: | False |
| DontShow: | False |
Conjuntos de parámetros
(All)
| Posición: | 0 |
| Mandatory: | False |
| Valor de la canalización: | True |
| Valor de la canalización por nombre de propiedad: | False |
| Valor de los argumentos restantes: | False |
CommonParameters
Este cmdlet admite los parámetros comunes: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction y -WarningVariable. Para más información, consulte about_CommonParameters.