Skip to content

pantoken / plugins/pantoken/logos/src / getLogoSvg

Fonction: getLogoSvg()

getLogoSvg(product, layout?, colorMode?, lang?): string | undefined

Bêta

Obtenir le SVG brut d'un logo.

Paramètres

product

Product

Le produit.

layout?

LogoLayout = "horizontal"

La disposition (par défaut "horizontal").

colorMode?

LogoColorMode = "full-color"

Le traitement des couleurs (par défaut "full-color").

lang?

LogoLang

La langue du logotype localisé, si une variante traduite est souhaitée.

Retourne

string | undefined

La chaîne SVG, ou undefined si cette combinaison n'existe pas.

Exemples

Obtenir le logo Canvas horizontal par défaut en couleur complète

ts
import { getLogoSvg } from "@pantoken/plugin-logos";

const svg = getLogoSvg("canvas");

Choisir une mise en page et un traitement de couleur spécifiques

ts
import { getLogoSvg } from "@pantoken/plugin-logos";

const reversed = getLogoSvg("instructure", "stacked", "reversed");