May 24, 2012

SharePoint 2010 custom CSS won't apply the theme colors

After playing with a custom CSS which wouldn't apply the colors defined in the theme, I came upon this post ( which laid out the criteria for a working themable CSS:

1. Properly formed CSS entries:
         /* [ReplaceColor(themeColor:"Dark2")] */ background-color:#ffffff;
2. Correctly located CSS file:
        /Style Library/1033/Themable/custom.css
       /Style Library/Themable/custom.css. 
       No other nesting will work.
3. Include CSS with a CSSRegistration control , not AlternateCSSUrl or CSSLink
4. Reapply the theme to calculate the themed CSS version

No comments:

Post a Comment