Logo
The AMODA logo for app sidebars and headers. An inline SVG in the current text color; the source file is packages/pilar-ui/brand/amoda-logo.svg.
Usage
import { Logo } from '@pilar-amoda/ui/logo';Sizes
sm 16, default 24 (the sidebar), lg 32: the height of the artwork; the width follows it.
import { Logo } from '@pilar-amoda/ui/logo';
/** The full logo at its three sizes (height 16, 24, 32). */
export const LogoSizes = () => (
<div className="flex flex-col items-start gap-4">
<Logo size="sm" />
<Logo />
<Logo size="lg" />
</div>
);Mark and dark surfaces
variant="mark" keeps the symbol alone for tight spaces. The logo takes the text color, so it works on any surface.
import { Logo } from '@pilar-amoda/ui/logo';
/** The mark alone, and the logo on a dark surface (it takes the text color). */
export const LogoMarkAndInverse = () => (
<div className="flex items-center gap-6">
<Logo variant="mark" size="lg" />
<div className="rounded-pilar-lg bg-pilar-primary text-pilar-primary-foreground p-4">
<Logo />
</div>
</div>
);Do and don't
Do: link the sidebar logo to home with a plain anchor.
Don't: stretch it: set the height, never both width and height.
Don't: recolor parts of it: it is one color, the text color.