Skip to content

Commit

Permalink
added instruction for usage of different type of icons
Browse files Browse the repository at this point in the history
  • Loading branch information
swapnilsarwe committed Mar 5, 2021
1 parent fbd9fd3 commit eaf15ae
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 16 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ This changelog follows [the Keep a Changelog standard](https://keepachangelog.co
## 0.1.0 (2021-03-05)

Initial release.
Current package support [Material Icons 4.0.0](https://github.com/google/material-design-icons/releases/tag/4.0.0)
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,30 @@ And even use inline styles:
<x-gmdi-1k style="color: #555"/>
```

The solid icons can be referenced like this:
The outlined icons can be referenced like this:

```blade
<x-gmdi-o-1k/>
```

The round icons can be referenced like this:

```blade
<x-gmdi-r-1k/>
```

The sharp icons can be referenced like this:

```blade
<x-gmdi-s-1k/>
```

The two tone icons can be referenced like this:

```blade
<x-gmdi-tt-1k/>
```

### Raw SVG Icons

If you want to use the raw SVG icons as assets, you can publish them using:
Expand Down
17 changes: 2 additions & 15 deletions bin/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
set -e

DIRECTORY=$(cd `dirname $0` && pwd)
# DIST=$DIRECTORY/../dist
RESOURCES=$DIRECTORY/../resources/svg

SOURCE=$1
Expand All @@ -17,6 +16,7 @@ for CATEGORY_DIR in $SOURCE/src/*; do
CATEGORY_NAME=${CATEGORY_DIR##*/}
# echo $CATEGORY_NAME
# exit
echo "Reading icons..."
for ICON_DIR in $CATEGORY_DIR/*; do
# Icon Directory Path
# echo $ICON_DIR
Expand Down Expand Up @@ -64,17 +64,4 @@ for CATEGORY_DIR in $SOURCE/src/*; do
done
done


# echo "Compiling outline icons..."

# for FILE in $DIST/outline/*; do
# cp $FILE $RESOURCES/o-$(echo ${FILE##*/})
# done

# echo "Compiling solid icons..."

# for FILE in $DIST/solid/*; do
# cp $FILE $RESOURCES/s-$(echo ${FILE##*/})
# done

# echo "All done!"
echo "All done!"

0 comments on commit eaf15ae

Please sign in to comment.