Skip to content

pantoken / renderers/mintlify/src / toMintlifyConfig

Fonksiyon: toMintlifyConfig()

toMintlifyConfig(tokens): MintlifyTheme

Deneysel

Token IR'den Mintlify docs.json tema anahtarlarını oluşturun.

Parametreler

tokens

salt okunur Token[]

IR (ör. @pantoken/tokens'den).

Döndürür

MintlifyTheme

Mintlify docs.json'ye birleştirilecek colors + background anahtarları.

Örnek

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