CodeBlock Light Theme #2702
-
Hello! I have one more question regarding the new CodeBlock component. Is there any way to use the night owl light theme : If this is not currently supported, what would be the most straightforward way to make it work. I know we have the CustomizationProvider but it's not straightforward as to how I would use such a theme with this. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Hi @rmatuszczakp thanks for the discussion. Today the syntax highlighting is hard coded by our component implementation. I've started a conversation with the team about opening up an API to allow for downstream consumer style overrides for use cases like yours. Unfortunately, it doesn't appear that there are any pre-made style definitions for a To be even more clear, the code snippet syntax highlighting styles for |
Beta Was this translation helpful? Give feedback.
-
Hey @rmatuszczakp @rosemaryluo - thanks for providing the additional context. Although it doesn't match the light theme of the previous component you were using, I'd recommend trying out our current Code Block with the dark theme to see how it feels. We made the decision to only release the dark Code Block for a variety of reasons, including the benefit of consistency across products. If, however, you test it out and it performs poorly, we'd love for you to share some of that customer feedback with us. Unfortunately the Customization Provider is only for use in external projects. All Twilio products using Paste should be using the Theme Provider. |
Beta Was this translation helpful? Give feedback.
-
Hey Paste team, I'm curious if there has been any changes regarding light codeblocks. Within Segment, we have a lot of light colored pages that now have dark code blocks and it's pretty jarring for me to see the high contrast difference. I don't have any data experience, but I suspect the dark code blocks are intimidating for non-technical personas that are using other parts of Segment with light backgrounds. Could we consider a light code block approach? |
Beta Was this translation helpful? Give feedback.
Hey @rmatuszczakp @rosemaryluo - thanks for providing the additional context. Although it doesn't match the light theme of the previous component you were using, I'd recommend trying out our current Code Block with the dark theme to see how it feels. We made the decision to only release the dark Code Block for a variety of reasons, including the benefit of consistency across products. If, however, you test it out and it performs poorly, we'd love for you to share some of that customer feedback with us.
Unfortunately the Customization Provider is only for use in external projects. All Twilio products using Paste should be using the Theme Provider.