Skip to content

pantoken / renderers/mintlify/src / toMintlifyConfig

Funktion: toMintlifyConfig()

toMintlifyConfig(tokens): MintlifyTheme

Experimentell

Bygg Mintlify docs.json temanycklar från en token IR.

Parametrar

tokens

skrivskyddad Token[]

IR:n (t.ex. från @pantoken/tokens).

Returnerar

MintlifyTheme

De colors + background nycklarna att slå ihop till en Mintlify docs.json.

Exempel

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" } } }