Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@warp-ds/icons
Advanced tools
The icon set for WARP, imported from (Figma project)[!https://www.figma.com/file/yEx16ew6S0Xgd579dN4hsM/Warp---Icons?type=design&node-id=150-113&mode=design&t=TRtIuPlsDoYlbuqd-0].
Note that the icons in the "src/raw" folder in this repository should never be used directly, as they aren't optimized. Also note that Raw icons don't contain title element and hence won't be follow accessibility guidelines
npm install @warp-ds/icons
import { IconBag16 } from '@warp-ds/icons/react';
<IconBag16 />
npm install @warp-ds/icons
import { IconChevronRight16 } from '@warp-ds/icons/vue';
<icon-chevron-right-16 />
You will need to install both Warp Elements and Lit Element which is the library we use for custom elements
npm install lit @warp-ds/icons
Import elements icons once to use them in the entire app. Once imported, run your script through whatever bundling process your app uses (Rollup, Esbuild, etc) after which the component can be used in the page.
import '@warp-ds/icons/elements';
<w-icon-attachment-16></w-icon-attachment-16>
<w-icon-attachment-24></w-icon-attachment-24>
Or import individual icons:
import "@warp-ds/icons/elements/alert-16";
<w-icon-alert-16></w-icon-alert-16>
Icons should never be added or edited manually in this repository, as the source of truth is in Figma.
If you are running the import script for the first time, it will prompt your for a Figma access token. The token is is required to access Figma's API. It can be generated on your Figma account settings page.
The import script may store the token to a local file, so you won't have to supply the token again on subsequent runs.
To update the icons, run the following script. If it has a valid Figma access token (see previous section), it will proceed to download all the icons as SVG files.
./scripts/import.js
or
pnpm import
You can open a local preview of the icons. Use this to verify that the icons looks as they should. Run the following command.
pnpm dev
We are bundling types now for all named exports. To make Typescript compiler compliant to these changes you'll need to use "module": "NodeNext"
in your tsconfig and then all the imports would have types.
This project is continuously published to NPM using a next
tag (e.g. 1.1.0-next.1
).
Anyone needing to use the latest changes of this package can point to the next
version while waiting for the stable release.
Detailed changes for each release can be found in the CHANGELOG file.
@warp-ds/icons is available under the Apache-2.0 software license.
FAQs
WARP's icon set
The npm package @warp-ds/icons receives a total of 365 weekly downloads. As such, @warp-ds/icons popularity was classified as not popular.
We found that @warp-ds/icons demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.