Skip to main content

 Hi! 

we are trying to get the variables from our library. I have been able to get a variable information by passing the variable id. I can see that the name is available (color/globant/red/100) however, If I inspect a component, such as the button, I can see that under “Selection colors” the color name i just mentioned appears (ok), but I am missing the css variables that is visible under Style var(--color-accent-success-default).  Also, I don’t see the variable value anywhere on the console.log. 

I need to get the value (this is a must) and if possible the variable name as well. 

Under valuesByMode it appears: 

  1. valuesByMode: Object
    1. 4281:0:
      1. a: 1
      2. b: 0.95686274766922
      3. g: 0.95686274766922
      4. r: 0.9882352948188782

but this is not really what we want. We are using a hexa value. We would like to get the hexa value. 
Thanks in advance. 
 

 

 

 

 

Be the first to reply!

Reply