Appearance
getCodeyImageUrl
TODO
Move this to the correct section as it is no longer part of the style package.
Images are published to our cdn in different folders depending on the image theme.
This helper will return the correct url for the image based on the image name and the theme it is part of.
The supported folders are provided by the CodeyImageTheme
type.
Usage
ts
import { getCodeyImageUrl } from "@xerius/codey-assets";
// Get `logo-name` image url from the `xerius` theme.
const logoUrl = getCodeyImageUrl("xerius", "logo-name");