Nesting a CustomizationProvider into a ThemeProvider #3938
-
Hi there, I'm implementing a design with my team, and we started to use the I've created a sandbox to show the issue: https://codesandbox.io/p/sandbox/paste-theme-font-wrappers-wwhyzj How can we use the Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Disclaimer: This is a very experimental bot using OpenAI's GPT-4. The answers may not be correct, a human will review the answer and update it if necessary. Hi there, To use the Here's an example of how you might set up the import {CustomizationProvider} from '@twilio-paste/core/customization';
const MyApp = () => (
<CustomizationProvider baseTheme="default" theme={{
"fontWeights": {
"fontWeightNormal": "light",
"fontWeightMedium": "500",
"fontWeightBold": "600"
},
"borderWidths": {
"borderWidth10": '2px',
"borderWidth20": '4rem',
"borderWidth30": '4em'
}
}}>
{/* rest of app */}
</CustomizationProvider>
) In this example, we're customizing Remember, when specifying the For more information on using the If you have any more questions or need further assistance, feel free to ask! I also did a search, and I managed to find these other Discussions that might be similar or related to your question. Give them a read to see if they answer your question. If they do, head back here and update this discussion and mark it as answered, pointing others to the related discussion:
|
Beta Was this translation helpful? Give feedback.
-
Hey @justinmcbride ! Can you share where you're using CustomizationProvider? It should only be used for apps external to Twilio / by Twilio customers, so I wanted to check to make sure we can fully help solve your issue. |
Beta Was this translation helpful? Give feedback.
Hey @justinmcbride ! This is a really good callout—I'm going to add a few warnings to the customization docs pages that are meant only for Twilio customers and that shouldn't be used internally.
In the meantime, can you share screenshots of what components you're trying to style and where? Feel free to drop them in slack in #help-design-system if they can't be shared publicly. A link to a Figma file with comments pointing to those components works too. Feel free to @ mention me there.
^ There are a few things seeing those screens might help with: