Skip to content

pantoken / platforms/email/src / emailTokens

Ֆունկցիա: emailTokens()

emailTokens(mode?): Record<string, string>

Փորձարկումային

Ընտրեք ռեժիմի token քարտեզը (ստանդարտ "light").

Պարամետրեր

mode?

Mode = "light"

Վերադարձվող արժեք

Record<string, string>

Օրինակներ

Տոկենը տեղադրել էլփոստի բջիջում (լույս ռեժիմ)

ts
import { emailTokens } from "@pantoken/email";

const t = emailTokens();
const html = `<td style="background:${t.colorBackgroundBrand};color:${t.colorTextOnColor}">Hi</td>`;

Մութ ռեժիմ

ts
import { emailTokens } from "@pantoken/email";

const t = emailTokens("dark");