---
id: fast-foundation.designtoken.getvaluefor
title: DesignToken.getValueFor() 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; [getValueFor](./fast-foundation.designtoken.getvaluefor.md)

## DesignToken.getValueFor() method

Get the token value for an element.

<b>Signature:</b>

```typescript
getValueFor(element: HTMLElement): StaticDesignTokenValue<T>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  element | HTMLElement | The element to get the value for |

<b>Returns:</b>

[StaticDesignTokenValue](./fast-foundation.staticdesigntokenvalue.md)<!-- -->&lt;T&gt;

- The value set for the element, or the value set for the nearest element ancestor.
