Skip to content

pantoken / renderers/mintlify/src / toMintlifyConfig

Functie: toMintlifyConfig()

toMintlifyConfig(tokens): MintlifyTheme

Experimenteel

Bouw de Mintlify docs.json thema-sleutels vanuit een token-IR.

Parameters

tokens

alleen-lezen Token[]

De IR (bijvoorbeeld van @pantoken/tokens).

Retourneert

MintlifyTheme

De colors + background sleutels om samen te voegen in een Mintlify docs.json.

Voorbeeld

ts
import { toMintlifyConfig } from "@pantoken/mintlify";
import { tokens } from "@pantoken/tokens";

const theme = toMintlifyConfig(tokens);
// { colors: { primary: "#1D354F", light: "#EEF4FD", dark: "#1D354F" },
//   background: { color: { light: "#F2F4F5", dark: "#10141A" } } }