Skip to content

pantoken / plugins/pantoken/logos/src / getLogoSvg

Function: getLogoSvg()

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

Beta

Get a logo's raw SVG.

Parameters

product

Product

The product.

layout?

LogoLayout = "horizontal"

The layout (default "horizontal").

colorMode?

LogoColorMode = "full-color"

The color treatment (default "full-color").

Returns

string | undefined

The SVG string, or undefined if that combination doesn't exist.

Examples

Get the default horizontal, full-color Canvas logo

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

const svg = getLogoSvg("canvas");

Pick a specific layout and color treatment

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

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