• 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

Pictograms

Pictograms are SVGs fetched from the Figma API and rendered as individual React components. They are larger than icons and typically displayed at 6em × 6em.

Import and usage

To use a pictogram in your project, simply import it from the pictograms package and include it in your JSX:

import Fika from '@svenskaspel/ui/react/pictograms/Fika';

const MyComponent = () => (
  <Fika />
);

export default MyComponent;

Sizes and colours

Default size and colour
Size 2xl
Size 8xl
Colour primary
Colour success
Colour attention

Code for the above examples

import Fika from '@svenskaspel/ui/react/pictograms/Fika';

const MyComponent = () => (
  <div className="grid grid-cols-1 gap-4 mb-12 md:grid-cols-2">
    <div className="flex flex-col gap-4">
      <div className="flex flex-row items-center gap-4 rounded bg-layer-contrast-on-base px-4 py-4">
        <div>
          <Fika />
        </div>
        <span>Default size and color</span>
      </div>
      <div className="flex flex-row items-center gap-4 rounded bg-layer-contrast-on-base px-4 py-4">
        <div className="text-2xl">
          <Fika />
        </div>
        <span>Size 2xl</span>
      </div>
      <div className="flex flex-row items-center gap-4 rounded bg-layer-contrast-on-base px-4 py-4">
        <div className="text-4xl">
          <Fika />
        </div>
        <span>Size 8xl</span>
      </div>
    </div>
    <div className="flex flex-col gap-4">
      <div className="flex flex-row items-center gap-4 rounded bg-primary px-4 py-4 text-primary-fg">
        <div>
          <Fika />
        </div>
        <span>Color primary</span>
      </div>
      <div className="flex flex-row items-center gap-4 rounded bg-success px-4 py-4 text-success-fg">
        <div className="text-2xl">
          <Fika />
        </div>
        <span>Color success</span>
      </div>
      <div className="flex flex-row items-center gap-4 rounded bg-attention px-4 py-4 text-attention-fg">
        <div className="text-4xl">
          <Fika />
        </div>
        <span>Color attention</span>
      </div>
    </div>
  </div>
);

export default MyComponent;
FoundationPictograms / Library
FoundationIllustrations

© 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