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

## DesignToken.subscribe() method

Subscribes a subscriber to change records for a token. If an element is provided, only change records for that element will be emitted.

<b>Signature:</b>

```typescript
subscribe(subscriber: DesignTokenSubscriber<this>, target?: HTMLElement): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  subscriber | [DesignTokenSubscriber](./fast-foundation.designtokensubscriber.md)<!-- -->&lt;this&gt; |  |
|  target | HTMLElement |  |

<b>Returns:</b>

void
