Sketch Assistant for Helsinki Design System
The easiest way to install HDS Assistant is to click this link. The link will automatically install the assistant to your current Sketch file.
You can also download the latest tarball from releases and add the archive manually in Sketch assistant window.
Currently Sketch does not update assistants automatically. The only way to update assistant to a newer version is to follow the install instructions again. Upon reinstalling, the old version will be replaced with the new one.
Respect the shared layer styles. Don’t customise or break the linking to original style.
Respect the shared text styles. Don’t customise or break the linking to original style.
Remove disabled fills.
Remove disabled borders.
You have identical non-shared layer styles. All styles used in HDS components should be found in HDS libraries.
You have identical non-shared text styles. All typography used in HDS components should be found in HDS libraries.
Align elements and artboards to pixel grid.
Give artboards names that state their purpose or content.
Give pages names that state their purpose or content.
Give groups names that state their purpose or content.
Give shapes names that state their purpose or content.
Give symbols names that state their purpose or content. Use forward slash separator.
Delete empty groups.
Delete hidden groups and layers.
Ungroup unnecessary groups.
Avoid groups that have only one another group in them.
npm install
to install dependencies.npm run package-tarball
.hds-assistant-<version>.tgz
in the project root folder.In the project root folder, run npm test
. This will run the test set and show you the results.
Follow instructions in Sketch Assistant documentation. Remember also to add tests to your new rule. Tests are added to index.test.ts
file in the __tests__/
folder.