The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
Until you add a custom theme via Add-SPOTheme, there will be no output.
And we can customize default theme in SharePoint UI, however unable to get the JSON of the built-in theme.
As a workaround, use the Theme Generator tool to build a custom theme. It provides an interactive UI for selecting theme colors, and automatically generates the JSON, SASS, and PowerShell definitions for your custom theme.
More inforamtion for your reference:
-------------------------------------Update----------------------------------------------
Use following code to define a dictionary in PowerShell for the Red theme's color palette for your reference:
$themepalette = @{
"themePrimary" = "#d13438";
"themeLighterAlt" = "#fdf5f5";
"themeLighter" = "#faebeb";
"themeLight" = "#f6d6d8";
"themeTertiary" = "#ecaaac";
"themeSecondary" = "#d6494d";
"themeDarkAlt" = "#c02b30";
"themeDark" = "#952226";
"themeDarker" = "#751b1e";
"neutralLighterAlt" = "#f8f8f8";
"neutralLighter" = "#f4f4f4";
"neutralLight" = "#eaeaea";
"neutralQuaternaryAlt" = "#dadada";
"neutralQuaternary" = "#d0d0d0";
"neutralTertiaryAlt"= "#c8c8c8";
"neutralTertiary" = "#a6a6a6";
"neutralSecondaryAlt" = "#767676";
"neutralSecondary" = "#666666";
"neutralPrimary" = "#333";
"neutralPrimaryAlt" = "#3c3c3c";
"neutralDark" = "#212121";
"black" = "#000000";
"white" = "#fff";
"primaryBackground" = "#fff";
"primaryText" = "#333"
}
Add-SPOTheme -Identity "Julie Custom" -Palette $themepalette -IsInverted $false -Overwrite
Get-SPOTheme -Name "Julie Custom" | ConvertTo-Json
Result:
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.