# Design Tokens

`@qlik/design-tokens` provides generated design token outputs in CSS, JavaScript, and JSON formats.

You can use it to:

- apply Qlik theme variables in the browser,
- reference token variables in JavaScript,
- consume full token metadata for tooling or documentation.

## Usage

### 1. Load theme CSS variables

Import the token stylesheet to enable theme variables for both:

- `[data-qlik-theme="qlik-light"]`
- `[data-qlik-theme="qlik-dark"]`

```ts
import "@qlik/design-tokens/dist/css/sprout-tokens.css";
```

### 2. Access token variables from JavaScript

```ts
import { tokens } from "@qlik/design-tokens";

// Token values are CSS variable references.
tokens.common_sizing_5xl === "var(--sprout-common-sizing-5xl)";
```

### 3. Read full token metadata

```ts
import tokenData from "@qlik/design-tokens/dist/json/sprout-tokens.json";

// Example: inspect token definitions programmatically.
console.log(tokenData);
```
