-
I'm newish to Paste, using v17, and building a component in the Marketing Campaigns app that connects to both Twilio and Segment, but I'm unable to assign a |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hey @cfree! 👋 I'm Dosu, your friendly neighborhood bot here to tackle bugs, answer your queries, and guide you on your journey to becoming a contributor, all while the human maintainers are busy elsewhere. I'm diving into your issue now and will get back to you with some insights in a jiffy! 🛠️ |
Beta Was this translation helpful? Give feedback.
-
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! In the Paste design system, you cannot directly use hex values or custom styles for components like For setting a background color on a import {Box} from '@twilio-paste/core/box';
const MyComponent = () => (
<Box backgroundColor="colorBackgroundBrandHighlight">
Your content here
</Box>
); If you need to use a specific color that is not available as a token in Paste, you would need to use the Customization Provider to override specific tokens to use new values. This allows you to introduce new colors in a controlled manner, ensuring they align with the design system's guidelines and can be maintained over time. Remember, direct usage of hex values or custom styles outside of what's provided by the design tokens and the Customization Provider is not supported in Paste. This ensures consistency and maintainability across all applications using the design system. For more information on design tokens and how to use them, you can visit the Paste design tokens documentation. Hope this helps! 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 @cfree - Dosubot is our experimental tool that helps answer discussions questions but always needs to be checked by a member of the Paste team before it should be fully trusted. The Customization Provider is only for external users of the design system and shouldn't be used on Twilio applications, so dosu didn't quite get it right here. What is the color you're trying to use as a Box background color? Have you confirmed that it's not an existing background color token? Any of those tokens can be passed as values to Box styles. Using tokens rather than hardcoded hex/rgb values helps to create a more seamless user experience across products, no matter how they are built, by allowing the visual design language to be shared from a single source of truth. As the attributes of a design language are never hard-coded into any file, an evolution of the design language can be made with fewer updates to design assets and products by just updating the token values from that single central source. Let me know if you have more questions about how styles are used in Paste! |
Beta Was this translation helpful? Give feedback.
Hey @cfree -
Dosubot is our experimental tool that helps answer discussions questions but always needs to be checked by a member of the Paste team before it should be fully trusted. The Customization Provider is only for external users of the design system and shouldn't be used on Twilio applications, so dosu didn't quite get it right here.
What is the color you're trying to use as a Box background color? Have you confirmed that it's not an existing background color token? Any of those tokens can be passed as values to Box styles.
Using tokens rather than hardcoded hex/rgb values helps to create a more seamless user experience across products, no matter how they are built, by allowing the…