# Binding values in Libraries

**URL:** <https://community.weweb.io/t/binding-values-in-libraries/5919>\
**Category:** Ask us anything\
**Tags:** binding, design, libraries\
**Created:** [December 13, 2023, 11:21am UTC](https://community.weweb.io/t/binding-values-in-libraries/5919 "2023-12-13T11:21:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jptrinh](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/jptrinh/32/1493_2.png) [@jptrinh](https://community.weweb.io/u/jptrinh)\
**Post date:** [December 13, 2023, 11:21am UTC](https://community.weweb.io/t/binding-values-in-libraries/5919/1 "2023-12-13T11:21:47Z")

</div>

Hello all!  
Will it be possible to bind values in Libraries variables?  
One use-case would be to reference other libraries variables and have a multiple token layers (Primitives and Aliases).  
Also we could use that to handle different mode switching by binding something like `if(darkmode, $white-text, $black-text)` on a text/default token for instance.

Does that make any sense?  
(thanks for the awesome release, having a lot of fun 🙂 )

 ![CleanShot 2023-12-13 at 12.13.20](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/d/db596d7066bb79ce9a78b2eefee38cfe8ca74cc8.png)

---

<div class="post-metadata">

**Author:** ![luka](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/luka/32/1571_2.png) [@luka](https://community.weweb.io/u/luka)\
**Post date:** [December 13, 2023, 2:07pm UTC](https://community.weweb.io/t/binding-values-in-libraries/5919/2 "2023-12-13T14:07:51Z")

</div>

We will think about it, there are pros and cons to adding more functionality. We would like to implement native color modes in the design system without any binding, but it’s not clear when this will be.
