pnp / pnp/pnpframework

Create custom SharePoint theme not working

Open
#344 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
259
Forks
161
Avg merge
10h 33m
Merged PRs (30d)
1

Description

I am creating a tenant level custom theme using tenant administration. Below is a code snippet

image

It is creating a theme but it's not coming properly. If you see the below screenshot, you can get the better idea.

image

Below is my themejson that I have directly pick from theme generator.
public string mataTheme = @"{ ""themePrimary"": ""#6FB388"", ""themeLighterAlt"": ""#040705"", ""themeLighter"": ""#121d16"", ""themeLight"": ""#213629"", ""themeTertiary"": ""#426b51"", ""themeSecondary"": ""#619d77"", ""themeDarkAlt"": ""#7aba92"", ""themeDark"": ""#8cc5a1"", ""themeDarker"": ""#a7d4b8"", ""neutralLighterAlt"": ""#f3f8f5"", ""neutralLighter"": ""#eff4f1"", ""neutralLight"": ""#e5eae7"", ""neutralQuaternaryAlt"": ""#d6dad7"", ""neutralQuaternary"": ""#ccd0cd"", ""neutralTertiaryAlt"": ""#c4c8c5"", ""neutralTertiary"": ""#595959"", ""neutralSecondary"": ""#373737"", ""neutralPrimaryAlt"": ""#2f2f2f"", ""neutralPrimary"": ""#000"", ""neutralDark"": ""#151515"", ""black"": ""#0b0b0b"", ""white"": ""#f8fefa"" }";

If someone can suggest if anything wrong with this code then it would be very helpful

Thanks in advance

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the C# theme snippet and the two screenshots in the issue, then verify how tenant-level SharePoint themes are expected to be supplied through tenant administration. Compare the generated theme JSON and resulting appearance with the documented requirements; done means identifying the invalid or unsupported input, or confirming that the issue lacks enough information to reproduce it.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.