Enqueueing Stylesheet on Previewer

I am trying to enqueue a stylesheet into the previewer/editor to change the colors of the previewer sidebar and toolbar, etc. I tried enqueueing with the wp_enqueue_scripts hook as well as the cs_before_preview_frame hook, but those load in the page iframe rather than into the previewer. Is there a way to do this? Or are the colors stored in options or anywhere else that I can update? I’m already aware of the dev toolkit, but I want to use a stylesheet or php. Thanks in advance.

Hello @tkulow,

I believe you have already resolved the issue by withdrawing the post. If it still exists, please let us know.

Thanks

1 Like

Hello, I thought I figured it out, but it turns out I didn’t. I restored my original post and edited it to be more clear. Can you please take a look again? Thank you.

Hello @tkulow,

In order to change the color of the preview, I would suggest you please change the interface theme. You need to go to the cornerstone—>settings —>Interface —>Theme—>select the theme from here.

Hope it helps
Thanks

That just changes light to dark. I am trying to theme the previewer by changing the colors entirely from my code.

Hello @tkulow,

Regretfully, there is no option at the moment. It would require custom development. I would suggest you please get in touch with a developer who can assist you with your concerns, or you may subscribe to One, where customization questions are answered. Please note we don’t provide custom development support; it is out of the support scope.

Thanks for understanding

Thanks. We have a developer, but your development documentation is out of date.

Hey @tkulow,

Have you check out these old threads?

Thanks.