A library of Homeday's icons and illustrations. The project is automatically updated when a new version of our Figma library is published.
The available assets can be found under the assets directory.
Icons are clustered in a Figma file based on their sizes as follows: Large, Medium, Medium-old, Small
This project is owned by @ilyasmez, Homeday's frontend (with the support of the design team).
The package can be installed from NPM:
npm i homeday-assets
The package contains different kinds of assets, and they are grouped under subdirectories:
import { mail } from 'homeday-assets/S';
import { yinYang } from 'homeday-assets/M';
import { yinYang as yinYangLarge } from 'homeday-assets/L';
The S
collection (icons) is the default, so it can be used just as:
import { mail } from 'homeday-assets';
-
Fork the repo.
-
Clone the repo:
git clone https://github.com/YOUR-USERNAME/homeday-assets
- Make sure that you're using a supported node version (v14.x.x), if you use NVM, run:
nvm install
nvm use
- Install the dependencies:
npm i
The project is self-sustainable, which means that it updates itself when a new version of our Figma library is published. So if your change is about adding/updating/removing an asset, please contact the design team to make that change in the Figma library, it will be added to this repo automatically afterwards. If you're not part of Homeday's organization, please create an issue.
- Make sure that they are already available on our Figma library.
- Add an entry in the assets-importer's config file.
- Run the import script:
npm run import-assets
All these modules are being used automatically by our CI, and you'll rarely have to invoke them manually.
Imports the assets from the Figma libary... Read more.
Detects if the changes made are patch (an asset has been modified), minor (new assets have been added) or major (an asset has been removed, renamed or moved), creates a descriptive commit and pushes it to the main branch of the repo.
The module can be invoked with:
npm run sync-repo
Builds the package that will be published on NPM. Its role is to include just the necessary files in the package (assets, package.json and the index files) and also make them easy to consume (direct subdirectories).
The build can be found in the dist
directory.
The module can be invoked with:
npm run build
TBA
See Development to learn how to make changes.
This project follows forking workflow. In addition to Gitmoji as a commits naming convention.
- Use a meaningful title when merging your PR.
- Give the title a semantic meaning through emojis. Please use emoji first, then the text.
- 💥 - marks breaking changes (MAJOR version change)
- ✨ - marks new feature (MINOR version change)
- The other gitmojis are either a patch or have no effect at all.
It is important to follow this convention, because our automated releases depend on it.