Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

@canonical/ds-assets

Package Overview
Dependencies
Maintainers
26
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@canonical/ds-assets

Assets for Pragma.

latest
Source
npmnpm
Version
0.25.0
Version published
Maintainers
26
Created
Source

@canonical/ds-assets

Icons, fonts, and shared visual assets for the Pragma design system.

Installation

bun add @canonical/ds-assets

Icons

The package provides over 150 SVG icons for interface actions, status indicators, navigation, and brand logos.

TypeScript Usage

Import the type-safe constant and type:

import { ICON_NAMES, type IconName } from "@canonical/ds-assets";

// Type-safe icon name
const iconName: IconName = "search";

// Validate user input
const isValidIcon = (name: string): name is IconName =>
  ICON_NAMES.includes(name as IconName);

SVG Files

Raw SVG files live in the icons/ directory. Each icon uses a 16x16 viewBox and currentColor fill, allowing icons to inherit text colour from their context.

Icons can be referenced directly via SVG's <use> element:

<svg width="16" height="16">
  <use href="path/to/search.svg#search" />
</svg>

See docs/ICONS.md for the complete icon specification, naming conventions, and migration notes from Vanilla.

Fonts

Variable woff2 fonts for Ubuntu Sans and Ubuntu Sans Mono live in fonts/ubuntu-sans/.

Source: canonical/Ubuntu-Sans-fonts (fonts/webfont/ — variable font builds).

License: The fonts/ubuntu-sans/ directory is licensed under the Ubuntu Font License v1.0, not LGPL like the rest of this package.

These fonts are consumed by @canonical/styles/fonts via @font-face declarations. You don't need to reference them directly unless building custom font loading.

FAQs

Package last updated on 17 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts