RoadieRoadie
  • Home
  • Foundations
  • Tokens
  • Components
  • Charts
  • Widgets
  • Appearance
HomeFoundationsComponents
Appearance

Components

  • Navigation

    • Breadcrumb
    • Navigator
    • Steps
    • Tabs
  • Layout

    • Pane
    • ScrollArea
    • Separator
  • Actions

    • Button
    • IconButton
    • Toggle
    • Toggle group
  • Forms

    • Forms overview
    • Autocomplete
    • Checkbox
    • Combobox
    • Field
    • Fieldset
    • Input
    • Label
    • Number field
    • OTP field
    • Radio group
    • Select
    • Slider
    • Switch
    • Textarea
  • Overlays

    • Dialog
    • Drawer
    • Menu
    • Popover
    • Toast
    • Tooltip
  • Collections

    • Accordion
    • Card
    • Carousel
    • Collapsible
    • DataTable
    • List
    • Marquee
    • Table
  • Status

    • Badge
    • Callout
    • Countdown
    • Empty state
    • Meter
    • Progress
    • Skeleton
    • Sparkline
    • StatTile
  • Media & brand

    • Avatar
    • Icon Tile
    • Image
    • Logo
    • QR code
    • SpotIllustration
  • Text

    • CalendarTile
    • Code
    • DateTime
    • Duration
    • Highlight
    • Mark
    • Prose

Logo

Logo

The Oztix logo, always in its fixed brand colour.

Import

import { Logo } from '@oztix/roadie-components/logo'

Examples

Default

<Logo />

Variants

normal is the mark and the wordmark together. mark is the mark alone, for tight spaces such as an app icon or a collapsed navigation. wordmark is the word alone.

<div className='grid justify-items-start gap-6'>
  <Logo variant='normal' />
  <Logo variant='mark' />
  <Logo variant='wordmark' />
</div>

Product

product pairs the mark with a product name, rendered as live text in place of the wordmark. When it's set, variant is ignored.

<Logo product='Studio' />

Sizes

The logo's height is set with the size prop, not a className. One value scales the mark, the gap and the product name together. xs is 20px, sm 24px, md 32px (the default), lg 40px, xl 48px.

Logo sizes sit one step below Button and IconTile, whose md is 40px, so a size='md' logo pairs with a size='sm' button.

<div className='grid justify-items-start gap-6'>
  <Logo size='xs' />
  <Logo size='sm' />
  <Logo size='md' />
  <Logo size='lg' />
  <Logo size='xl' />
  <Logo product='Studio' size='lg' />
</div>

Colour

The logo's colour is fixed. It is always Oztix blue, identical in light and dark mode, and unaffected by a surrounding intent.

<div className='flex flex-wrap items-center gap-6'>
  <Logo />
  <div className='intent-danger'>
    <Logo />
  </div>
</div>

Collapsing

The logo-wordmark and logo-product slots hold their own gap and clip, so a parent can collapse either to the mark's square by animating its grid-template-columns from 1fr to 0fr.

Guidelines

Size the logo with the size prop

<Logo size='lg' />

Do

Set one height through size. The width follows the logo's proportions.

<Logo className='h-12 w-40' />

Don’t

Don't set a width or a separate height. That stretches or crops the artwork and leaves the gap and product name at the old size.

Keep product names short

Studio

Do

Use the product's one- or two-word name, in title case.

Oztix Studio

Don’t

Don't repeat "Oztix" or add a tagline. The mark already says Oztix, and the name never wraps.

The logo colour is fixed

<Logo />

Do

The logo is always Oztix blue. It doesn't take an intent or a colour prop, and it doesn't follow a surrounding intent.

<Logo className='text-[#0191eb]' />

Don’t

Don't hard-code a colour. It won't change with the theme.

Accessibility

  • The logo is one image with the accessible name "Oztix". A product logo is named "Oztix" plus the product, such as "Oztix Studio".
  • Pass aria-label to name it something else, such as "Oztix home" inside a link.
  • When the logo sits next to text that already says Oztix, pass aria-hidden and it drops its role and name.
  • The inner SVGs are always hidden from assistive technology.
  • The logo is always left to right, so a right-to-left page never mirrors the lockup. It takes no dir prop.

API reference

Logo

variant"mark" | "normal" | "wordmark"

`normal` is the mark and wordmark; `mark` and `wordmark` are one part each.

Defaults to normal.

productstring

Product name set as live text in place of the wordmark, naming the logo `Oztix {product}`.

size"xs" | "sm" | "md" | "lg" | "xl"

The logo's height: `xs` 20px, `sm` 24px, `md` 32px, `lg` 40px, `xl` 48px.

Defaults to md.

Previous page← ImageNext pageQR code →