New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@duetds/icons

Package Overview
Dependencies
Maintainers
3
Versions
274
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@duetds/icons

This package includes Duet Design System Icons and related utilities.

  • 4.0.65
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
368
decreased by-60.17%
Maintainers
3
Weekly downloads
 
Created
Source

Build Status Version

Duet Icons

This package includes Duet Icons and related tools.

Usage

For usage instructions, please see Duet Design System documentation.

Architecture

This package uses sass-lint, svglint, jsonlint to lint.

The file scripts/prepublish.js is used to build the package for publishing.

On build, each icon under the assets directory is converted to an individual CommonJS module. Each of these modules exports an object matching the following type:

type DuetIcon = {
  tags: string // space-separated list of tags
  title: string
  svg: string
}

A Typescript type DuetIconName is exposed which enumerates all icon names:

type DuetIconName = "action-add" | "action-add-small" // etc

The main file of the package exports a single object, containing all icons, which conforms to the following type:

type DuetIcons = Record<DuetIconName, DuetIcon>

Adding new icons

  1. Name new SVG icons following Duet’s icon naming guidelines and put them inside src/assets directory.
  2. If SVG Icon has not been optimized it must be done with either SVGO in command line or in web version of SVGO. Use default settings on web.
  3. Next, run npm run tags which will assist you in adding tags for any new icons.
  4. Finally, run npm run build to generate a new build.

Copyright © 2020 LocalTapiola/Turva.

FAQs

Package last updated on 05 Feb 2025

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc