• Home
  • Getting started
  • Foundation
    • Accessibility
    • Colour
    • Design principles
    • Typography
    • Iconography
    • Pictograms
    • Illustrations
    • Brand assets
    • Motion
  • Components
  • Patterns
  • Writing (SE)
  • Guidelines
  • Brand portal

Search the design system

Foundation

Brand assets

Brand assets are SVGs rendered as individual React components. They preserve the original artwork’s width, height, viewBox and colours.

Import and usage

Copy the exact component import from the Library. For example:

import Powerplay from '@svenskaspel/ui/react/brands/Powerplay';

export function BrandLogo() {
  return <Powerplay className="h-8 w-auto" role="img" aria-label="Powerplay" />;
}

Sizing and colours

Set one dimension and let the other scale automatically, for example className="h-8 w-auto" or className="h-auto w-40". Avoid setting a fixed width and height that change the artwork’s proportions.

Keep the original colours. Choose a suitable original or inverted variant for the background instead of recolouring the SVG.

Accessibility

Give meaningful assets an accessible name using role="img" and aria-label. When the same brand name already appears in adjacent text, hide the decorative SVG from assistive technology:

<Powerplay className="h-8 w-auto" aria-hidden="true" focusable="false" />

When an asset is the only content of a link, give the link an accessible name that describes its destination.

Package documentation

Brands

This package contains all UI brands available for Svenska Spel. The brands are generated from SVG files fetched from Figma and transformed into React components.

Usage

All brands are available as React components. To use a brand, import the component and use it in your TSX. The brand component renders an SVG element.

All brands have preserved their initial width, height and viewBox from the original SVG file. To change the size of a brand, use Tailwind CSS classes, e.g. <PowerplayInverted className="max-h-5 w-auto lg:max-h-8" />.

import PowerplayInverted from '@svenskaspel/ui/react/brands/PowerplayInverted';

const MyComponent = () => (
  <div>
    <PowerplayInverted />
  </div>
);

export default MyComponent;

Add new or update brands

Icons, pictograms, brands and logos in SVG format found in Figma can be generated into React components through our SVG generator script which you can find in packages/ui/scripts.

pnpm --filter @svenskaspel/ui generate-brands
FoundationBrand assets / Library
FoundationMotion / Basics

© DesignTech - AB Svenska Spel

What's newTerms of useAccessibility statementCookiesTeams channel [Internal]@svenskaspel/ui version
4.4.0

Feedback

We always want to improve the Design System and would be thrilled to get your feedback.

Please share your wisdom with us.

Microsoft Teams [internal]

Designsystem@svenskaspel.se