Why are pages using my Custom Skuid theme are pulling inline resources from my other Skuid pages?

  • 1
  • Question
  • Updated 3 years ago
It seems that my new custom theme is messing up the CSS of my other pages.

Here's what's happening:

1. I create a brand new Skuid page. No inline CSS. No external resources.

2. I assign the "Classic" theme to that page and everything looks normal and "Classic-y", as expected.

3. I then assign my "Build Realty Custom Theme" and it magically starts pulling in inline CSS components from my other Skuid pages - more specifically, the external font I use (not Google fonts).

How/why is this happening!?
Photo of Gary Bailey

Gary Bailey

  • 1,628 Points 1k badge 2x thumb
  • confused

Posted 3 years ago

  • 1
Photo of Gary Bailey

Gary Bailey

  • 1,628 Points 1k badge 2x thumb
Photo of Gary Bailey

Gary Bailey

  • 1,628 Points 1k badge 2x thumb
After a lot of hacking around here is what I determined was the problem:

When I created my custom theme, I used the "classic" theme as my base. The problem was that I had tweaked the classic theme in the past which was why it was pulling in some strange customization's.

Tips for creating a custom theme:

- Consider using one of the newer Skuid base themes for the basis of your new theme

- Pay attention to the default theme assignments for your users as this may also have an effect on how your theme is displayed

- If possible, log in to Salesforce from a user or partner user account to view how the theme is being deployed.
Photo of Ben Hubbard

Ben Hubbard, Employee

  • 12,490 Points 10k badge 2x thumb
Hi Gary, I'm glad you figured it out. Your tips for creating custom themes are spot on. I'll ping the documentation people here to see if they can add these pointers to the docs.