---
url: /api/packages/core/src.md
---
[pantoken-root](../../../index.md) / core

# core

Beta

`@pantoken/core` — the pantoken transformer.

Defines the uniform plugin contract ([PantokenPlugin](interfaces/PantokenPlugin.md)) and adapts the resolved token IR for
the native lineage ([toStyleDictionary](functions/toStyleDictionary.md)). The upstream-resolving transform (`buildTokens`,
which needs the GitHub-only `@instructure/instructure-design-tokens`) lives on the separate
`@pantoken/core/build` entry so this main entry stays free of that exotic dependency.

## Interfaces

* [VectorDrawableOptions](interfaces/VectorDrawableOptions.md)
* [AssetFile](interfaces/AssetFile.md)
* [CollectIconsOptions](interfaces/CollectIconsOptions.md)
* [IconToken](interfaces/IconToken.md)
* [IconLayer](interfaces/IconLayer.md)
* [Leaf](interfaces/Leaf.md)
* [SdLeaf](interfaces/SdLeaf.md)
* [TokenModify](interfaces/TokenModify.md)
* [TokenMeta](interfaces/TokenMeta.md)
* [Token](interfaces/Token.md)
* [TokenInput](interfaces/TokenInput.md)
* [IconEntry](interfaces/IconEntry.md)
* [CssContribution](interfaces/CssContribution.md)
* [TokenHookContext](interfaces/TokenHookContext.md)
* [IconHookContext](interfaces/IconHookContext.md)
* [CssHookContext](interfaces/CssHookContext.md)
* [RehypeHookContext](interfaces/RehypeHookContext.md)
* [PantokenPlugin](interfaces/PantokenPlugin.md)

## Type Aliases

* [Theme](type-aliases/Theme.md)
* [IconResolver](type-aliases/IconResolver.md)
* [Mode](type-aliases/Mode.md)

## Variables

* [ICON_COLOR_SPECIAL_VALUES](variables/ICON_COLOR_SPECIAL_VALUES.md)

## Functions

* [applyModify](functions/applyModify.md)
* [modifyExpression](functions/modifyExpression.md)
* [decodeIconSvg](functions/decodeIconSvg.md)
* [getIconSvgs](functions/getIconSvgs.md)
* [toVectorDrawable](functions/toVectorDrawable.md)
* [toXcodeImageset](functions/toXcodeImageset.md)
* [flutterIconManifest](functions/flutterIconManifest.md)
* [collectIcons](functions/collectIcons.md)
* [defineToken](functions/defineToken.md)
* [dedupeByName](functions/dedupeByName.md)
* [runTokenPlugins](functions/runTokenPlugins.md)
* [runIconPlugins](functions/runIconPlugins.md)
* [collectLeaves](functions/collectLeaves.md)
* [referenceToVarName](functions/referenceToVarName.md)
* [resolveValue](functions/resolveValue.md)
* [varName](functions/varName.md)
* [resolveReferences](functions/resolveReferences.md)
* [toStyleDictionary](functions/toStyleDictionary.md)
* [toKebab](functions/toKebab.md)
* [cssSyntaxForValue](functions/cssSyntaxForValue.md)
* [isContextual](functions/isContextual.md)
