Skip to content

Latest commit

 

History

History
36 lines (32 loc) · 3.8 KB

README.md

File metadata and controls

36 lines (32 loc) · 3.8 KB

SPTheme-Converter

Convert SharePoint Modern themes to Classic, and SharePoint Classic themes to Modern.

NOTE: This application only works with valid SPColor file and UI Fabric Theme Designer JSON file inputs.

  1. Open the Program.cs file and add input and output local path values for the relevant conversion method(s) you need: ClassicToModern() or ModernToClassic().
  2. Uncomment the relevant conversion method(s) you need.
  3. Run the program.

The SharePoint (classic) Color Palette Tool exposes ~90 color slot settings. The UI Fabric Theme Designer has trimmed that number down to 21 color slot settings. (There are actually 22 slots that appear in an exported theme files, but only 21 of them are available in the UI application.)

For reference, here are the mapped values between SharePoint Modern and Classic theme palette slots:

Modern Palette Slots Classic Palette Slots
themePrimary AccentText
Hyperlink
Hyperlinkfollowed
CommandLinksHoverRowAccent
NavigationAccent
NavigationHover
EmphasisBackground
HeaderNavigationHoverText
HeaderNavigationSelectedText
SuiteBarBackground
ContentAccent1
ContentAccent2
ContentAccent3
ContentAccent4
ContentAccent5
ContentAccent6
neutralPrimary BodyText
WebPartHeading
SearchURL
HeaderText
ButtonText
ButtonGlyphActive
white BackgroundOverlay
PageBackground
HeaderBackground
FooterBackground
EmphasisText
SuiteBarText
TileText
themeLighterAlt ButtonHoverBackground
themeLighter SelectionBackground
HoverBackground
NavigationHoverBackground
themeLight StrongLines
HeaderStrongLines
ButtonPressedBackground
ButtonHoverBorder
themeTertiary SuiteBarHoverBackground
themeSecondary AccentLines
HeaderAccentLines
ButtonPressedBorder
themeDarkAlt EmphasisHoverBackground
EmphasisBorder
themeDark HyperlinkActive
themeDarker CommandLinksPressed
NavigationPressed
EmphasisHoverBorder
HeaderNavigationPressedText
TileBackgroundOverlay
neutralLighterAlt DisabledBackground
HeaderDisabledBackground
ButtonBackground
ButtonDisabledBackground
neutralLighter NavigationSelectedBackground
SubtleEmphasisBackground
TopBarBackground
neutralLight DisabledLines
DialogBorder
HeaderDisabledLines
ButtonDisabledBorder
neutralQuaternaryAlt HeaderFlyoutBorder
neutralQuaternary No Modern Designer setting available
neutralTertiaryAlt SubtleLines
HeaderSubtleLines
SuiteBarDisabledText
ButtonGlyphDisabled
neutralTertiary DisabledText
CommandLinksDisabled
HeaderDisableText
ButtonDisabledText
neutralSecondary Lines
HeaderLines
ButtonBorder
neutralPrimaryAlt SubtleBodyText
HeaderSubtleText
neutralDark CommandLinks
Navigation
SubtleEmphasisText
TopBarText
HeaderNavigationText
ButtonGlyph
black StrongBodyText
SiteTitle
CommandLinksSecondary
SubtleEmphasisCommandLinks
TopBarHoverText
TopBarPressedText
HeaderSiteTitle