<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@csstools/css-parser-algorithms](./css-parser-algorithms.md) &gt; [WhitespaceNode](./css-parser-algorithms.whitespacenode.md) &gt; [tokens](./css-parser-algorithms.whitespacenode.tokens.md)

## WhitespaceNode.tokens() method

Retrieve the tokens for the current whitespace. This is the inverse of parsing from a list of tokens.

**Signature:**

```typescript
tokens(): Array<CSSToken>;
```
**Returns:**

Array&lt;CSSToken&gt;

