Skip to content

Commit a64cdae

Browse files
committed
init
0 parents  commit a64cdae

File tree

636 files changed

+7047
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

636 files changed

+7047
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/vendor

README.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
![octicons cover light](https://user-images.githubusercontent.com/54012/138925195-5779c51d-ff8c-4264-a914-e64f4843893d.png#gh-light-mode-only)
2+
![octicons cover dark](https://user-images.githubusercontent.com/54012/138925203-80e1afa1-ba54-4731-9525-3c41186663f9.png#gh-dark-mode-only)
3+
<br>
4+
<h1 align="center">
5+
Laravel Primer Octicons
6+
</h1>
7+
<p align="center">
8+
A Laravel package to integrate GitHub's Octicons into your Laravel project effortlessly. This package allows you to use Octicons directly in your Blade templates with ease.
9+
</p>
10+
11+
12+
## About
13+
14+
Octicons are a scalable set of icons handcrafted by GitHub. They are designed to be highly legible, even at small sizes, and are perfect for adding a consistent visual language to your web projects.
15+
16+
GitHub Repository: [primer/octicons](https://github.com/primer/octicons)
17+
Official Site: [Octicons](https://primer.style/octicons)
18+
19+
## Installation
20+
21+
You can install the package via Composer:
22+
23+
```bash
24+
composer require devzkhalil/laravel-primer-octicons
25+
```
26+
27+
## Usage
28+
29+
After installing, you can use the Octicons in your Blade templates like this:
30+
31+
```blade
32+
<x-icon::thin.arrow-up-left width="16" height="16" fill="white" />
33+
<x-icon::bold.arrow-up-left width="16" height="16" fill="white" />
34+
35+
<x-icon::thin.download width="24" height="24" fill="white" />
36+
<x-icon::bold.download width="24" height="24" fill="white" />
37+
```
38+
## Icon Sizes and Parameters
39+
40+
In this package:
41+
42+
- GitHub `16px` icons are referred to as `bold`.
43+
- GitHub `24px` icons are referred to as `thin`.
44+
45+
### Component Parameters
46+
47+
**For Bold Icons (16px):**
48+
- `width` is optional; the default size is `16px`.
49+
- `height` is optional; the default size is `16px`.
50+
- `fill` is optional; the default color is `black`.
51+
52+
**For Thin Icons (24px):**
53+
- `width` is optional; the default size is `24px`.
54+
- `height` is optional; the default size is `24px`.
55+
- `fill` is optional; the default color is `black`.
56+
57+
### Finding Icon Names
58+
59+
To find the name of an icon:
60+
1. Visit the official Octicons site: [Octicons](https://primer.style/foundations/icons).
61+
2. Locate and copy the name of your desired icon.
62+
3. Use the icon in your Blade templates with the appropriate size:
63+
64+
For `16px` icons (bold):
65+
```blade
66+
<x-icon::bold.your-icon-name />
67+
```
68+
For `24px` icons (thin):
69+
```blade
70+
<x-icon::thin.your-icon-name />
71+
```
72+
73+
## Publish Components
74+
75+
Publish the components file with the following command:
76+
77+
```bash
78+
php artisan vendor:publish --tag=primer-octicons
79+
```

composer.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "devzkhalil/laravel-primer-octicons",
3+
"license": "MIT",
4+
"authors": [{
5+
"name": "devzkhalil",
6+
"email": "devzkhalil@gmail.com"
7+
}],
8+
"require": {},
9+
"autoload": {
10+
"psr-4": {
11+
"Devzkhalil\\LaravelPrimerOcticons\\": "src"
12+
}
13+
},
14+
"extra": {
15+
"laravel": {
16+
"providers": [
17+
"Devzkhalil\\LaravelPrimerOcticons\\LaravelPrimerOcticonsServiceProvider"
18+
]
19+
}
20+
},
21+
"minimum-stability": "dev",
22+
"prefer-stable": true
23+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@props([
2+
'width' => 16,
3+
'height' => 16,
4+
'fill' => '',
5+
])
6+
7+
<svg width="{{ $width }}" height="{{ $height }}" fill="{{ $fill }}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
8+
<path
9+
d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM3.75 6a.75.75 0 0 0 0 1.5h2.409a1.9 1.9 0 0 0-.025.151l-.307 2.508-.323 3.011a.75.75 0 0 0 1.492.16l.25-2.33h1.509l.25 2.33a.748.748 0 0 0 1.199.552.75.75 0 0 0 .291-.712l-.32-3-.309-2.519a1.9 1.9 0 0 0-.025-.151h2.409a.75.75 0 0 0 0-1.5h-8.5ZM8 6a2 2 0 1 0 .001-3.999A2 2 0 0 0 8 6Z" />
10+
</svg>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@props([
2+
'width' => 16,
3+
'height' => 16,
4+
'fill' => '',
5+
])
6+
7+
<svg width="{{ $width }}" height="{{ $height }}" fill="{{ $fill }}" xmlns="http://www.w3.org/2000/svg"
8+
viewBox="0 0 16 16">
9+
<path
10+
d="M9.923 5.302c.063.063.122.129.178.198H14A.75.75 0 0 1 14 7h-3.3l.578 5.163.362 2.997a.75.75 0 0 1-1.49.18L9.868 13H6.132l-.282 2.34a.75.75 0 0 1-1.49-.18l.362-2.997L5.3 7H2a.75.75 0 0 1 0-1.5h3.9a2.54 2.54 0 0 1 .176-.198 3 3 0 1 1 3.847 0ZM9.2 7.073h-.001a1.206 1.206 0 0 0-2.398 0L6.305 11.5h3.39ZM9.5 3a1.5 1.5 0 1 0-3.001.001A1.5 1.5 0 0 0 9.5 3Z" />
11+
</svg>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@props([
2+
'width' => 16,
3+
'height' => 16,
4+
'fill' => '',
5+
])
6+
7+
<svg width="{{ $width }}" height="{{ $height }}" fill="{{ $fill }}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
8+
<path
9+
d="M10.628 7.25a2.25 2.25 0 1 1 0 1.5H8.622a2.25 2.25 0 0 1-2.513 1.466L5.03 12.124a2.25 2.25 0 1 1-1.262-.814l1.035-1.832A2.245 2.245 0 0 1 4.25 8c0-.566.209-1.082.553-1.478L3.768 4.69a2.25 2.25 0 1 1 1.262-.814l1.079 1.908A2.25 2.25 0 0 1 8.622 7.25ZM2.5 2.5a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Zm4 4.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm6.25 0a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm-9.5 5.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z" />
10+
</svg>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@props([
2+
'width' => 16,
3+
'height' => 16,
4+
'fill' => '',
5+
])
6+
7+
<svg width="{{ $width }}" height="{{ $height }}" fill="{{ $fill }}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
8+
<path
9+
d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575ZM8 5a.75.75 0 0 0-.75.75v2.5a.75.75 0 0 0 1.5 0v-2.5A.75.75 0 0 0 8 5Zm1 6a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z" />
10+
</svg>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@props([
2+
'width' => 16,
3+
'height' => 16,
4+
'fill' => '',
5+
])
6+
7+
<svg width="{{ $width }}" height="{{ $height }}" fill="{{ $fill }}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
8+
<path
9+
d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z" />
10+
</svg>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@props([
2+
'width' => 16,
3+
'height' => 16,
4+
'fill' => '',
5+
])
6+
7+
<svg width="{{ $width }}" height="{{ $height }}" fill="{{ $fill }}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
8+
<path
9+
d="M1.5 3.25c0-.966.784-1.75 1.75-1.75h2.5c.966 0 1.75.784 1.75 1.75v2.5A1.75 1.75 0 0 1 5.75 7.5h-2.5A1.75 1.75 0 0 1 1.5 5.75Zm7 0c0-.966.784-1.75 1.75-1.75h2.5c.966 0 1.75.784 1.75 1.75v2.5a1.75 1.75 0 0 1-1.75 1.75h-2.5A1.75 1.75 0 0 1 8.5 5.75Zm-7 7c0-.966.784-1.75 1.75-1.75h2.5c.966 0 1.75.784 1.75 1.75v2.5a1.75 1.75 0 0 1-1.75 1.75h-2.5a1.75 1.75 0 0 1-1.75-1.75Zm7 0c0-.966.784-1.75 1.75-1.75h2.5c.966 0 1.75.784 1.75 1.75v2.5a1.75 1.75 0 0 1-1.75 1.75h-2.5a1.75 1.75 0 0 1-1.75-1.75ZM3.25 3a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25h2.5A.25.25 0 0 0 6 5.75v-2.5A.25.25 0 0 0 5.75 3Zm7 0a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25h2.5a.25.25 0 0 0 .25-.25v-2.5a.25.25 0 0 0-.25-.25Zm-7 7a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25h2.5a.25.25 0 0 0 .25-.25v-2.5a.25.25 0 0 0-.25-.25Zm7 0a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25h2.5a.25.25 0 0 0 .25-.25v-2.5a.25.25 0 0 0-.25-.25Z" />
10+
</svg>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@props([
2+
'width' => 16,
3+
'height' => 16,
4+
'fill' => '',
5+
])
6+
7+
<svg width="{{ $width }}" height="{{ $height }}" fill="{{ $fill }}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
8+
<path
9+
d="M0 2.75C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75v1.5A1.75 1.75 0 0 1 14.25 6H1.75A1.75 1.75 0 0 1 0 4.25ZM1.75 7a.75.75 0 0 1 .75.75v5.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25v-5.5a.75.75 0 0 1 1.5 0v5.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25v-5.5A.75.75 0 0 1 1.75 7Zm0-4.5a.25.25 0 0 0-.25.25v1.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-1.5a.25.25 0 0 0-.25-.25ZM6.25 8h3.5a.75.75 0 0 1 0 1.5h-3.5a.75.75 0 0 1 0-1.5Z" />
10+
</svg>

0 commit comments

Comments
 (0)