Skip to main content

tokenValues

Every design-token value as plain typed data: the oklch colours, spacing, sizes and type scale that tokens turns into CSS custom properties. Read it where the value itself is needed, such as in a contrast calculation.

This is a namespace exported by @mapcairn/theme, checked against version 0.2.0.

Signature​

import { tokenValues } from "@mapcairn/theme";

namespace tokenValues

Source: packages/theme/src/index.ts:47