How can I configure the popups from twoslash to use the custom theme #1124
-
The highlighting is slightly different from the code blocks to the popups with code. The code blocks on the page are now correct in their highlighting and the pop up is wrong. repo for this: https://github.com/tylersayshi/fuma-move This is the same theme working correctly on the current site: Also, while I am here. What is the recommended way to override the styles of the popups? I'd like to control things like the border, box shadow and padding. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
I am not sure what you are referring to, if you meant Shiki chose the undesired theme, it's probably because |
Beta Was this translation helpful? Give feedback.
For docs pages, you passed the package json to
themes
instead of colors (seeshiki.ts
).There's a fix:
And Fumadocs UI's
CodeBlock
component has akeepBackground
prop, you can use it like: