Brand
Logo
The Somewhere wordmark, drawn from the single source @somewhere-com/ds/logo.svg. It’s drawn in currentColor and cropped tight to the glyphs.
import { Logo } from "@somewhere-com/ds";
<Logo />
<a href="/" aria-label="Somewhere home"><Logo label="" /></a>
Props
label: the accessible name. Defaults to"Somewhere". Use""when the logo is decorative, for example inside a labelled home link.- It takes every SVG attribute.
refis forwarded.
Behaviour
- Colour: brand teal (
color.text.brand), and white (color.text.white) inside inverse sections, automatically. There’s no tone prop. - Size:
1emtall, with the width following the 431:60 ratio. Size it withfont-sizeorheight. - Clear space: at least the logo’s height on every side.
- Static files:
/logo/somewhere-wordmark{,-brand,-white}.svgon the docs site, for Webflow, Figma, and<img>. They’re generated from the source file:currentColor,color.text.brand, andcolor.text.white. - HTML: inline the SVG with
class="sw-logo"to get the same automatic colours.
Examples
Rendered from the Storybook stories. To change props and see every state live, open Logo in Storybook.