---
id: fast-foundation.designtoken.setvaluefor
title: DesignToken.setValueFor() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-foundation](./fast-foundation.md) &gt; [DesignToken](./fast-foundation.designtoken.md) &gt; [setValueFor](./fast-foundation.designtoken.setvaluefor.md)

## DesignToken.setValueFor() method

Sets the token to a value for an element.

<b>Signature:</b>

```typescript
setValueFor(element: HTMLElement, value: DesignTokenValue<T> | DesignToken<T>): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  element | HTMLElement | The element to set the value for. |
|  value | [DesignTokenValue](./fast-foundation.designtokenvalue.md)<!-- -->&lt;T&gt; \| [DesignToken](./fast-foundation.designtoken.md)<!-- -->&lt;T&gt; | The value. |

<b>Returns:</b>

void
