diff --git a/README.md b/README.md index d272c6d..31ced48 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,18 @@ +# โœจ Features -

Icons for Developer, Powered by DETA โšก

- -
- -# Features - -- [Features](#features) -- [Design](#design) -- [Customization](#customization) +- [โœจ Features](#-features) +- [๐ŸŽจ Design](#-design) +- [๐Ÿงช Customization](#-customization) - [icons](#icons) - [cols](#cols) - [iconBgColor](#iconbgcolor) -- [Icons List](#icons-list) - -# Design +- [๐ŸŽ‰ Icons List](#-icons-list) -I use Figma to design all icons. Each icon size is `256 x 256`, radius is `56`, inline verctor max width or height is `200`, recomended value is `180`. +# ๐ŸŽจ Design -> ๐ŸŽจ Figma Resource [https://www.figma.com/file/9MzhQygAIiTlJj79UbpBHK/DevIcons](https://www.figma.com/file/9MzhQygAIiTlJj79UbpBHK/DevIcons) +See all icons in [Figma](https://www.figma.com/file/9MzhQygAIiTlJj79UbpBHK/DevIcons). -# Customization +# ๐Ÿงช Customization ## icons @@ -56,7 +49,7 @@ Change the `&iconBgColor=F3F4F6` to fill a rect to each icon. [![](https://icons.anoyi.com/?iconBgColor=F3F4F6&icons=python,java,docker,kubernetes,html5,css3)](https://anoyi.com/dev-icons) -# Icons List +# ๐ŸŽ‰ Icons List Please visite [https://anoyi.com/dev-icons](https://anoyi.com/dev-icons) to see all icons with names. diff --git a/main.py b/main.py index 25c0fc1..a25c08b 100644 --- a/main.py +++ b/main.py @@ -8,6 +8,7 @@ GAP = 48 ICON_SIZE = 256 + GAP PADDING = 0 +SCALE = 48 / 256 # svg files FILES = os.listdir('./icons') @@ -22,7 +23,9 @@ def generate_svg(icon_names, cols, iconBgColor): icon_bg_rect = f'' if iconBgColor else '' return f""" + {''.join([f'{icon_bg_rect}{icon}' for index, icon in enumerate(svgs)])} + """.strip()