Git Product home page Git Product logo

sptheme-converter's Introduction

SPTheme-Converter

Do you need to create a Modern theme based on an existing Classic theme? Or have you found that you need to leverage both Modern and Classic themes in your O365 SharePoint environment to ensure a consistent experience? Me, too!
So I created this app. :-)

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

Converted Classic Theme (Preview)

Preview of Classic Theme

Converted Modern Theme (Team Site Home Page)

Modern Team Home Page

sptheme-converter's People

Contributors

tracygh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.