-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat/DES-679-alt-required-on-image
- Loading branch information
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!-- @license CC0-1.0 --> | ||
|
||
# Contributing Guidelines | ||
|
||
## Importing icons from Figma | ||
|
||
We create and update icons in Figma, then import them into this package for distribution. | ||
|
||
**Important**: Only export icons from Figma for use in this package. Do not use these icons directly in an application. | ||
|
||
To export all icons from [the Figma file](https://www.figma.com/design/9IGm6IdPUYizBNGsUnueBd/Amsterdam-Design-System?node-id=6852-5124), use Figma's built-in SVG export feature. | ||
Select the frame containing all the icon shapes, press `Enter` to select direct children and then press `Enter` again to select all icon components. | ||
In the right-hand sidebar, click the plus sign next to Export. Choose SVG and export. | ||
Copy these files over to the `icons` folder and run the following command to optimize them: | ||
|
||
```sh | ||
npm run optimize-icons | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* eslint-disable no-undef */ | ||
module.exports = { | ||
plugins: [ | ||
'removeDimensions', | ||
'removeUselessStrokeAndFill', | ||
{ | ||
name: 'removeAttrs', | ||
params: { | ||
attrs: '(fill|stroke)', | ||
}, | ||
}, | ||
], | ||
} |