-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addon-docs: Make syntax-highlighter theme configurable #9641
Comments
@shilman Is there any workaround for this currently? I am not theming storybook at all and the default syntax highlighting is basically unusable. I have no idea who designed this particular theme, but it is bad: |
@Smolations i think that's a CSS collision between the prism theme and your CSS. Here's how it should look: So in my estimation there are two separate issues:
Help wanted on either issue! |
Well I'll be a monkey's uncle...shame on me for not checking that in the first place! 🙈 Sorry for wasting your time on this. Keep up the good work! 😁 |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
@shilman I tried to add this in storybook/lib/components/src/blocks/Source.tsx Lines 44 to 69 in c7479f6
but I couldn't figure out how to get a theme var. |
@shilman Any update on this? |
@shilman would love to see configuration for this land in v7 |
Is your feature request related to a problem? Please describe.
React-Syntaxt-Highlighter support a lot of Prism themes. It would be nice if Storybook provide a way for the user to pick the theme of is choice.
Describe the solution you'd like
One solution would be to make it configurable through SB theme system.
Something like:
Additional context
#9640 could be tackled with this story
The text was updated successfully, but these errors were encountered: