Help customizing Button via design token. v4 #2078
Replies: 4 comments 6 replies
-
Try nesting under a |
Beta Was this translation helpful? Give feedback.
-
I also can't get it to work. (Also tried nesting under a root component) |
Beta Was this translation helpful? Give feedback.
-
Hi. I need to theme all elements to the corporate pallet. I've changed the default primary pallet, default hovers, focus, etc. all good. But changing components, I'm struggling a bit with getting this to work. I have followed the example as described in video here around the 10:15 mark: ..whatever I do, I can not get it to work for me. Below is an example of what I have done in my preset file to test various things. components: { At this stage, I just want to change the background colour of the primary button and change it's border so i understand how it all fits together. If I inspect the element in dev tools, I can see that the config file sets the ":root" styles somehow and I can see the props I'm setting, e.g. primaryBackground: '#1e54c7', // not work getting transformed to --p-button-primary-background: #1e54c7' but it's getting disabled by a property superseding it. Has anyone got any idea how to get this to work to any avenues to explore? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
@j0rgedev Thanks a lot for your answer! Understanding it a lot more now. |
Beta Was this translation helpful? Give feedback.
-
Hello, I am able to use design tokens to easily adjust the colors of my navigation item application wide. However, when attempting to do something similar with buttons, I am not able to accomplish this. Could someone help steer me in the right direction?
Version: ^4.0.0-beta.4
Using styled mode, here is my theme:
Beta Was this translation helpful? Give feedback.
All reactions