@ony/icons v0.9.7
@ony/icons
А package to generate icons system. Сourtesy of ONY Digital. Supports 2 output modes: django templates and jsx
config
Create icons.config.json
file in root of your project
prefix
: prefix for filenamesmode
: django or jsxentry
: input path to directory with.svg
filesoutput
: depends on current mode- django mode:
symbols
: output path for a file with svg symbols setscss
: output path for a file stylesincludes
: output path for a folder with django templates includes
- jsx mode:
- in jsx mode
output
property is type of string path to a folder where jsx components should be placed
- in jsx mode
- django mode:
example for django templates:
{
"prefix": "Icon",
"mode": "django",
"entry": "./icons",
"output": {
"symbols": "templates/UI/icons.html",
"scss": "client/components/UI/Icons.scss",
"includes": "templates/UI/Icons"
}
}
example for jsx:
{
"prefix": "Icon",
"mode": "jsx",
"entry": "test/icons2",
"output": "client/UI/Icons"
}
cli params
--config path
: custom path to a config file
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago