Skip to content

Logo

The mark of Sypnia, a lid and its light, with the name; the product it belongs to sits beside it in a small frame.

import { Logo } from '@sypnia/ui/react'

On this page
  1. The logo and its products
  2. In Astro
  3. When to use it
  4. For everyone
  5. Props

The logo and its products

On phones the product frame hides inside the app shell, so the top bar keeps room.

Code
import { Logo } from '@sypnia/ui/react';

// The mark (a lid and its light) and the name; the product it belongs to sits beside it in a small frame.
export default function Marks() {
  return (
    <div className="sy-stack" style={{ '--gap': 'var(--s-5)' } as React.CSSProperties}>
      <div className="sy-row" style={{ '--gap': 'var(--s-6)' } as React.CSSProperties}>
        <Logo />
        <Logo product="UI" />
        <Logo product="Data" />
        <Logo product="Docs" />
      </div>
      <div className="sy-cols" style={{ '--cols': 2, '--gap': 0 } as React.CSSProperties}>
        <div data-surface="night" style={{ padding: 'var(--s-5)', background: 'var(--bg)' }}><Logo product="Telemetry" /></div>
        <div data-surface="paper" style={{ padding: 'var(--s-5)', background: 'var(--bg)' }}><Logo product="Telemetry" /></div>
      </div>
    </div>
  );
}

In Astro

Wrap it in a link to the home, with a name that says where it goes.

Code
---
import Logo from '@sypnia/ui/astro/Logo.astro';
---
<a href="/" aria-label="Sypnia UI, home" style="color: inherit; text-decoration: none"><Logo product="UI" /></a>

When to use it

Use it when

  • The top of every Sypnia app and site.

Do not use it when

  • Drawing the mark again or recolouring it: it follows the surface by itself.
  • Using it as decoration inside content.

For everyone

  • The mark is decoration; the name is text. As a link it needs a name like «Sypnia UI, home».

Props

LogoTypeDefault
product string
  1. The logo and its products
  2. In Astro
  3. When to use it
  4. For everyone
  5. Props

    Search pages, sections and terms