Skip to content
Kappa
DicehubLogo
@dicehub/kappav1.0.0

DicehubLogo

Official dicehub SVG artwork with glyph, horizontal, and vertical variants and an outlined Nunito Bold wordmark.

<script setup>
import { DicehubLogo } from "@dicehub/kappa/components/dicehub-logo";
</script>

<template>
  <DicehubLogo style="width: 18rem;" />
</template>

Installation

Barrel

import {
  DicehubLogo,
  PoweredByDicehub,
  generateDicehubLogoSvg,
} from "@dicehub/kappa";

Granular

import {
  DicehubLogo,
  PoweredByDicehub,
  generateDicehubLogoSvg,
} from "@dicehub/kappa/components/dicehub-logo";

Usage

The dicehub wordmark uses the supplied Nunito Bold letterforms as SVG paths. It stays independent of the application's font and requires no font download.

<script setup>
import { DicehubLogo } from "@dicehub/kappa/components/dicehub-logo";
</script>

<template>
  <DicehubLogo style="width: 9rem;" />
</template>

Examples

Glyph Only

Use variant="glyph" to display just the dicehub mark without the wordmark.

<script setup>
import { DicehubLogo } from "@dicehub/kappa/components/dicehub-logo";
</script>

<template>
  <DicehubLogo variant="glyph" style="width: 6rem;" />
</template>

Vertical Logo

Use variant="vertical" for the mark above the wordmark. The supplied geometry is preserved; every path follows the selected color.

<script setup>
import { DicehubLogo } from "@dicehub/kappa/components/dicehub-logo";
</script>

<template>
  <div style="display: flex; flex-wrap: wrap; align-items: center; gap: 2rem;">
    <DicehubLogo variant="vertical" style="width: 6rem;" />
    <div style="padding: 1rem; background: white;">
      <DicehubLogo variant="vertical" color="black" style="width: 6rem;" />
    </div>
    <div style="padding: 1rem; background: black;">
      <DicehubLogo variant="vertical" color="white" style="width: 6rem;" />
    </div>
  </div>
</template>

Color Variants

The default color scheme uses dicehub ink (#333333) in light mode and white in dark mode through --kappa-dicehub-logo-foreground. Explicit black and white stay fixed in both themes. Existing --kappa-dicehub-logo-ink overrides remain supported.

<script setup>
import { DicehubLogo } from "@dicehub/kappa/components/dicehub-logo";
</script>

<template>
  <div style="display: flex; flex-wrap: wrap; align-items: center; gap: 2rem;">
    <DicehubLogo color="color" style="width: 7rem;" />
    <div style="padding: 1rem; border-radius: 0.5rem; background: white;">
      <DicehubLogo color="black" style="width: 7rem;" />
    </div>
    <div style="padding: 1rem; border-radius: 0.5rem; background: black;">
      <DicehubLogo color="white" style="width: 7rem;" />
    </div>
  </div>
</template>

Glyph Color Variants

<script setup>
import { DicehubLogo } from "@dicehub/kappa/components/dicehub-logo";
</script>

<template>
  <div style="display: flex; flex-wrap: wrap; align-items: center; gap: 2rem;">
    <DicehubLogo variant="glyph" color="color" style="width: 3rem;" />
    <div style="padding: 1rem; border-radius: 0.5rem; background: white;">
      <DicehubLogo variant="glyph" color="black" style="width: 3rem;" />
    </div>
    <div style="padding: 1rem; border-radius: 0.5rem; background: black;">
      <DicehubLogo variant="glyph" color="white" style="width: 3rem;" />
    </div>
  </div>
</template>

Sizing

Size the logo using CSS width. The height adjusts automatically to maintain aspect ratio.

<script setup>
import { DicehubLogo } from "@dicehub/kappa/components/dicehub-logo";
</script>

<template>
  <div style="display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.5rem;">
    <DicehubLogo style="width: 5rem;" />
    <DicehubLogo style="width: 7rem;" />
    <DicehubLogo style="width: 11rem;" />
  </div>
</template>

Brand Assets Menu

Combine the logo with a native disclosure menu. Use generateDicehubLogoSvg() to get copy-paste ready SVG markup.

<script setup>
import { ref } from "vue";
import {
  DicehubLogo,
  generateDicehubLogoSvg,
} from "@dicehub/kappa/components/dicehub-logo";

const copied = ref(null);

const copyToClipboard = async (variant) => {
  await navigator.clipboard.writeText(generateDicehubLogoSvg({ variant }));
  copied.value = variant;
};

const downloadLogo = (variant = "full") => {
  const blob = new Blob([generateDicehubLogoSvg({ variant })], { type: "image/svg+xml" });
  const url = URL.createObjectURL(blob);
  const link = document.createElement("a");
  link.href = url;
  link.download = variant === "vertical" ? "dicehub-logo-vertical.svg" : "dicehub-logo.svg";
  link.click();
  window.setTimeout(() => URL.revokeObjectURL(url), 0);
};
</script>

<template>
  <details>
    <summary>
      <DicehubLogo title="dicehub" style="width: 6rem;" />
    </summary>
    <button type="button" @click="copyToClipboard('glyph')">
      {{ copied === "glyph" ? "Copied!" : "Copy mark as SVG" }}
    </button>
    <button type="button" @click="copyToClipboard('full')">
      {{ copied === "full" ? "Copied!" : "Copy full logo as SVG" }}
    </button>
    <button type="button" @click="copyToClipboard('vertical')">
      {{ copied === "vertical" ? "Copied!" : "Copy vertical logo as SVG" }}
    </button>
    <button type="button" @click="downloadLogo()">Download brand assets</button>
    <button type="button" @click="downloadLogo('vertical')">Download vertical logo</button>
    <a href="https://dicehub.com" target="_blank" rel="noopener noreferrer">
      Visit brand guidelines
    </a>
  </details>
</template>

PoweredByDicehub

A pre-built "Powered by dicehub" text badge for footers and attribution. The dicehub name uses bundled Nunito ExtraBold (800); "Powered by" keeps the application font.

Basic Usage

<script setup>
import { PoweredByDicehub } from "@dicehub/kappa/components/dicehub-logo";
</script>

<template>
  <PoweredByDicehub />
</template>

Color Variants

<script setup>
import { PoweredByDicehub } from "@dicehub/kappa/components/dicehub-logo";
</script>

<template>
  <div style="display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;">
    <PoweredByDicehub />
    <PoweredByDicehub color="black" />
    <div style="padding: 0.75rem; border-radius: 0.5rem; background: black;">
      <PoweredByDicehub color="white" />
    </div>
  </div>
</template>

SVG Generation

Use generateDicehubLogoSvg() to get copy-paste ready SVG markup for non-Vue contexts.

Generated files are self-contained: the default uses #333333. Set color: "white" for a dark background. All three variants use outlined artwork, with no CSS or font dependency.

import { generateDicehubLogoSvg } from "@dicehub/kappa/components/dicehub-logo";

// Generate mark SVG
const glyphSvg = generateDicehubLogoSvg({ variant: "glyph" });

// Generate full logo SVG
const fullSvg = generateDicehubLogoSvg({ variant: "full" });

// Generate a white vertical logo for a dark background
const verticalSvg = generateDicehubLogoSvg({ variant: "vertical", color: "white" });

// Generate black logo
const blackSvg = generateDicehubLogoSvg({ color: "black" });

// Copy to clipboard
await navigator.clipboard.writeText(
  generateDicehubLogoSvg({ variant: "glyph", color: "color" }),
);

API Reference

DicehubLogo renders an SVG and accepts standard SVG attributes.

The glyph groups its original paths into kappa-dicehub-logo__face elements with data-face="top | right | left". Each group includes its inset mark and an invisible hover area. AppShell enables these areas for stable hover feedback across letter cutouts and face gaps. Other logo usage keeps its standard appearance and pointer behaviour.

DicehubLogo

PropTypeDefaultDescription
variant"glyph" | "full" | "vertical""full"Glyph shows the mark, full places the wordmark beside it, and vertical stacks them.
color"color" | "black" | "white""color"Color follows the theme: dicehub ink in light mode and white in dark mode. Black and white stay fixed.
titlestring"dicehub logo"Accessible label for the SVG.

PoweredByDicehub

Extends HTMLAnchorElement and accepts standard anchor attributes.

PropTypeDefaultDescription
color"color" | "black" | "white""color"Color scheme for the mark and badge text.
hrefstring"https://dicehub.com"Link destination.
targetstring"_blank"Anchor target.
relstring"noopener noreferrer"Anchor relationship. A safe external value is applied by default.